bohd4nx / coinprice

Coinprice is an all-in-one tool designed to track cryptocurrency prices in real time across multiple exchanges. It provides support not only through the CLI but also the Telegram bot.
MIT License
4 stars 2 forks source link

macOS installing problem #2

Closed bohd4nx closed 1 month ago

bohd4nx commented 1 month ago

The problem:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.12/bin/price", line 5, in <module>
    from coinprice.main import main
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/coinprice/main.py", line 2, in <module>
    from coinprice.app.tracker import track_prices
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/coinprice/app/tracker.py", line 8, in <module>
    from coinprice.api import binance, coinbase, bitfinex, kucoin, gateio, kraken, huobi, okx
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/coinprice/api/binance.py", line 1, in <module>
    import requests
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/__init__.py", line 58, in <module>
    from . import utils
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/utils.py", line 30, in <module>
    from .cookies import RequestsCookieJar, cookiejar_from_dict
  File "/Library/Frameworks/Python.framework/Versions/3.12/lib/python3.12/site-packages/requests/cookies.py", line 159, in <module>
    class RequestsCookieJar(cookielib.CookieJar, collections.MutableMapping):
                                                 ^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'collections' has no attribute 'MutableMapping'

How to fix:

pip3 install --upgrade requests

Than:

pip3 install argparse

Also, make sure your installed rich.

pip3 install rich

Problem will be fixed in new, 1.5.4 release

bohd4nx commented 1 month ago

image

Released fixed version.

If you still encounter the problem, open an issue or use the command:

pip3 install --upgrade requests