ModuleNotFoundError despite appearing in Project Interpreter

Answered

I am using external dependency (aws boto3) added through requirements.txt in my project. However it cannot be found

In the project interpreter it shows boto3 there alongside the python version. I have tried setting up a completely seperate venv, and pycharm prompted me to install the missing modules, but this had the same end result

In the editor it lets me right click from my class (dynamo_db_helper) through to boto3 (__init.py shown below ).

Through terminal I can run the program and it succeeds (it also uses the same version 3.6.2 on the same directory).

When I try to run through pycharm though it errors with ModuleNotFound.

 

It is not just this dependency but any. I have tried doing pip install -r requirements.txt through the cmd and it runs fine,s aying already installed, tried with different python version, tried with a venv through pycharm and all have the same end results.

Is there any reason this may happen? As it does show that it should currently have access to boto3. 

 

1
1 comment

Hello, Michael! Could you please run this script: https://gist.github.com/vlasovskikh/968240f877117cb6c882 in Pycharm and in Terminal and send the both outputs to pycharm-support@jetbrains.com? Thank you.

0

Please sign in to leave a comment.