-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot import in pycharm 2017.2 #1148
Comments
I am not a PyCharm user but I doubt anyone can have the slightest idea since you basically provided zero useful information. |
If you can give me a list of commands and steps to reproduce your environment I would give this a shot. |
Yes, sorry, it had been a long day. Anyway, If you setup two simple projects in Pycharm, both using the same 2.7.14 virtualenv with psutils installed: Thus, Standard Vanilla Python Project: main.py contains
Google App Engine Project -
The import in the vanilla python project works fine, but the import in the GAE app returns the traceback:
|
Does Google webapp mess with imports? It looks like it's doing something with |
I think it does, yes. It has a list of third party packages that you can specify in the app.yaml, unfortunately psutil is not on it. I have no idea why. I came about this error via attempting to use Google cloud pubsub. The pubsub import works but that package calls types.py which imports psutil and fails everytime. There is an issue out there I found... googleapis/google-cloud-python#3892 |
I tried as per Google's recomendations for installing third party software "Using third-party libraries" online document. But this raises another exception: "Using third-party libraries" online document.
|
By the way, PyCharm is available for free for open-source projects: https://www.jetbrains.com/buy/opensource/ |
Closing this out as it seems related to PyCharm. |
I am using python2.7.14 and have a virtualenv setup and have installed psutil via Pycharm to the virtualenv. Importing in the console or from the terminal python is fine, nut it just will not import in Pycharm, so you have any ideas?
The text was updated successfully, but these errors were encountered: