Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#34132 closed defect (wontfix)

zeroinstall-injector: Hang trying to uninstall

Reported by: dave@… Owned by: afb@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: zeroinstall-injector

Description

Things were messed up as you can see from the session below. The last output shown is where it hung; I had to Control-C out of it.

pluto:~/src/boost/svn/trunk dave% 0publish --help
WARNING:root:Can't parse distribution version 'p17_1' for package 'psutils'
Traceback (most recent call last):
  File "/Users/dave/.cache/0install.net/implementations/sha256=24533dcef144809ec544f5a52777e6d4316b4a0a207b75a7c0ef9765366dc219/0publish", line 2, in <module>
    from zeroinstall import SafeException
ImportError: No module named zeroinstall
pluto:~/src/boost/svn/trunk dave% python --version
Python 2.6.8
pluto:~/src/boost/svn/trunk dave% which python
/opt/local/bin/python
pluto:~/src/boost/svn/trunk dave% python
Python 2.6.8 (unknown, Apr 15 2012, 02:01:29) 
[GCC 4.2.1 Compatible Apple Clang 3.0 (tags/Apple/clang-211.10.1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import zeroinstall
>>> ^D
pluto:~/src/boost/svn/trunk dave% sudo port uninstall zeroinstall-injector
--->  The following versions of zeroinstall-injector are currently installed:
--->      zeroinstall-injector @1.7_1
--->      zeroinstall-injector @1.7_4+python26 (active)
Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry.
pluto:~/src/boost/svn/trunk dave% sudo port uninstall zeroinstall-injector-1.7_1
pluto:~/src/boost/svn/trunk dave% 0publish --help                               
Traceback (most recent call last):
  File "/Users/dave/.cache/0install.net/implementations/sha256=24533dcef144809ec544f5a52777e6d4316b4a0a207b75a7c0ef9765366dc219/0publish", line 2, in <module>
    from zeroinstall import SafeException
ImportError: No module named zeroinstall
pluto:~/src/boost/svn/trunk dave% sudo port uninstall zeroinstall-injector      
--->  The following versions of zeroinstall-injector are currently installed:
--->      zeroinstall-injector @1.7_1
--->      zeroinstall-injector @1.7_4+python26 (active)
Error: port uninstall failed: Registry error: Please specify the full version as recorded in the port registry.
pluto:~/src/boost/svn/trunk dave% sudo port uninstall zeroinstall-injector@1.7_1
--->  Uninstalling zeroinstall-injector @1.7_1
--->  Cleaning zeroinstall-injector
pluto:~/src/boost/svn/trunk dave% 0publish --help
WARNING:root:Can't parse distribution version 'p17_1' for package 'psutils'
Traceback (most recent call last):
  File "/Users/dave/.cache/0install.net/implementations/sha256=24533dcef144809ec544f5a52777e6d4316b4a0a207b75a7c0ef9765366dc219/0publish", line 2, in <module>
    from zeroinstall import SafeException
ImportError: No module named zeroinstall
pluto:~/src/boost/svn/trunk dave% sudo port uninstall zeroinstall-injector      
--->  Deactivating zeroinstall-injector @1.7_4+python26
--->  Cleaning zeroinstall-injector
--->  Uninstalling zeroinstall-injector @1.7_4+python26
--->  Cleaning zeroinstall-injector
pluto:~/src/boost/svn/trunk dave% Traceback (most recent call last):
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/zeroinstall/injector/background.py", line 242, in spawn_background_update
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/zeroinstall/injector/background.py", line 207, in _check_for_updates
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/zeroinstall/support/tasks.py", line 375, in wait_for_blocker
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/zeroinstall/support/tasks.py", line 256, in _resume
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/zeroinstall/injector/driver.py", line 125, in solve_with_downloads
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/zeroinstall/injector/config.py", line 65, in fetcher
ImportError: cannot import name fetch

Change History (6)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to afb@…
Summary: Hang trying to uninstall zeroinstall-injectorzeroinstall-injector: Hang trying to uninstall

comment:2 Changed 13 years ago by afb@…

Resolution: wontfix
Status: newclosed
Version: 2.0.4

I'm not sure it's a good idea to try uninstalling something that has background processes still running... One might attempt a deactivate phase in the port, but it would be "easier" to just let it finish first.

Doctor, it hurts when I do this

comment:3 Changed 13 years ago by dave@…

How can you tell it had background processes running?

comment:4 Changed 13 years ago by neverpanic (Clemens Lang)

You're seeing a python stack trace. MacPorts doesn't use Python internally. Hence, there must be other processes running python attached to the same terminal.

comment:5 Changed 13 years ago by neverpanic (Clemens Lang)

Btw, did you install 0publish from macports? (I didn't find it in the ports tree, so probably not.) The 0publish script doesn't necessarily use the python version first in your path, i.e. it doesn't necessarily use macports python where zeroinstall-injector installs to.

comment:6 in reply to:  3 Changed 13 years ago by afb@…

Replying to dave@…:

How can you tell it had background processes running?

Well, the method is called "spawn_background_update" and it uses os.fork()... :-)

Anyway, I don't think if it really hung but was just waiting for a server or so ?

Note: See TracTickets for help on using tickets.