LUCIT-Systems-and-Development / unicorn-binance-websocket-api

A Python SDK by LUCIT to use the Binance Websocket API`s (com+testnet, com-margin+testnet, com-isolated_margin+testnet, com-futures+testnet, com-coin_futures, us, tr, dex/chain+testnet) in a simple, fast, flexible, robust and fully-featured way.
https://unicorn-binance-websocket-api.docs.lucit.tech/
Other
678 stars 166 forks source link

ImportError: cannot import name 'BinanceWebSocketApiConnection' from 'unicorn_binance_websocket_api.unicorn_binance_websocket_api_connection' #175

Closed DigitalSlay3r closed 3 years ago

DigitalSlay3r commented 3 years ago

Check this or we will delete your issue. (fill in the checkbox with an X like so: [x])

Select one:

Environment

What kind of internet connection do you have?

Include here a description of your internet access like cable, lte and up and download rate.
```Cable

#### Average system load (CPU)
```5%
Include here the ammount of cpu cores and the average system load.
```2, 30%

#### Hardware specification 
```Intel i5 7200U, 256 SSD, 8GB RAM
Include here a description of the server hardware.
```Windows 10 laptop

#### Operating System? (include version)
- [ ] macOS
- [x] Windows
- [ ] Linux (include flavour)

#### Options
- [x] stream_buffer
- [ ] process_stream_data

#### Which endpoint do you connect?
```binance spot testnet
Include here the endpint you are connecting to, like binance.com, binance.com-isolated_margin or binance.org-testnet
```binance.org-testnet

#### Python Version Requirement
- [x] I am using Python 3.6.1 or above

#### Exact Python Version?
```3.7.2
Include here the response of 'python --version' AND 'python3 --version'
```Python 3.7.2
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
#### Pip Version?
```21.1.1
Include here the response of 'python3 -m pip --version' or 'pip3 --version'
```pip 21.1.1 from c:\users\matth\appdata\local\programs\python\python37\lib\site-packages\pip (python 3.7)

#### Dependencies
Run `pip list > pip_list.txt` and upload the file.

#### UNICORN Binance WebSocket API Version?

Did you upgrade to the latest release version with pip install unicorn-binance-websocket-api --upgrade? Yes Please control what version you are using with this script and post the output: https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/blob/master/tools/get_used_module_version.py


ImportError: cannot import name 'BinanceWebSocketApiConnection' from 'unicorn_binance_websocket_api.unicorn_binance_websocket_api_connection' (C:\Users\matth\AppData\Local\Programs\Python\Python37\lib\site-packages\unicorn_binance_websocket_api\unicorn_binance_websocket_api_connection.py)
#### Description of your issue
```I'm unable to run any scripts as I'm getting the above ImportError
Include the contents of the log file here. (REMOVE API_KEY, API_SECRET, LISTEN_KEY!!)
```I dont have a log file
[pip_list.txt](https://github.com/oliver-zehentleitner/unicorn-binance-websocket-api/files/6535012/pip_list.txt)
oliver-zehentleitner commented 3 years ago

i tested 1.30 on linux, mac and windows and it works everywhere.

an other person had this issue too and the reason was that he installed the packages to a VENV (virtual envirment) but started the script outside of that VENV....