GithubHelp home page GithubHelp logo

Comments (4)

kaste avatar kaste commented on August 20, 2024

Try the hotfix I described in #38

from sublimelinter-flake8.

spookey avatar spookey commented on August 20, 2024

Hey,
I just extracted the Package using PackageResourceViewer and patched the linter.py like you suggested.
It works now.

Please merge #38 as soon as possible 😄
Thanks for the hint.

from sublimelinter-flake8.

spookey avatar spookey commented on August 20, 2024

Just a little follow-up to #41

I just installed the latest version from PackageControl (and removed my patched version first) - it works again.
Now I'm a happy user again 😸

Thank you all!

from sublimelinter-flake8.

nfvs avatar nfvs commented on August 20, 2024

Not to resurrect an old thread, but #41 is the wrong fix for this.

SublimeLinter tries to use your system's python version, which in your case seems to be 2. If you want to use flake8 with a version that's not your system default, you need to either set the version to 3 in the global settings, or do that that in per-project basis with a .sublimelinterrc file, like this very project does:

https://github.com/SublimeLinter/SublimeLinter-flake8/blob/master/.sublimelinterrc#L2

PR #41 will lock flake8 to ST's internal python version, which is 3, for everyone, and will ignore the version defined in the settings.

This means you can no longer choose a different version, and even worse, you cannot define a virtual environment binary (virtualenv which can contain libraries that your system does not, but are required to avoid "module not found" errors).

from sublimelinter-flake8.

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.