Comments (9)
Hello @nmatthews-asapp,
- Can you try running the following:
/my/path/to/home/.pyenv/versions/3.6.7/envs/atom_env_3.6.7/bin/python -m mypy --version
It will either show the mypy version or "No module named mypy"
From your your issue description I am pretty sure it will print "No module named mypy"
Because this is the string which when detected by linter-mypy triggers the pop-up that you receive about "mypy does not seem to be installed"
I am not an expert of pyenv but I am pretty sure that you need to validate your pyenv configuration.
Note that the suggested install command that linter-mypy displays in the pop-up is a "suggestion" which works most of the time" but in your python virtual environment configuration maybe it is another command line that you need to use.
Maybe pyenv is changing some environment variable and if you don't launch atom within that context than the python installation is in an hybrid/unusable state.
Note: does pyenv have some kind of activation command which needs to be launch first to activate the environment (which need to be call prior to launch the installation of mypy?, before launching atom?)
Let me know if you make progress or find the solution to your issue.
Note: See #18 which was recently solve and is also about a linter-mypy user using a python virtual environment, it may contains information which could help you with the issue that you have.
from linter-mypy.
i get this and doing /.../python -m mypy --version
gives me:
mypy 0.670
from linter-mypy.
it used to just work before i updated the package
from linter-mypy.
Hello @CesarLanderos,
Note: The issue that you describe is different than the one reported by @nmatthews-asapp
Note. linter-mypy always aim to support the "latest" version of Mypy so from time to time mypy must be updated.
@CesarLanderos, in your situation you have to update Mypy has the pop-up is telling you, from the details that you provided I see that you have mypy 0.670 installed... but linter-mypy has recently been updated to fully support the latest version of Mypy which is currently 0.700. So effectively mypy 0.700 has command line arguments which were not present in prior version.
Within the pop-up the suggested command line that is shown in the pop-up contains:
... -m pip install -U mypy
The -U parameter is to "Update"
Note: From the python path in your screen shot I see that you are using a python environment, so maybe in your situation the actual command line to update mypy is different.
@CesarLanderos Let me know if this solves your issue.
@nmatthews-asapp Did you resolve your issue?
from linter-mypy.
thanks for the response, i do agree, this is a different issue.
your suggestion did not fix the issue, this is what i have now when i print the version:
mypy 0.700
from linter-mypy.
ah! ignore that message, it is working now 😅
thanks!!!
i realize that this was my fault for not actually reading the error message 😓
from linter-mypy.
When I run
/path/to/home/.pyenv/versions/3.6.7/envs/atom_env_3.6.7/bin/python -m mypy --version
I get: mypy 0.701
I do activate my environment before starting Atom and given that, I can also run python -m mypy --version
and get the same result
from linter-mypy.
4 Months without new information, closing this issue...
from linter-mypy.
I'm having the same problem: If i uninstall mypy globally, create a virtual environment and install mypy on it. I can run mypy from the terminal from inside the virtual environment, but, even after running atom from inside the venv, linter-mypy can't find mypy.
Shouldn't it use the venv mypy instead of the global one ?
from linter-mypy.
Related Issues (20)
- Feature request: Add $PROJECT_PATH and $PROJECT_NAME resolution for MYPYPATH setting. HOT 3
- Add option to only check repos where mypy.ini is present HOT 3
- Object.dirname is deprecated. HOT 2
- Doesn't find imports >= 5 levels deep HOT 1
- Can you expose the option of specifying a cache folder HOT 7
- Unable to find installed modules HOT 3
- UnicodeEncodeError HOT 1
- Does not seem to work with pipenv HOT 2
- linter-mypy generating many duplicate errors HOT 2
- Read settings from setup.cfg HOT 2
- Does not recognise typed_ast package HOT 5
- Errors are shown on incorrect files HOT 3
- Option to start the mypy process from the (Atom) project directory? HOT 3
- Package is showing internal mypy errors although turned off HOT 6
- (semi-) colon separated Python Executable Path? HOT 5
- Are mypy plugins supported ? HOT 5
- Unable to find mypy, despite correct $PATH and settings HOT 3
- How can I set $MYPYPATH so that the linter will pick up on it? HOT 1
- $PROJECT_NAME is invalid in case project folder contains dot. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linter-mypy.