Existing users, log in.  New users, create a free account.  Lost password?

Mac OS X  |  System / Utilities  |  Other System / Utilities  |  HP Communication Reset  |  Python scripts work, but not app

HP Communication Reset

HP Communication Reset

kill & restart HP communication process

Version:  1.1.1

   [ Views: 900 ]

Python scripts work, but not app

Feedback Type:  Commentary

Contributed by: pg99--2008 Thursday, January 18 2007 @ 01:32 AM PST

Product Platform: MacOSX

Used Product For: Less than a month

Recommend Product: YES

Running the python scripts work fine, but running the hpkill or hpcomm apps doesn't seem to do anything. I can get by with the python scripts, but the apps would be more convenient. Any suggestions, or ideas on how to debug this? I'm running 10.4.8.

BTW - thanks for doing this. I've got a G85, and have had these problems for years. I've been using the StopHP and StartHP scripts written by someone else for a while, and they work most of the time, but don't always succeed in killing the HP Communications process. Your scripts kill HP Comm more reliably.   

Rate this Commentary

Was this Commentary helpful? Yes | No

Comments

7 comments |

Python scripts work, but not app - JoeSlater

Strange. All the apps are is wrappers built by MacPython. Have you opened the Activity monitor application (in Utilities in your Applications folder) and watched it? hpcomm should result in what looks like a changing in the process ID since it kills and restarts quickly. hpkill should result in the process disappearing. What machine are you running on? It might be that I'm only building an Intel binary, but I don't know how to change that (or determine it).

I the scripts work on your machine, you can make your own applets by downloading macpython 2.5 and using the build applet application. That's all I did to make them.

Reply to This

Thursday, January 18 2007 @ 05:48 AM PST


Python scripts work, but not app - pg99--2008

Yes, I was watching the process id in Activity Monitor. PID changed w/scripts, but not with apps.
I already had MacPython 2.3 installed (didn't realize it until I just went and looked). Haven't found MacPython 2.5 download anywhere. The binaries produced by using the build applet function work properly. So, I'm good for now, but would be nice to figure out the problem.

So - don't know why your apps don't work and mine do - odd.

I'm running on a G4, 10.4.8, and Get Info reports that the apps are indeed applications. I would imagine that buildapplet would build a universal binary by default, don't know for sure, and don't know for sure how to tell.

Reply to This

Thursday, January 18 2007 @ 11:47 AM PST


Python scripts work, but not app - JoeSlater

You can find it at:
http://www.pythonmac.org/packages/

Reply to This

Thursday, January 18 2007 @ 12:43 PM PST


Python scripts work, but not app - pg99--2008

thanks - I had found that, but didn't realize it included the GUI apps, so I didn't download it.

So - I installed 2.5, including Build Applet, and rebuilt the apps using 2.5. These work on my system, and your apps now work also.

As I suspect you have now figured out. the apps built by Build Applet are referencing the Python Framework of the same version as Build Applet, and the 2.5 framework wasn't there till I just installed it.
#!/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python

If your fix is to remove that dependency somehow, then you should be able to test it by temporarily moving the 2.5 framework to a different path.

Reply to This

Friday, January 19 2007 @ 12:26 PM PST


Python scripts work, but not app - pg99--2008

thanks - I had found that, but didn't realize it included the GUI apps, so I didn't download it.

So - I installed 2.5, including Build Applet, and rebuilt the apps using 2.5. These work on my system, and your apps now work also.

As I suspect you have now figured out. the apps built by Build Applet are referencing the Python Framework of the same version as Build Applet, and the 2.5 framework wasn't there till I just installed it.
#!/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python

If your fix is to remove that dependency somehow, then you should be able to test it by temporarily moving the 2.5 framework to a different path.

Reply to This

Friday, January 19 2007 @ 01:16 PM PST


Python scripts work, but not app - pg99--2008

thanks - I had found that, but didn't realize it included the GUI apps, so I didn't download it.

So - I installed 2.5, including Build Applet, and rebuilt the apps using 2.5. These work on my system, and your apps now work also.

As I suspect you have now figured out. the apps built by Build Applet are referencing the Python Framework of the same version as Build Applet, and the 2.5 framework wasn't there till I just installed it.
#!/Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python

If your fix is to remove that dependency somehow, then you should be able to test it by temporarily moving the 2.5 framework to a different path.

Reply to This

Friday, January 19 2007 @ 01:39 PM PST


Python scripts work, but not app - JoeSlater

Would someone without macpython or the developer tools installed and with this problem please contact me? I think I have a fix, but I need someone to test it.
Thanks,
Joe

Reply to This

Thursday, January 18 2007 @ 06:02 PM PST