You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/home/sirjay/python/ethereum/lib/strategies/BBands.py", line 19, in<module>
import pandas_ta as pta
File "/home/sirjay/miniconda3/envs/eth/lib/python3.11/site-packages/pandas_ta/__init__.py", line 7, in<module>
from pandas_ta.maps import EXCHANGE_TZ, RATE, Category, Imports, version
File "/home/sirjay/miniconda3/envs/eth/lib/python3.11/site-packages/pandas_ta/maps.py", line 4, in<module>
from pkg_resources import get_distribution, DistributionNotFound
File "/home/sirjay/miniconda3/envs/eth/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3479, in<module>
@_call_aside
^^^^^^^^^^^
File "/home/sirjay/miniconda3/envs/eth/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3463, in _call_aside
f(*args, **kwargs)
File "/home/sirjay/miniconda3/envs/eth/lib/python3.11/site-packages/pkg_resources/__init__.py", line 3492, in _initialize_master_working_set
working_set = _declare_state('object', 'working_set', WorkingSet._build_master())
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sirjay/miniconda3/envs/eth/lib/python3.11/site-packages/pkg_resources/__init__.py", line 619, in _build_master
ws = cls()
^^^^^
File "/home/sirjay/miniconda3/envs/eth/lib/python3.11/site-packages/pkg_resources/__init__.py", line 612, in __init__
self.add_entry(entry)
File "/home/sirjay/miniconda3/envs/eth/lib/python3.11/site-packages/pkg_resources/__init__.py", line 668, in add_entry
fordistin find_distributions(entry, True):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sirjay/miniconda3/envs/eth/lib/python3.11/site-packages/pkg_resources/__init__.py", line 2120, in find_distributions
importer = get_importer(path_item)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sirjay/miniconda3/envs/eth/lib/python3.11/pkgutil.py", line 416, in get_importer
path_item = os.fsdecode(path_item)
^^^^^^^^^^^^^^^^^^^^^^
File "<frozen os>", line 824, in fsdecode
TypeError: expected str, bytes or os.PathLike object, not NoneType
Have you tried using a virtualenv instead of (mini) Anaconda? Have you updated to the latest version setuptools?
If the latest setuptools does not fix the issue, please goto setuptools and search open/closed issues or make a new one as this particular issue is breaking the package's requirements.
you are closing issues well, so I created a new one with extra code that you asked here
Thanks for the (backhanded) compliment. You could have just reopened it. 🤷🏼♂️
@twopirllc you are closing issues well, so I created a new one with extra code that you asked here #826
OS: Ubuntu 20.04.6 LTS
Server: Intel(R) Xeon(R) CPU E5-2695 v4 @ 2.10GHz
Python: 3.11.8 (conda)
pip: 24.1.1
pandas-ta: 0.3.14b0 (tested also on 0.4.19b0)
TA-Lib: 0.4.32
Have you tried the development version? Did it resolve the issue?
the same error
Describe the bug
How to fix? Removing pandas_ta and installing again did not help.
extra code for BBands.py:
The text was updated successfully, but these errors were encountered: