Modify ↓
Opened 14 years ago
Closed 14 years ago
#10 closed defect (fixed)
Python module pxeconfig not found
Reported by: | Ole.H.Nielsen@… | Owned by: | bas |
---|---|---|---|
Priority: | blocker | Component: | pxeconfig |
Version: | 3.0.3 | Keywords: | module pxeconfig |
Cc: |
Description
I installed pxeconfig-3.0.3 according to instructions and did the testing successfully. However, the pxeconfig command fails:
# pxeconfig --version
Traceback (most recent call last):
File "/usr/local/bin/pxeconfig", line 30, in ?
import pxeconfig
ImportError?: No module named pxeconfig
The system is running RedHat? RHEL5.3.
Attachments (0)
Change History (8)
comment:1 Changed 14 years ago by bas
- Owner changed from somebody to bas
- Status changed from new to assigned
comment:2 Changed 14 years ago by bas
- Version changed from 3.0.2 to 3.0.3
comment:3 Changed 14 years ago by bas
python Python 2.4.3 (#1, Sep 17 2008, 16:07:08) [GCC 4.1.2 20071124 (Red Hat 4.1.2-41)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import sys >>> print sys.path ['', '/usr/lib64/python24.zip', '/usr/lib64/python2.4', '/usr/lib64/python2.4/plat-linux2', '/usr/lib64/python2.4/lib-tk', '/usr/lib64/python2.4/lib-dynload', '/usr/lib64/python2.4/site-packages', '/usr/lib64/python2.4/site-packages/Numeric', '/usr/lib64/python2.4/site-packages/gtk-2.0', '/usr/lib/python2.4/site-packages'] > > {{{ > > ls -l /usr/local/lib/python<version>/site-packages > > }}} # ls -lR /usr/local/lib/python2.4/site-packages /usr/local/lib/python2.4/site-packages: total 16 drwxr-xr-x 2 root root 4096 May 28 14:17 pxeconfig -rw-r--r-- 1 root root 10 May 28 14:30 pxeconfig.pth /usr/local/lib/python2.4/site-packages/pxeconfig: total 48 -rw-r--r-- 1 root root 6355 Apr 15 14:44 AdvancedParser.py -rw-r--r-- 1 root root 4634 May 28 14:17 AdvancedParser.pyc -rw-r--r-- 1 root root 7789 May 28 14:16 pxeconfig.py -rw-r--r-- 1 root root 7623 May 28 14:17 pxeconfig.pyc
comment:4 Changed 14 years ago by bas
I used to Debian and see that /usr/local is not in your search path after the statement:
import sys
append
sys.path.append(/usr/local/lib/python2.4/site-packages)
does the trick or install it in /usr
comment:5 Changed 14 years ago by bas
must be:
- sys.path.append('/usr/local/lib/python2.4/site-packages')
comment:6 Changed 14 years ago by bas
comment:7 Changed 14 years ago by bas
comment:8 Changed 14 years ago by bas
- Resolution set to fixed
- Status changed from assigned to closed
Note: See
TracTickets for help on using
tickets.
Hi Ole,
Regards