0

Not really able to find any information on this - I haven't had the problem before, and I've checked what there was to read. Yes I've deleted the .pyc files (obviously), no I'm not loading or importing across multiple modules, I'm trying to run the program directly, I've even committed the changes to Git just to see what it would think - and it's still running an old version of the file. I have no idea where or how to debug this. Thanks.

2
  • Are you running it in an interpreter such as ipython, or standalone? Commented Jun 3, 2014 at 21:06
  • Directly from shell, with a virtual environment Commented Jun 3, 2014 at 21:10

1 Answer 1

1

Very likely it is importing a module somewhere else on your system, assuming you're not running interactive and haven't restart it.

You can try:

python -v myprogram.py

And it will tell you every single file it imports (including any .pyc files).

Sign up to request clarification or add additional context in comments.

4 Comments

Is there a way to redirect that to a file? It's going to take sometime to track this down
It goes to stderr, assuming you are running unix, just add 2> output.txt at the end.
@user3467349 Any luck? Did this help?
Nope, and I have a persistence with problem with Django as well apparently, even with caching disabled in Chrome dev, and the pycache removed, and this is for html templates as well btw.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.