jdf / Processing.py-Bugs

A home for all bugs and feature requests about Python Mode for the Processing Development Environment.
41 stars 8 forks source link

pythonmode doesn't install processing 3.3.6 #215

Closed rofoto closed 6 years ago

rofoto commented 6 years ago

Hi,

I've recently decided to get back to processing and after updating to the latest version (3.3.6) pythonmode does not install, and constantly reports timeouts even though the package downloads. Ive tested on macosx 10.12.6, ubuntu 17.10 both the prebuilt package and manually built git repos on fresh installs of both OS's, on and off VPN ( to test if it actually is a network issue , i live in china ).

Any help would be great. Thanks

rofoto commented 6 years ago

Just tested on win10x64 and it installs on that platform.

jdf commented 6 years ago

@benfry FYI

As a workaround, you can always just download http://py.processing.org/3/PythonMode.zip and unzip it in the "modes" directory of your Processing data directory.

benfry commented 6 years ago

@jdf What would you like me to do?

jdf commented 6 years ago

Oh, truly just FYI, in case any other mode installer bugs are happening that I don't know about.

rofoto commented 6 years ago

Downloading and manually installing works, Thank you very much.

benfry commented 6 years ago

Is this broken for everyone?

jdf commented 6 years ago

@benfry I don't think it's broken for everyone, on all platforms. But between this report, and #167, we at least have evidence that it's flakey. Maybe I'll spend an evening looking at the contributions manager download code, and at least add some detailed logging to it so that future troubles can be better understood.

benfry commented 6 years ago

Hm, I don't think it's quite that broken… I was just able to install it just fine.

My best guess is that we're hitting a problem when it's the current Mode, and one tries to update it, and files are still in use by the JVM. There's code to handle that (since this is an obvious/common case), but I suspect it's especially broken on Windows, which is especially clingy with file handles.

The question for me would be:

jdf commented 6 years ago

@rofoto Was this an initial install of Python Mode, or were you updating an existing installation?

jdf commented 6 years ago

@benfry Is there an API for Mode implementors that means "you're about to be updated; please close any open files and helper processes"? I ask because Python Mode does run multiple processes, which would need to be let go of.

benfry commented 6 years ago

@jdf Heh, nope. But that would certainly explain what's going on…

rofoto commented 6 years ago

@jdf every install attempt was done on both fresh and previous install/upgrades

rofoto commented 6 years ago

@jdf also worth noting , I just tried to install the opencv library and have the same issue.

rofoto commented 6 years ago

This is what the library list looks like after library install reports failure. I tried twice so I suspect that the failure causes a new file to be made causing further errors

screen shot 2018-02-26 at 9 47 27 pm

jdf commented 6 years ago

@rofoto If this also happens when installing a library having nothing to do with Python Mode, then the bug is (most likely) in Processing. I'm closing this, and opening https://github.com/processing/processing/issues/5424.