Closed mbastosf64 closed 2 weeks ago
error below
2024-01-31 16:02:27,503 [7796] WARNING py.warnings:109: [JupyterRequire]
AttributeError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_7796/3051707880.py in
~\Anaconda3\lib\site-packages\pyrolite\util\synthetic.py in
~\Anaconda3\lib\site-packages\pyrolite\geochem__init__.py in
~\Anaconda3\lib\site-packages\pyrolite\geochem\transform.py in
~\Anaconda3\lib\site-packages\pyrolite\util\lambdas__init__.py in
~\Anaconda3\lib\site-packages\pyrolite\util\lambdas\plot.py in
~\Anaconda3\lib\site-packages\pyrolite\plot__init__.py in
~\Anaconda3\lib\site-packages\pyrolite\plot\density__init__.py in
~\Anaconda3\lib\site-packages\pyrolite\util\plot\density.py in
~\Anaconda3\lib\site-packages\statsmodels\api.py in
~\Anaconda3\lib\site-packages\statsmodels\regression__init__.py in
~\Anaconda3\lib\site-packages\statsmodels\regression\linear_model.py in
~\Anaconda3\lib\site-packages\statsmodels\base\model.py in
~\Anaconda3\lib\site-packages\statsmodels\tools\numdiff.py in
~\Anaconda3\lib\site-packages\numpy__init.py in getattr(attr) 360 raise RuntimeError("Tester was removed in NumPy 1.25.") 361 --> 362 raise AttributeError("module {!r} has no attribute " 363 "{!r}".format(name__, attr)) 364
AttributeError: module 'numpy' has no attribute 'MachAr'
uisng the latest numpy version, tried to downgrade but still getting this error and the one below , any suggestions.
AttributeError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_20640/260713670.py in
~\Anaconda3\lib\site-packages\pandas\core\generic.py in getattr(self, name) 5573 ): 5574 return self[name] -> 5575 return object.getattribute(self, name) 5576 5577 def setattr(self, name: str, value) -> None:
AttributeError: 'DataFrame' object has no attribute 'pyroplot
Hey @mbastosf64! Apologies I didn't manage to get back to you last week, the first one I'm unsure about (it does seem to be a statsmodels
-numpy
version conflict or similar..), but the second one will hopefully be resolved with an added import:
import pyrolite.plot
thank you for the reply my numpy is 1.26.3 which version shall i downgrade to make it work - pyrolite?
On Sun, Feb 4, 2024 at 3:31 PM Morgan Williams @.***> wrote:
Hey @mbastosf64 https://github.com/mbastosf64! Apologies I didn't manage to get back to you last week, the first one I'm unsure about (it does seem to be a statsmodels-numpy version conflict or similar..), but the second one will hopefully be resolved with an added import:
import pyrolite.plot
— Reply to this email directly, view it on GitHub https://github.com/morganjwilliams/pyrolite/issues/101#issuecomment-1925975561, or unsubscribe https://github.com/notifications/unsubscribe-auth/BFYKMAAZ2TS4GHOMUPWOU5DYSAK3JAVCNFSM6AAAAABCT6IBEKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRVHE3TKNJWGE . You are receiving this because you were mentioned.Message ID: @.***>
@mbastosf64 it should work with 1.24, if you're still having issues. But it looks like the error relates to a numpy
deprecation (since about numpy v1.22
), which I think should have been fixed in statsmodels>=0.15
.
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like A clear and concise description of what you want to happen.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context Add any other context or screenshots about the feature request here.
Relevant References Any references related to the above-mentioned feature or issue.