Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Problems on Windows #55

Closed
xogeny opened this issue Feb 20, 2014 · 8 comments
Closed

Problems on Windows #55

xogeny opened this issue Feb 20, 2014 · 8 comments

Comments

@xogeny
Copy link

xogeny commented Feb 20, 2014

It turns out that accessing SSL resources on modelica.org programmatically is a problem on Windows. Apparently, there is some known issue with using SSL on Windows.

That link includes a solution which I incorporated into load.py, but haven't tested sufficiently.

mtiller added a commit that referenced this issue Feb 20, 2014
But I still haven't tested it on Windows.
@xogeny
Copy link
Author

xogeny commented Feb 20, 2014

Great. I implemented the "fix", but it turns out that wasn't the problem. Consider the following code:

$ python
>>> import urllib2
>>> req = urllib2.Request("https://encrypted.google.com/")
>>> resp = urllib2.urlopen(req)
>>> x = resp.read()
>>> req = urllib2.Request("https://modelica.org/")
>>> resp = urllib2.urlopen(req)
ssl.SSLError: ...

I strongly suspect that the issue is THE CERTIFICATE on modelica.org. :-(

@dietmarw
Copy link
Member

Very strange that that tests works fine on Linux :-(

@xogeny
Copy link
Author

xogeny commented Feb 26, 2014

The question is, what are we going to do about it? Can we make the index available via a non-SSL connection? There is nothing sensitive in the file so that is an easy solution (assuming the Apache configuration is amenable to it).

@dietmarw
Copy link
Member

I searched a bit and came across this: jjlee/mechanize#85 (comment)

Maybe we could implement a similar ssl2 fall-back solution.

@xogeny
Copy link
Author

xogeny commented Feb 27, 2014

Possibly. But I think making the impact.modelica.org domain support HTTP would be simpler...

@dietmarw
Copy link
Member

But this would only fix our repo. What if people start having self-hosted package_data.json files which then would lead to a similar issue. That's why I think we should fix it on the impact side not on the server side.

@dietmarw
Copy link
Member

BTW, when working with #61 I had no problems using impact on windows (Win7 64bit). When exactly does the problem occur?

@dietmarw
Copy link
Member

dietmarw commented Dec 8, 2014

Closing this as we no longer develop the python version. The go implementation does not have this issue.

@dietmarw dietmarw closed this as completed Dec 8, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants