Giter Site home page Giter Site logo

Comments (11)

SebastianGergen avatar SebastianGergen commented on July 4, 2024 7

or downgrade back to sublime text 3, and it works again:
in ubuntu check available versions and install a version 3x (in my case 3211):

apt-cache policy sublime-text 
sudo apt-get install sublime-text=3211

from sublime-text-virtualenv.

mcoliver avatar mcoliver commented on July 4, 2024 6

By default on macOS the package is installed to:

~/Library/Application\ Support/Sublime\ Text\ 3/Installed\
Packages/Virtualenv.sublime-package

But you can also get to where your packages are installed (on any OS) via
ST by going to:

Sublime Text menu --> Preferences --> Browse Packages

Since the package is a zip file (even though it does not have a zip extension) you can just append the package with the new file.

Always beware of copy/pasting code in your terminal but this is what worked
for me:

cd /var/tmp
echo "3.8" > .python-version
zip -u ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\
Packages/Virtualenv.sublime-package .python-version
rm .python-version

You can verify its in the package by running the below command to list the package contents

unzip -l ~/Library/Application\ Support/Sublime\ Text\ 3/Installed\ Packages/Virtualenv.sublime-package

from sublime-text-virtualenv.

trefmanic avatar trefmanic commented on July 4, 2024

or downgrade back to sublime text 3, and it works again:
in ubuntu check available versions and install a version 3x (in my case 3211):

apt-cache policy sublime-text 
sudo apt-get install sublime-text=3211

When I do that, after launching sublime-text i'm getting entirely black window, no menu, or anything.

To get this package working in ST4 I unzipped the package, created a file in the root of this package called .python-version with the contents of 3.8, and zipped it up

That, however, worked. Thank you.

from sublime-text-virtualenv.

polilies avatar polilies commented on July 4, 2024

import Default as sublime_default

Tried with ST4 and got the following in the console

Packages/Virtualenv.sublime-package/commands.py", line 126, in <module>
AttributeError: 'module' object has no attribute 'exec'

To get this package working in ST4 I unzipped the package, created a file in the root of this package called .python-version with the contents of 3.8, and zipped it up. Now working and backwards compatible with ST2 and ST3. Will submit a PR.

Can you be more specific espacially for the paths' of the files.

from sublime-text-virtualenv.

polilies avatar polilies commented on July 4, 2024

Thanks mcoliver. It might be little bit different things goes in windows iOS. So I uninstalled build 4xxx and installed 3211. It worked for me. Do not forget to rename /Program Files/Sublime text 3/ to something else like Sublime text 3_old after uninstalling process. Niceday

from sublime-text-virtualenv.

SebastianGergen avatar SebastianGergen commented on July 4, 2024

In ubuntu the folder is "~/.config/sublime-text-3/Installed Packages/" and the solution from @mcoliver works well! Better than keeping the old version!

from sublime-text-virtualenv.

shiplu avatar shiplu commented on July 4, 2024

For those who wants to know which work around actually worked, please try @mcoliver's solution.

from sublime-text-virtualenv.

keeb-dev avatar keeb-dev commented on July 4, 2024

Doesn't work for me at all, even python3.10

from sublime-text-virtualenv.

Aleksusss avatar Aleksusss commented on July 4, 2024

Doesn't work for me at all, even python3.10

I tried to write "3.9" in .python-version but it didn't work but "3.8" worked like a charm. Just try it.

from sublime-text-virtualenv.

arkziael avatar arkziael commented on July 4, 2024

Doesn't work for me at all, even python3.10

I tried to write "3.9" in .python-version but it didn't work but "3.8" worked like a charm. Just try it.

Thats because only 3.8 is accepted - https://www.sublimetext.com/docs/api_environments.html#selecting-the-python-version

from sublime-text-virtualenv.

CatzHoekk avatar CatzHoekk commented on July 4, 2024

Thx everyone,

a .python-version with 3.8 as only content directly in the root of the .sublime-package archive works like a charm.

@mcoliver code to produce that uses quotation marks that would, at least on windows, be piped into the file which will be invalid. You want a plain 3.8. Unnecessary /n/r are fine tho

echo 3.8 > .python-version

from sublime-text-virtualenv.

Related Issues (17)

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.