error while importing os

karan konteyaj at gmail.com
Sun Feb 15 15:38:17 EST 2009


Hi,

Iam new to python i see the following when iam in the python shell and
i try to import os,though i can import the sys and sys.path does
contain the path to the python binary or the folder where the python
binaries reside:

Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\Perf\qa\test\build\vmqa\python\python-2.4.1-as\lib\os.py",
line 683, in ?
    import copy_reg as _copy_reg
  File "C:\Perf\qa\test\build\vmqa\python\python-2.4.1-as\lib
\copy_reg.py", line 7, in ?
    from types import ClassType as _ClassType
ImportError: dynamic module does not define init function (inittypes)

I have the added the path to the Python which contain the python
binaries,DLLs to the PYTHONPATH.


Let me know what might be the reason for getting this error.

Thanks.



More information about the Python-list mailing list