Closed magnito2 closed 3 years ago
Hello! Does anyone know a solution for that? Best regards, Oliver
Is this file https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/blob/master/unicorn_binance_websocket_api.py in the virtual env existent?
If yes, could you please move the row with
from unicorn_binance_websocket_api.unicorn_binance_websocket_api_exceptions import *
to the bottom of the file?
If you call the lib again, what is the error msg? Still "...exceptions" or is it then "...connections" or does it maybe solve the problem?
I just moved that row one step and then it complained about: No module named 'unicorn_binance_websocket_api.unicorn_binance_websocket_api_connection'; 'unicorn_binance_websocket_api' is not a package
Now... looking into my venv/bin-folder I see that it contains unicorn_binance_websocket_api. I'm no expert but I think that is wrong. The bin folder should contain python scripts.
unicorn_binance_websocket_api is supposed to be used as a module, but it's not a module since there is no init.py in the bin-folder (and there should'nt be either).
The reason it works for some, is that they have set their the bin-folder of their virtual environment in the PATH.
The right way to do this, I believe, is to move the imports into the init.py file. I'll make a PR.
Can you please test the 1.16.6 release and tell me if this issue is fixed?
Thank you!
Yes it is, but now we have to do the same thing to unicorn_fy
Thanks! Do you want to create a PR for unicorn_fy? You solved the problem for others, this way you are added to the contributors list of unicorn_fy too!
I got the same Problem on a raspberry 3 b+, when i try to autostart it after a reboot. Works fine in thonny tho.
i already have the newest version and run Buster
The initial issue is solved with the update. So your issue is a new one!
Please open a new issue and provide the requested answers and help us to reproduce your issue with details of your system.
Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])
Select one:
Environment
Operating System? (include version)
Python Version Requirement
Exact Python Version?
Pip Version?
Dependencies
Run
pip list > pip_list.txt
and upload the file.UNICORN Binance WebSocket API Version?
Description of your issue
pip_list.txt