tabreturn / thonny-py5mode

A py5 plug-in for Thonny
Do What The F*ck You Want To Public License
23 stars 8 forks source link

Add a note about Windows #1

Closed villares closed 2 years ago

villares commented 3 years ago

Cheers Tristan!

Maybe you might want to consider adding a note that at this point this installation process is not working on Windows :(

The reason is noise cannot be installed with pip on Windows.

I'm trying to do it with conda/miniconda and I'll report, but it adds a nasty layer of complexity.

Tentative instructions:

tabreturn commented 3 years ago

Thanks for the heads-up, @villares

Weirdly enough, this isn't a problem on my Windows machine -- Windows 10, running Thonny 3.3.7-alt (Python 3.9.5). Installing the noise package from the Thonny package manager builds the wheel, no problem --

Collecting noise
  Downloading noise-1.2.2.zip (132 kB)
Building wheels for collected packages: noise
  Building wheel for noise (setup.py): started
  Building wheel for noise (setup.py): finished with status 'done'
  Created wheel for noise: filename=noise-1.2.2-cp39-cp39-win_amd64.whl size=32408
  sha256=085edc711ab025329bfbfefe2f1d9a4088e9047595e004f1985bf70aacf984b2
  Stored in directory: C:\Users\...\Temp\pip-ephem-wheel-cache-rdnc50py\...
Successfully built noise
Installing collected packages: noise
Successfully installed noise-1.2.2

Does your Thonny include the wheel package? (listed under Tools > Manage Packages)

villares commented 3 years ago

Sorry for being so clueless about it all...

Look at my predicament... I do already have the wheel and noise, and py5 on my miniconda env ... but I can't install the thonny-py5mode package, because the plug-in install interface tries to install everything again (on a different site-packges directory) and fails!

image

image

image

tabreturn commented 3 years ago

If I understand correctly, this is a miniconda-specific issue? I'm using the default Python interpreter that ships with Thonny.

Perhaps you can access the pip bundled with Thonny (via the terminal) to install the plug-in without the py5 dependencies?

pip install thonny-py5mode install-jdk --no-dependencies

If this works, Thonny (which I assume runs using the default Python interpreter) can load the plug-in, then when you run the sketch, it's using miniconda's py5 packages.

villares commented 3 years ago

I wouldn't say it is a miniconda-specific issue, I would say it is an issue when trying to point Thonny to an alternate interpreter, perhaps. I installed the miniconda Python because the bundled Python couldn't install the plug-in. :(

But I can't remember which Thonny-Python-bundle it was. Windows access is a bit hard for me to test right now. I should restart from scratch I suppose. Thanks for the patience.

tabreturn commented 2 years ago

Closing this issue.