Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • 2
    It means that Python was told to compile that module from a string; that probably is PyCharm's fault, not Python. Commented Nov 28, 2014 at 17:38
  • How exactly are you running this code at the moment? Commented Nov 28, 2014 at 17:40
  • @MartijnPieters: here is the launcher - I am almost certain that before I copy pasted the file in basher/__init__.py it did not load a string though... Commented Nov 28, 2014 at 21:50
  • No, I meant that PyCharm is instructing the Python interpreter to run that file from a string rather than asking Python to import it as a module. I didn't say anything about the module itself doing anything. Commented Nov 28, 2014 at 21:52
  • @MartijnPieters: It happens also when I directly run the launcher - I mentioned Pycharm cause it seems to me that it's the same reason it can't step through the code in __init__.py Commented Nov 28, 2014 at 22:38