user2384694 February 2016

Python env - ImportError: cannot import name

I use a third-party source checked out from svn.

It was building and running fine. But while creating a deploy script, I may have executed some cmd after which I keep getting error

ImportError: cannot import name XXX

where XXX changes randomly.

I think my environment on Mac may be corrupted.

How can I find and resolve the issue?

Answers


Morifen February 2016

Try using a virtual environment. For example, virtualenv. Once you create a virtual environment, activate it via source env/bin/activate and install all of the dependencies via pip install. You can start to narrow it down from there.

Post Status

Asked in February 2016
Viewed 1,496 times
Voted 11
Answered 1 times

Search




Leave an answer