Garrett Scapellato

Research Technician II
Edwards Lab
DHVI
Duke University


From: Garrett Scapellato <garrett.scapellato@duke.edu>
Sent: Friday, March 29, 2024 2:24 PM
To: pett@cgl.ucsf.edu <pett@cgl.ucsf.edu>
Subject: Re: Chimera numpy error
 
Eric,

Apologies for sending so many emails. I was able to delete all numpy modules from Chimera. Now when I try to open Chimera I get this error.

Traceback (most recent call last):

  File "/Applications/Chimera.app/Contents/Resources/share/__main__.py", line 73, in <module>

    value = chimeraInit.init(sys.argv)

  File "/Applications/Chimera.app/Contents/Resources/share/chimeraInit.py", line 680, in init

    import chimera

  File "/Applications/Chimera.app/Contents/Resources/share/chimera/__init__.py", line 2782, in <module>

    from SimpleSession import BEGIN_RESTORE_SESSION, END_RESTORE_SESSION

  File "/Applications/Chimera.app/Contents/Resources/share/SimpleSession/__init__.py", line 14, in <module>

    from save import saveSession, sessionID, noAutoRestore, autoRestorable, \

  File "/Applications/Chimera.app/Contents/Resources/share/SimpleSession/save.py", line 13, in <module>

    from chimera import replyobj, selection, SessionPDBio, version

  File "/Applications/Chimera.app/Contents/Resources/share/chimera/selection/__init__.py", line 1033, in <module>

    from chimera import oslParser

  File "/Applications/Chimera.app/Contents/Resources/share/chimera/oslParser.py", line 690, in <module>

    import numpy

ImportError: No module named numpy


I tried reinstalling numpy the same way I installed pandas, but I get the same error as above. How can I fix this issue?

Thanks,
Garrett Scapellato

Research Technician II
Edwards Lab
DHVI
Duke University


From: Garrett Scapellato
Sent: Friday, March 29, 2024 2:11 PM
To: pett@cgl.ucsf.edu <pett@cgl.ucsf.edu>
Subject: Chimera numpy error
 
Eric,

I get the following error whenever I try to open chimera. I tried uninstalling numpy with a pip installer, and that didn't work, I assume because it doesn't uninstall the module from chimera specifically. 

DHVI-F5KJC04Q:~ edwardslab$ chimera

Traceback (most recent call last):

  File "/Applications/Chimera.app/Contents/Resources/share/__main__.py", line 73, in <module>

    value = chimeraInit.init(sys.argv)

  File "/Applications/Chimera.app/Contents/Resources/share/chimeraInit.py", line 680, in init

    import chimera

  File "/Applications/Chimera.app/Contents/Resources/share/chimera/__init__.py", line 2782, in <module>

    from SimpleSession import BEGIN_RESTORE_SESSION, END_RESTORE_SESSION

  File "/Applications/Chimera.app/Contents/Resources/share/SimpleSession/__init__.py", line 14, in <module>

    from save import saveSession, sessionID, noAutoRestore, autoRestorable, \

  File "/Applications/Chimera.app/Contents/Resources/share/SimpleSession/save.py", line 13, in <module>

    from chimera import replyobj, selection, SessionPDBio, version

  File "/Applications/Chimera.app/Contents/Resources/share/chimera/selection/__init__.py", line 1033, in <module>

    from chimera import oslParser

  File "/Applications/Chimera.app/Contents/Resources/share/chimera/oslParser.py", line 690, in <module>

    import numpy

  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/site-packages/numpy/__init__.py", line 142, in <module>

    from . import core

  File "/Applications/Chimera.app/Contents/Resources/lib/python2.7/site-packages/numpy/core/__init__.py", line 91, in <module>

    raise ImportError(msg.format(path))

ImportError: Something is wrong with the numpy installation. While importing we detected an older version of numpy in ['/Applications/Chimera.app/Contents/Resources/lib/python2.7/site-packages/numpy']. One method of fixing this is to repeatedly uninstall numpy until none is found, then reinstall this version.



I also tried 

rm -rf ~/Applications/Chimera.app/Contents/Resources/lib/python2.7/site-packages/numpy/

repeatedly, but that didn't work. I couldn't use Finder to navigate to the python2.7 folder to delete the files manually, either. Any help would be appreciated.


Thanks,
Garrett Scapellato

Research Technician II
Edwards Lab
DHVI
Duke University