Chimera --send on MacOS

Hi all, I want to be able to interact with Chimera from another program, sending commands and all. I tried the chimera --send my_file.com to test it under MacOS 10.7. Each time I do this, it opens a new instance (instead of reusing the previous one) and doesn't process my_file.com at all. When I open my_file.com from inside chimera, it operates the commands inside it without any problem. Any idea? Francois

Hi François, Yes "chimera --send" is broken in Chimera 1.6 but fixed in the daily builds a few days ago. Here is a way to fix your Chimera 1.6 if you prefer to continue using the production release To fix "chimera --send" in Chimera 1.6 change line 71 of the following file chimera/share/send_to_chimera.py in your chimera distribution from web_file = "chim_webinfo-%s" % username to web_file = "chimera_webinfo-%s" % username (the "chim_" is now "chimera_"). Tom -------- Original Message -------- Subject: [Chimera-users] Chimera --send on MacOS From: François Stricher To: chimera-users@cgl.ucsf.edu Date: 10/4/12 5:57 AM
Hi all, I want to be able to interact with Chimera from another program, sending commands and all. I tried the chimera --send my_file.com to test it under MacOS 10.7. Each time I do this, it opens a new instance (instead of reusing the previous one) and doesn't process my_file.com at all. When I open my_file.com from inside chimera, it operates the commands inside it without any problem. Any idea? Francois _______________________________________________ Chimera-users mailing list Chimera-users@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users

Hi Tom, you're right the daily build allows again the use of --send. However, here is another problem: when I do "chimera --send test.com", I have this error message "[Errno 2] No such file or directory: u'test.com'" François On Oct 4, 2012, at 23:24 , Tom Goddard wrote:
Hi François,
Yes "chimera --send" is broken in Chimera 1.6 but fixed in the daily builds a few days ago. Here is a way to fix your Chimera 1.6 if you prefer to continue using the production release
To fix "chimera --send" in Chimera 1.6 change line 71 of the following file
chimera/share/send_to_chimera.py
in your chimera distribution from
web_file = "chim_webinfo-%s" % username
to
web_file = "chimera_webinfo-%s" % username
(the "chim_" is now "chimera_").
Tom
-------- Original Message -------- Subject: [Chimera-users] Chimera --send on MacOS From: François Stricher To: chimera-users@cgl.ucsf.edu Date: 10/4/12 5:57 AM
Hi all, I want to be able to interact with Chimera from another program, sending commands and all. I tried the chimera --send my_file.com to test it under MacOS 10.7. Each time I do this, it opens a new instance (instead of reusing the previous one) and doesn't process my_file.com at all. When I open my_file.com from inside chimera, it operates the commands inside it without any problem. Any idea? Francois _______________________________________________ Chimera-users mailing list Chimera-users@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users

Hi François, I suspect your test.com file is not found when you run "chimera --send test.com" because the Chimera that is already running was started in a different directory then the one test.com is in. The file is opened by the already running chimera and so the path probably has to be relative the directory that Chimera was started in. If you started Chimera by clicking an icon in Mac OS then it starts in directory "/". So you should specify a full path to "test.com" like /Users/stricher/test.com or ~/test.com. I think this is weird and unexpected and we should probably fix this so that "chimera --send" converts the relative path to an absolute path before handing it to the running Chimera. Tom -------- Original Message -------- Subject: Re: [Chimera-users] Chimera --send on MacOS From: François Stricher To: Tom Goddard Date: 10/4/12 4:36 PM
Hi Tom, you're right the daily build allows again the use of --send. However, here is another problem: when I do "chimera --send test.com", I have this error message "[Errno 2] No such file or directory: u'test.com'" François
On Oct 4, 2012, at 23:24 , Tom Goddard wrote:
Hi François,
Yes "chimera --send" is broken in Chimera 1.6 but fixed in the daily builds a few days ago. Here is a way to fix your Chimera 1.6 if you prefer to continue using the production release
To fix "chimera --send" in Chimera 1.6 change line 71 of the following file
chimera/share/send_to_chimera.py
in your chimera distribution from
web_file = "chim_webinfo-%s" % username
to
web_file = "chimera_webinfo-%s" % username
(the "chim_" is now "chimera_").
Tom
-------- Original Message -------- Subject: [Chimera-users] Chimera --send on MacOS From: François Stricher To: chimera-users@cgl.ucsf.edu Date: 10/4/12 5:57 AM
Hi all, I want to be able to interact with Chimera from another program, sending commands and all. I tried the chimera --send my_file.com to test it under MacOS 10.7. Each time I do this, it opens a new instance (instead of reusing the previous one) and doesn't process my_file.com at all. When I open my_file.com from inside chimera, it operates the commands inside it without any problem. Any idea? Francois _______________________________________________ Chimera-users mailing list Chimera-users@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
_______________________________________________ Chimera-users mailing list Chimera-users@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users

Hi Tom, Indeed, it's the path. When I first tried, it was from the icon. I then tried launching it from the command line and it worked. Thanks, François Le 5 oct. 2012 à 03:54, Tom Goddard <goddard@sonic.net> a écrit :
Hi François,
I suspect your test.com file is not found when you run "chimera --send test.com" because the Chimera that is already running was started in a different directory then the one test.com is in. The file is opened by the already running chimera and so the path probably has to be relative the directory that Chimera was started in. If you started Chimera by clicking an icon in Mac OS then it starts in directory "/". So you should specify a full path to "test.com" like /Users/stricher/test.com or ~/test.com.
I think this is weird and unexpected and we should probably fix this so that "chimera --send" converts the relative path to an absolute path before handing it to the running Chimera.
Tom
-------- Original Message -------- Subject: Re: [Chimera-users] Chimera --send on MacOS From: François Stricher To: Tom Goddard Date: 10/4/12 4:36 PM
Hi Tom, you're right the daily build allows again the use of --send. However, here is another problem: when I do "chimera --send test.com", I have this error message "[Errno 2] No such file or directory: u'test.com'" François
On Oct 4, 2012, at 23:24 , Tom Goddard wrote:
Hi François,
Yes "chimera --send" is broken in Chimera 1.6 but fixed in the daily builds a few days ago. Here is a way to fix your Chimera 1.6 if you prefer to continue using the production release
To fix "chimera --send" in Chimera 1.6 change line 71 of the following file
chimera/share/send_to_chimera.py
in your chimera distribution from
web_file = "chim_webinfo-%s" % username
to
web_file = "chimera_webinfo-%s" % username
(the "chim_" is now "chimera_").
Tom
-------- Original Message -------- Subject: [Chimera-users] Chimera --send on MacOS From: François Stricher To: chimera-users@cgl.ucsf.edu Date: 10/4/12 5:57 AM
Hi all, I want to be able to interact with Chimera from another program, sending commands and all. I tried the chimera --send my_file.com to test it under MacOS 10.7. Each time I do this, it opens a new instance (instead of reusing the previous one) and doesn't process my_file.com at all. When I open my_file.com from inside chimera, it operates the commands inside it without any problem. Any idea? Francois _______________________________________________ Chimera-users mailing list Chimera-users@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
_______________________________________________ Chimera-users mailing list Chimera-users@cgl.ucsf.edu http://plato.cgl.ucsf.edu/mailman/listinfo/chimera-users
participants (2)
-
François Stricher
-
Tom Goddard