Closed mbehiri closed 3 months ago
Hi Meriem —
The call to numpy.asscalar
is coming from within Astropy. It looks like asscalar
was removed in Numpy version 1.23. Recent versions of Astropy (>= 5) should work with modern versions of Numpy, but older versions will fail.
My best guess, therefore, is that you've somehow got an old Astropy combined with a modern Numpy on your system. Can you try upgrading the former?
Thanks John.
Indeed most likely an expired deprecation from an incompatibility issue between astropy and numpy.
Not from TraP source code, to be extra sure I ran grep -rniI . -e "*asscalar*"
within the tkp repo, it gives no hits.
I am currently running TraP with Python 3.11 and I would like you to invite you to do the same, because the compatibility issue will likely vanish.
Please run, from your conda base environment, i.e. you may have to run conda deactivate
first.
conda create -n py311 python=3.11 anaconda
conda activate py311
pip install -e .
Next the usual steps to get your postgresql daemon running and database setup. You might find this a useful gist.
@mbehiri Please let us know if you were able to fix this using an updated Astropy.
Closing this since not a PySE issue, and it's been a year since OP responded.
Hello. I am getting this error when running pyse:
What could it be? I looked for the asscalar in the pyse files and related to replace it but I didn't find any. Tell me if you have any clue please. Thanks, Meriem