# \[heroku error\] No module named 'binance.websockets'

**URL:** <https://onehack.st/t/heroku-error-no-module-named-binance-websockets/181239>\
**Category:** Discussion & Solutions\
**Tags:** solved\
**Created:** [May 2, 2021, 12:39pm UTC](https://onehack.st/t/heroku-error-no-module-named-binance-websockets/181239 "2021-05-02T12:39:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Karan\_Kumar](https://onehack.st/user_avatar/onehack.st/karan_kumar/32/43353_2.png) [@Karan\_Kumar](https://onehack.st/u/Karan_Kumar)\
**Post date:** [May 2, 2021, 12:39pm UTC](https://onehack.st/t/heroku-error-no-module-named-binance-websockets/181239/1 "2021-05-02T12:39:04Z")

</div>

please check my repo, upload it on heroku and test if it is working. I received error i don’t know why.  
[no problem in config variable]  
error—

Traceback (most recent call last):  
File “/app/btcKlinews.py”, line 2, in   
from binance.websockets import BinanceSocketManager  
ModuleNotFoundError: No module named ‘binance.websockets’

I tested it locally, no error found.  
please help me.

git - [https://github.com/PiyushDixit96/KLINE5.git](https://github.com/PiyushDixit96/KLINE5.git)

---

<div class="post-metadata">

**Author:** ![Techtanic](https://onehack.st/user_avatar/onehack.st/techtanic/32/92090_2.png) [@Techtanic](https://onehack.st/u/Techtanic)\
**Post date:** [May 2, 2021, 12:46pm UTC](https://onehack.st/t/heroku-error-no-module-named-binance-websockets/181239/2 "2021-05-02T12:46:10Z")

</div>

Check this not sure if it will work: [ModuleNotFoundError: No module named ‘binance.client’; ‘binance’ is not a package · Issue #477 · sammchardy/python-binance (github.com)](https://github.com/sammchardy/python-binance/issues/477)

---

<div class="post-metadata">

**Author:** ![Karan\_Kumar](https://onehack.st/user_avatar/onehack.st/karan_kumar/32/43353_2.png) [@Karan\_Kumar](https://onehack.st/u/Karan_Kumar)\
**Post date:** [May 2, 2021, 12:51pm UTC](https://onehack.st/t/heroku-error-no-module-named-binance-websockets/181239/3 "2021-05-02T12:51:15Z")

</div>

already checked. I tested my code locally without any error,  
and not working on heroku
