New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A Maze of Twisted Wormholes, None Alike #143
Comments
see also: scrapy/scrapy#2473 |
Dave's fixed by downgrading Twisted and re-broke after upgrading Twisted. |
On Mac OSX using pip, wormhole broke when upgraded from 0.9.1 to 0.9.2 (though I'm sure it's a dependency that caused the breakage).
This fixes it:
I don't know what that does because |
Downgrading Twisted to v16 worked on Rob's machine, too. |
That sounds like you have an older pyOpenSSL, and the newer Twisted requires a newer one. I don't think it's magic-wormhole specific. Could you try running just It looks like twisted-17.1.0 was the first release to have a hard requirement that pyOpenSSL provides Try this:
that should tell you where pyOpenSSL is being imported from, what version it is, and a full list of all the Installing magic-wormhole directly into In general, my recommendation is to install magic-wormhole (and other python applications) into a virtualenv, where pip can install everything you need without affecting the rest of your system. I haven't found a nice way to do this for multiple users though (e.g. installing it once in /usr/local vs installing it with If you can't do that, then my recommendation is to upgrade the dependencies, rather than downgrade Twisted. I haven't yet looked at everything magic-wormhole needs from Twisted to determine what the oldest version we can possibly use is, but my usual assumption (not necessarily a good one) is it's at least whatever version of Twisted was present when I made the release. So running against a significantly older Twisted might run into other problems. If you discover those, let me know and I'll make magic-wormhole correctly declare a dependency upon the newer one. But the result will be the same: more demands from pesky software asking you to upgrade everything :). |
Thanks for the detailed explanation and link to the video. You're right that I have an old pyOpenSSL (0.13.1). Perhaps you could update your install instructions (for non-python developers) since I think I took two wrong turns trying to follow those directions. I used So yeah, a virtualenv might solve my problem. But what I don't see (because the docs seem to be written for python developers) is, once I've installed wormhole in a virtualenv, where does my next python application go? Do I have to switch virtualenvs every time I want to run one or the other? In the meantime, maybe installing python with homebrew allows me to use pip more easily. So I'll try that. (Turns out that I can |
Perhaps |
For what it's worth, this isn't really a bug in magic-wormhole, or indeed in twisted; it's actually a bug in Pip pypa/pip#988 that, I believe, is being worked on by a GSoC intern this year. |
I agree that this is a pip bug. So this issue could be closed. My workaround was to install with homebrew, which saved me from pip and Apple's shipped python. |
I'm happy to increase our |
We now depend upon |
Issue:
Lots of broken wormholes: mine, Rob's, now Dave's.
Symptom:
wormhole send
andwormohole receive
return an error.Fix:
http://stackoverflow.com/questions/42225773/install-scrapy-on-mac-successful-but-run-error
pip install Twisted==16.4.1
Notes:
Even though that fixed a box, I remain confused about the actual problem, because another box has Twisted (17.1.0) and it works fine. (i.e. no downgrade needed)
The text was updated successfully, but these errors were encountered: