Jun-11-2018, 06:35 PM
I am using a python application which requires SimpleWebsocketServer..
I have done:
But when I run the app, it fails from Import Error:
https://github.com/fyookball/electrum/bl...ets.py#L32
...
When I go into the python3 console, I can do:
So it looks like it is there.......... But if I try to do exactly what the app is doing, I have the same error:
Can anyone help with what I am doing wrong?
Thanks!
I have done:
Quote:python3 -m pip install git+https://github.com/ecdsa/simple-websocket-server.git
Collecting git+https://github.com/ecdsa/simple-websocket-server.git
Cloning https://github.com/ecdsa/simple-websocket-server.git to /private/var/folders/3d/n3z5tt2n3fqc186ngh1ysmfr0000gn/T/pip-54tadi56-build
Installing collected packages: SimpleWebSocketServer
Running setup.py install for SimpleWebSocketServer ... done
Successfully installed SimpleWebSocketServer-0.1.0
But when I run the app, it fails from Import Error:
https://github.com/fyookball/electrum/bl...ets.py#L32
...
When I go into the python3 console, I can do:
Quote:Python 3.6.2 (v3.6.2:5fd33b5926, Jul 16 2017, 20:11:06)
[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import SimpleWebSocketServer
>>> SimpleWebSocketServer
<module 'SimpleWebSocketServer' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/SimpleWebSocketServer/__init__.py'>
So it looks like it is there.......... But if I try to do exactly what the app is doing, I have the same error:
Quote:>>> from SimpleWebSocketServer import WebSocket, SimpleSSLWebSocketServer
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: cannot import name 'WebSocket'
Can anyone help with what I am doing wrong?
Thanks!