79682573

Date: 2025-06-27 23:11:21
Score: 7.5
Natty:
Report link

Ive been having a similar problem. This might help, though its not definitive. Sadly I havent found a permanent solution as the problem seems to be with the packages/compatibilities.

So, I have program I wrote in pycharm that uses pandas-ta and has worked perfectly for the past year or so... until I tried to improve the code, using a new project with a new interpreter.

I downloaded all the same librares, but keep getting an error similar to yours:

UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
  from pkg_resources import get_distribution, DistributionNotFound

I cant find a solution, BUT, when checking google/chatgpt, I kept getting suggestions to downgrade libraries.

On checking, I noticed that although the interpreters use the same packages, and python 3.12, the versions of the packages were different.

In the code that works with pandas_ta, numpy is 1.26.4 and pandas is 2.2.3.

In the new code, thats giving me the error, numpy is 2.3.1 and pandas is 2.3.0.

Its not ideal (and from the date of the post a bit late), but maybe if you downgrade the pandas and/or numpy to these versions, then install pandas_ta, it might work?

Reasons:
  • RegEx Blacklisted phrase (2): I cant find a solution
  • RegEx Blacklisted phrase (2): cant find a solution
  • Long answer (-1):
  • Has code block (-0.5):
  • Me too answer (2.5): having a similar problem
  • Ends in question mark (2):
  • Low reputation (0.5):
Posted by: AndysPythonStuff