-
Notifications
You must be signed in to change notification settings - Fork 437
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 find module installed by pipenv #64
Comments
Sorry, but it's not clear to me how to use that |
Ok I will post more details as soon as I can. |
@dark here is a minimal repro: Do the following:
Then you will see various output, but of interest:
Python ran and found the import just fine. |
Thanks for the info. The main reason for which this is happening is that stubs for In theory you could make Pyre parse the That said, it looks like the sources of |
It sounds like the best thing that can come out of this issue practically then is better user feedback that attempts to automate what you've said in context of different packages? |
Explicit |
@Zebradil The two configuration methods should be equivalent. Could you please post the full command and configuration that you have tried? Adding |
Okay, I created a script for reproduce the issue, but now it's working as expected. I'm confused :-) I'll investigate further. The script, just in case: #!/bin/bash
rm -rf pyre-test
mkdir pyre-test
cd pyre-test
echo 'import pymysql;import pprint;pprint.pprint(pymysql)' > app.py
pipenv --three
pipenv install pymysql
pipenv run python app.py
pipenv install -d pyre-check
pipenv run pyre --search-path "$(pipenv --venv)/lib/python3.6/site-packages/"
pipenv run pyre init
cat .pyre_configuration \
| jq --arg path "$(pipenv --venv)/lib/python3.6/site-packages/" '. + {search_path: [$path]}' \
> .pyre_configuration
pipenv run pyre |
Regarding the original issue, we have added better wording/documentation recently. |
The text was updated successfully, but these errors were encountered: