Python importing module goes wrong

125 views Asked by At

If I import a module in a python (2.7.13) script e.g

from winappdbg import breakpoint

and execute it with the IDLE Python Shell, I get an error:

ImportError: cannot import name breakpoint

If I run from the commandline:

>> python
>> from winappdbg import breakpoint

everything is fine.

Same problem if I run the script via Commandline:

>> python C:\path\to\script.py

results in the same error

  • The Python Version displayed by the IDLE Shell is exactly the same like the one displayed by the Commandline Command.
  • I checked the PYTHONPATH and also tried to add the script manually to the PYTHONPATH with no effect.
  • I also tried different Python Versions - still the same problem.

I do not know how to continue - so maybe someone have an idea or got the same problem?

0

There are 0 answers