Skip to contentSkip to conversation

Make non-native python path handling a

PATCH Ryan Harper 1 participant 1 message Apr 18, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 3 lines · BitKeeper Bot

ChangeSet 1.1159.256.97, 2005/04/15 23:00:50+01:00, [email protected]

[PATCH] Make non-native python path handling a

<snip>

tools/misc/xend line 29

Quoted 13 lines
tools/misc/xend +2 -2
@@ -22,8 +22,8 @@
 import os
 import sys
 
-# Default install path for Xen binary packages.
-sys.path = [ '/usr/lib/python' ] + sys.path
+# add fallback path for non-native python path installs if needed
+sys.path.append('/usr/lib/python')
 from xen.xend.server import SrvDaemon
 
 class CheckError(ValueError):

This patch breaks xend in unstable for me. With the above patch applied, xend fails to start and dumps the following in /var/log/xend-debug.log:

xu_notifier_new()
error connecting to xcs(ctrl)! (111)
Traceback (most recent call last):
File "/usr/sbin/xend", line 180, in ?

    sys.exit(main())
  File "/usr/sbin/xend", line 162, in main
    return daemon.start()
  File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", line 524, in start
    self.run()

File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", line 612, in run
self.listenNotifier()
File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", line 632, in listenNotifier
p.startListening()
File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", line 91, in startListening
self._connectToProtocol()
File "/usr/lib/python2.3/site-packages/xen/xend/server/SrvDaemon.py", line 109, in _connectToProtocol
self.startReading()
File "/usr/lib/python2.3/site-packages/twisted/internet/abstract.py", line 205, in startReading
self.reactor.addReader(self)
File "/usr/lib/python2.3/site-packages/twisted/internet/pollreactor.py", line 89, in addReader
self._updateRegistration(fd)
File "/usr/lib/python2.3/site-packages/twisted/internet/pollreactor.py", line 52, in _updateRegistration
poller.unregister(fd)
ValueError: file descriptor cannot be a negative integer (-1)

--
Ryan Harper
Software Engineer; Linux Technology Center
IBM Corp., Austin, Tx
(512) 838-9253 T/L: 678-9253
[email protected]