Giter VIP home page Giter VIP logo

Comments (3)

elarivie avatar elarivie commented on August 19, 2024

@Diviyan-Kalainathan
Hello, thanks for your feedback

I am not familiar with Conda environment... could you provide more details, what error exactly do you have?
Which package exactly are not found?

Do you obtain valid output when launching the following two commands in a terminal (note use the path to python that you provided in the linter-mypy settings):

python -m mypy --version
python -m mypy --help

I guess that the python executable that you provide in the settings is the one managed by Conda? Did you try to provide the full path to it?

Did you try using the setting "Mypy Path"?

If you manually launch in a terminal a Mypy analyse of your code do you obtain the same error?

How do you launch atom? does your environment variable PATH modified by Conda is available to it?

Could you provide some kind of script which install & setup a Conda environment and reproduce the issue that you have.

Note: Even though it is not the same environment manager, your question really looks like #6.

from linter-mypy.

diviyank avatar diviyank commented on August 19, 2024

Thanks for the answer, the issue is concerning all non-default packages installed in the environment :

screenshot-mypy

Here's the output of the terminal commands, nothing seems to be wrong:

$ /home/diviyan/miniconda2/envs/py35/bin/python -m mypy --version
mypy 0.570
$ /home/diviyan/miniconda2/envs/py35/bin/python -m mypy --help
usage: mypy [-h] [-v] [-V] [--python-version x.y] [--platform PLATFORM] [-2]
            [--ignore-missing-imports]
            [--follow 
            ...
  • I did try both paths: the path with '~' didn't find mypy so I'm using the full path right now (this related to #6 but I had it fixed already)
  • I just tried changing the mypy path in the setting, nothing changes.

I noticed that the issue doesn't comes from linter-mypy but from mypy itself! Running mypy in a terminal gives me the same errors. I'm going to investigate in that direction.

Thanks a lot for your feedback !

from linter-mypy.

diviyank avatar diviyank commented on August 19, 2024

Ok the problem was in my MYPY configuration, I forgot to set the $MYPYPATH environment variable when activating my conda environment.

Thanks again !
Diviyan

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.