
Hi, How can I open in Chimera a saved .pyc session file? When I try, Chimera reports the following error message: Error while processing /Users/lp212/Dropbox/<filename.pyc>: .pyc files are not portable; please use .py file instead Unfortunately I don’t have the .py file, Chimera doesn’t seem to have saved it (not sure why). Thanks, Luca Luca Pellegrini, PhD Department of Biochemistry University of Cambridge 80 Tennis Court Road Cambridge CB2 1GA UK Email: lp212@cam.ac.uk Phone: 0044-1223-760469

Hi Luca, Unfortunately (as the message suggests) a .pyc file from one computer may not be usable on a different computer. As I understand it, the .py file must have existed at some point, because the .pyc file is created from the .py file. I think you could recreate the .py file by opening the .pyc file on the original computer and saving session again, but I realize that might not be possible or convenient. Sorry, Elaine ---------- Elaine C. Meng, Ph.D. UCSF Computer Graphics Lab (Chimera team) and Babbitt Lab Department of Pharmaceutical Chemistry University of California, San Francisco

Hi Luca, Chimera doesn’t save .pyc files, it saves .py files. When Chimera opens a .py file, a “compiled” version — the .pyc file — is created. .pyc files can be opened in Chimera, but are only guaranteed to open on the same machine that they were originally compiled on. The error message you got indicates that the .pyc file is not compatible with the machine you are trying to open it on. —Eric Eric Pettersen UCSF Computer Graphics Lab
participants (3)
-
Elaine Meng
-
Eric Pettersen
-
Luca Pellegrini