[PythonCE] Can not import module Error at pcceshell.py
s3010096 at kmitl.ac.th
s3010096 at kmitl.ac.th
Tue Sep 2 02:50:25 EDT 2003
Used pcceshell.py in frist version ( Not bug fix )
Python 2.2+ (#0, Jan 20 2002, 13:30:34) [MSC 32 bit (ARM)] on Pocket PC
>>> import web
Traceback (most recent call last):
File "\Program Files\Python\lib\pcceshell.py", line 528, in Interact
exec codeOb in locals
File "<input>", line 1, in ?
File "\Program Files\Python\web.py", line 4, in ?
import urllib
File "\Program Files\Python\lib\urllib.py", line 26, in ?
ImportError: No module named _socket
When I chang used pcceshell.py in version 02/12/12 22:00 Telion bug fi=
xed
And I can not get the python >>>
Traceback(innermost last):
File =93\Program Files\Python\lib\pcceshell.py=94,line 1102, in main
Shell =3D SimpleShell()
File =93\Program Files\Python\lib\pcceshell.py=94, line 236, in __init__
Self.plf=3DpLOGFONT(self.if)
Exceptions.NameError: global name =91pLOGFONT=92 is not defined
then I set a comment on line #self.plf=3DpLOGFONT(self.lf)
Python 2.2+ (#0, Jan 20 2002, 13:30:34) [MSC 32 bit (ARM)] on Pocket PC
Type "help", "copyright", "credits" or "license" for more information.
>>> import web
Traceback (most recent call last):
File "\Program Files\Python\lib\pcceshell.py", line 952, in Interact
exec codeOb in slocals
File "<input>", line 1, in ?
File "\Program Files\Python\web.py", line 2, in ?
import urllib
File "\Program Files\Python\lib\urllib.py", line 26, in ?
ImportError: No module named _socket
>>>
---------- SetCursor(LoadCursor(0, 32514))
try:
try:
exec codeOb in slocals  line 952
except SystemExit:
raise
except:
exc_type, exc_value, exc_traceback =3D sys.exc_info()
l =3D len(traceback.extract_tb(sys.exc_traceback))
try: 1/0
except:
And then test this
>>>from urllib import *
>>>dir(urllib)
[=91__builtins__=92,=92__doc__=92,=92__file__=92,=92__name__=92,=92string=
=92]
Please help
Thanks
Chakrit
More information about the PythonCE
mailing list