-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
mypy can't find typeshed directory when installed using pyenv python/pip #3211
Comments
You're going to have to debug this yourself, I'm not familiar with pyenv. |
Happy to close this, but I brought up the problem in the gitter room and @JelleZijlstra suggested it should be opened as an issue. |
Sorry, it's fine as an issue, and if you come up with a fix we'll happily review a PR if you send it, I just don't think the core team can fix it without your help (since it's a config issue and it's happening on your computer). |
Got it, will do. |
I'm having a similar issue I believe, with a user install of mypy. |
I have the same problem, but the cause is different from both of @mdeland and @Socialery 's. On Gentoo Linux, user-installed Python locates For example, in my Linux environment, mypy library is located on I'm not tried, but I believe the same problems occurs even if I installed Python and mypy globally, by manual build or packagemanager. On Gentoo --- mypy/build.py.old 2017-07-22 16:24:01.127723181 +0900
+++ mypy/build.py 2017-07-22 16:25:20.252575559 +0900
@@ -224,8 +224,8 @@
lib = parent
for i in range(2):
lib = os.path.dirname(lib)
- if os.path.basename(lib) == 'lib':
- return os.path.join(lib, 'mypy')
+ if os.path.basename(lib) in ('lib', 'lib32', 'lib64'):
+ return os.path.join(os.path.dirname(lib), 'lib/mypy')
subdir = os.path.join(parent, 'lib', 'mypy')
if os.path.isdir(subdir):
# If installed via buildout, the __file__ is The cause of @mdeland's report seems to be non-standard |
If you have a fix can you submit it as a PR?
|
Is this still an issue with mypy 0.550? |
fixed for me, thanks! |
mypy can't find typeshed directory when installed via a pyenv'd python version.
On OSX.
python version 3.5.2, installed with
pyenv
compare to:
which works fine.
The text was updated successfully, but these errors were encountered: