error while importing os
jason.scheirer at gmail.com
Sun Feb 15 23:04:57 CET 2009
On Feb 15, 12:38 pm, karan <konte... at gmail.com> wrote:
> 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.
Looks like you have an errant dynamic library -- look for types.pyd on
your pythonpath and make sure the right one is getting imported.
More information about the Python-list