Issue1321736
This issue tracker has been migrated to GitHub,
and is currently read-only.
For more information,
see the GitHub FAQs in the Python's Developer Guide.
Created on 2005-10-10 04:17 by georgel377, last changed 2022-04-11 14:56 by admin. This issue is now closed.
Files | ||||
---|---|---|---|---|
File name | Uploaded | Description | Edit | |
responseInfo | georgel377, 2005-10-10 16:05 | Answers to the questions |
Messages (7) | |||
---|---|---|---|
msg26542 - (view) | Author: George LeCompte (georgel377) | Date: 2005-10-10 04:17 | |
downloaded python-2.4.2 under redhat Linux 9 python >>> import time Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named time >>> import math Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named math >>> Haven't checked many more modules didn't notice any errors in ./config, make, or make install. |
|||
msg26543 - (view) | Author: Neal Norwitz (nnorwitz) * | Date: 2005-10-10 05:16 | |
Logged In: YES user_id=33168 Can you re-run make and see if there are errors? Is there anything in your PYTHONPATH environment variable? We will need more information in order to attempt to debug this. Do the .so files exist under build/lib*2.4/ ? |
|||
msg26544 - (view) | Author: George LeCompte (georgel377) | Date: 2005-10-10 16:05 | |
Logged In: YES user_id=1187496 Attached a file with edited log showing problem. george |
|||
msg26545 - (view) | Author: George LeCompte (georgel377) | Date: 2005-10-10 23:15 | |
Logged In: YES user_id=1187496 I did a make clean, ./configure, make, and make install with no improvements. Here is the contnts of the file previously attached. I think it answers the questions. .:/usr/local/lib/python2.4/:/usr/local/lib/python2.4/site-packages/ PYTHON PATH seems OK [root@localhost Python-2.4.2]# echo $PYTHONPATH .:/usr/local/lib/python2.4/:/usr/local/lib/python2.4/site-packages/ [root@localhost Python-2.4.2]# There were some warning during make: [root@localhost Python-2.4.2]# make >makeInfo libpython2.4.a(posixmodule.o)(.text+0x39e0): In function `posix_tmpnam': Modules/posixmodule.c:6159: the use of `tmpnam_r' is dangerous, better use `mkstemp' libpython2.4.a(posixmodule.o)(.text+0x3952): In function `posix_tempnam': Modules/posixmodule.c:6114: the use of `tempnam' is dangerous, better use `mkstemp' /home/george/downloads/Python/Python-2.4.2/Modules/cjkcodecs/_codecs_iso2022.c: In function `iso2022_encode': /home/george/downloads/Python/Python-2.4.2/Modules/cjkcodecs/_codecs_iso2022.c:207: warning: passing arg 1 of pointer to function from incompatible pointer type[root@localhost Python-2.4.2]# time.so and math.so exist under build/lib*2.4 [root@localhost Python-2.4.2]# find / -name 'math.so' /usr/local/lib/python2.4/lib-dynload/math.so /usr/src/redhat/BUILD/Python-2.3.4/build/lib.linux-i686-2.3/math.so /home/george/.kde/share/usr/local/lib/python2.4/lib-dynload/math.so /home/george/downloads/Python/Python-2.4.2/build/lib.linux-i686-2.4/math.so [root@localhost Python-2.4.2]# find / -name 'time.so' /usr/local/lib/python2.4/lib-dynload/time.so /usr/src/redhat/BUILD/Python-2.3.4/build/lib.linux-i686-2.3/time.so /home/george/.kde/share/usr/local/lib/python2.4/lib-dynload/time.so /home/george/downloads/Python/Python-2.4.2/build/lib.linux-i686-2.4/time.so [root@localhost Python-2.4.2]# The problem still persists: [root@localhost Python-2.4.2]# [root@localhost Python-2.4.2]# python Python 2.4.2 (#5, Oct 10 2005, 07:52:32) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-5)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import time Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named time >>> import math Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named math >>> import sys >>> import datetime Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named datetime >>> import rand Traceback (most recent call last): File "<stdin>", line 1, in ? ImportError: No module named rand >>> |
|||
msg26546 - (view) | Author: Neal Norwitz (nnorwitz) * | Date: 2005-10-11 03:16 | |
Logged In: YES user_id=33168 The files (time.so, math.so) look like they are installed where they should be. What is your LD_LIBRARY_PATH? Does it work as a normal user (not root)? ls -l /usr/local/lib/python2.4/lib-dynload/math.so ? Finally, this is the most likely to help you resolve the problem, run strace. strace will show where python is trying to load math.so and should indicate what error is occurring. Hopefully, that will point out the real problem. |
|||
msg26547 - (view) | Author: George LeCompte (georgel377) | Date: 2005-10-11 15:10 | |
Logged In: YES user_id=1187496 ran strace and the source was staring at me in two uncorrelated places; 1) PYTHONPATH .:/usr/local/lib/python2.4/:/usr/local/lib/python2.4/site-packages/ 2) [root@localhost Python-2.4.2]# find / -name 'time.so' /usr/local/lib/python2.4/lib-dynload/time.so appending '/usr/local/lib/python2.4/lib-dynload' resolved the problem thanks for the hint |
|||
msg26548 - (view) | Author: Neal Norwitz (nnorwitz) * | Date: 2005-10-11 17:24 | |
Logged In: YES user_id=33168 Ok, closing this report then. If you think there is something Python should do differently, please re-open this bug and provide details about what it's doing and what you expect. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:56:13 | admin | set | github: 42462 |
2005-10-10 04:17:25 | georgel377 | create |