You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to cobra pie
version 1.24.3 of numpy leads to an error when tryinlg to import cobra.
File ~\Anaconda3\lib\site-packages\cobra\io\mat.py:13, in <module> 10fromwarningsimport warn
12fromnumpyimport array, inf, isinf
---> 13fromnumpyimportobjectas np_object
15fromcobra.coreimport Metabolite, Model, Reaction
16fromcobra.utilimport create_stoichiometric_matrix
ImportError: cannot import name 'object' from 'numpy' (C:\Users\vinsonn\Anaconda3\lib\site-packages\numpy\__init__.py) # packages in environment at C:\Users\vinsonn\Anaconda3:
#
# Name Version Build Channel
numpy 1.24.3 py38h1d91fd2_0 conda-forge
numpydoc 1.5.0 pyhd8ed1ab_0 conda-forge You need to roll back numpy to v1.23.5. At the conda command prompt, type: > conda install "numpy<1.24" Then restart your jupyter kernels, and you should be good. Thanks to The Chandra X-Ray Center (CXC) for reporting the solution to the same problem with their software.