| | |
Where's Nemo?
Thread Solved |
I read somewhere about somebody importing the sys.py module. I can't find the bugger on my system! I have python 2.5.1 installed on this Waxows XP machine. I did a search for sys.py in the c:\python25 folder and sys.py isn't there! Isn't it supposed to be installed by default? If not, how do I install it?
When I import sys from the command line, I get:
Cheers
When I import sys from the command line, I get:
python Syntax (Toggle Plain Text)
>>> import sys >>>
Cheers
•
•
Join Date: Sep 2005
Posts: 133
Reputation:
Solved Threads: 58
Python Syntax (Toggle Plain Text)
>>> import sys >>>
•
•
Join Date: Feb 2007
Posts: 55
Reputation:
Solved Threads: 4
Hi,
Yes mawe you're right, I've tried it as well and it seems to be performing.
"Sys.py" is definitely there without a doubt! What the mystery is, is why would someone want to import it?
I too found this same thing happening to me when I first started using Python and I was mystfied that something AMAZING
didn't happen when I first imported it, and wondered for a long time that maybe I was doing something wrong and that had I ruined Python
...but I know now for sure that his machine is working all right!
fredzik.
Yes mawe you're right, I've tried it as well and it seems to be performing.
Python Syntax (Toggle Plain Text)
[list=1]<LI class=li1>>>> import sys[*]>>>[/list]
"Sys.py" is definitely there without a doubt! What the mystery is, is why would someone want to import it?
I too found this same thing happening to me when I first started using Python and I was mystfied that something AMAZING
fredzik.
•
•
Join Date: Feb 2007
Posts: 55
Reputation:
Solved Threads: 4
Hi,
The "Message" box is going funny again. The code should have come out exactly as theirs did...so here it is again:
Bye.
fredzik.
The "Message" box is going funny again. The code should have come out exactly as theirs did...so here it is again:
Python Syntax (Toggle Plain Text)
>>> import sys >>>
Bye.
fredzik.
Not all modules are modulename.py files. Some of them are .pyc (Python bytecode) or .pyd (Python dll) )files. My best guess is that the module sys is written in C and is part of the Python24.dll/Python25.dll. If you run the Windows version of Python, this file is installed in the Windows\system32 folder.
May 'the Google' be with you!
![]() |
Similar Threads
- Can hear Can't see avi mpeg (Windows NT / 2000 / XP)
- How do I copy a DvD and then burn a copy of it with my dvdr (Apple Hardware)
- Tell us about yourself! (Community Introductions)
- php phpmyadmin problem ?? (PHP)
- one more among MANY. (Viruses, Spyware and other Nasties)
- this has happend three times now (Windows NT / 2000 / XP)
- No Posts? (DaniWeb Community Feedback)
- I need window~1.ani (Windows NT / 2000 / XP)
Other Threads in the Python Forum
- Previous Thread: python mysql doesnt work?plz help
- Next Thread: My prime Number generator
| Thread Tools | Search this Thread |
address alarm anydbm app beginner cipher conversion coordinates curves cx-freeze data development dictionary directory dynamic examples excel feet file float format function generator getvalue gui halp handling homework images import input ip itunes java keycontrol line linux list lists loan loop maintain maze millimeter mouse mysqldb number numbers output parsing path port prime programming projects py2exe pygame pyglet pymailer python queue random recursion recursive screensaverloopinactive script scrolledtext searchingfile shebang slicenotation split ssh string strings table terminal text thread threading time tlapse tooltip tuple tutorial type ubuntu unicode url urllib urllib2 variable variables ventrilo verify vigenere web webservice wx.wizard wxpython xlwt






