[Chimera-users] Issue while importing Chimera's runCommand module
Noe Robert
noe.robert at etu.univ-cotedazur.fr
Tue Dec 6 01:52:53 PST 2022
Good morning,
I'm trying to use a python script for ChimeraX version 1.5, to automate mutageneses on a specific protein.
As a first try, it looks like this :
from chimera import runCommand as rc
rc("open " + "hERGts_compiled.pdb")
rc("color red")
rc("surf");
So it refers to the chimera module for the runCommand. I tried to install it on Python through the command pip but it failed :
################################# Example of my shell while trying to install chimera module #######################
PS C:> python3 -m pip install chimera
Collecting chimera
Using cached chimera-0.4.7.tar.gz (355 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error
¡Á python setup.py egg_info did not run successfully.
©¦ exit code: 1
¨t©¤> [9 lines of output]
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "C:\Users\CE PC\AppData\Local\Temp\pip-install-cfq97mii\chimera_bd7187074876462a9782eded8cb3a816\setup.py", line 1, in <module>
import ez_setup
File "C:\Users\CE PC\AppData\Local\Temp\pip-install-cfq97mii\chimera_bd7187074876462a9782eded8cb3a816\ez_setup.py", line 170
print "Setuptools version",version,"or greater has been installed."
^
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
¡Á Encountered error while generating package metadata.
¨t©¤> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
######################################################################################################
So it looks like the temporary file generated has an error that doesn't allow the installation of the module, and so I cannot use any command from my script as runCommand is not recognized. There seem to be no mention of this issue in the mail archive but one colleague encountered the same problem, which I find strange. Do you have an idea on how to solve this issue ?
Thank you and have a great day,
No¨¦ Robert,
Fifth-year student in bioengineering, minor in Bioinformatics and Modelling, at engineering school Polytech Nice Sophia, France
Phone : +33 7 81 00 52 02
"let's limit the use of our resources and lighten our mails"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rbvi.ucsf.edu/pipermail/chimera-users/attachments/20221206/6fd6f693/attachment.html>
More information about the Chimera-users
mailing list