NameError: name '_pa_run' is not defined

Python 3.6 started to raise this error every time I try to run one of my scripts:

>>> _pa_run(u'/home/yellowparrot/vk/')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name '_pa_run' is not defined

There is no '_pa_run' method in my code, and I failed to find any mentions of it. Can somebody help?

That's really weird. _pa_run is a function that we use to run your code (so we don't need to keep destroying and re-creating the console every time you run your code). You should never see any reference to that. Seeing it means that there was probably some other error that caused _pa_run to not be available. Is there any other output in your console that we can use to work out what is going on?

No other output, and this error message disappeared when I just copypasted my code to another file. As for now, everything works.

That's a pity. I would have like to have worked out what was going on here. Let us know if you see it again and see if you can capture all the output for us.