Giter VIP home page Giter VIP logo

Comments (9)

elarivie avatar elarivie commented on August 19, 2024

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.

CesarLanderos avatar CesarLanderos commented on August 19, 2024

image

i get this and doing /.../python -m mypy --version gives me:

mypy 0.670

from linter-mypy.

CesarLanderos avatar CesarLanderos commented on August 19, 2024

it used to just work before i updated the package

from linter-mypy.

elarivie avatar elarivie commented on August 19, 2024

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.

CesarLanderos avatar CesarLanderos commented on August 19, 2024

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.

CesarLanderos avatar CesarLanderos commented on August 19, 2024

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.

nmatthews-asapp avatar nmatthews-asapp commented on August 19, 2024

@elarivie

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.

elarivie avatar elarivie commented on August 19, 2024

4 Months without new information, closing this issue...

from linter-mypy.

str225 avatar str225 commented on August 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.