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

Python mode won't run anything at all (Win 7 x64) #158

Closed Stepland closed 6 years ago

Stepland commented 8 years ago

I tried running scripts in Python mode in both 3.0.1 and 3.0.2 and everytime, nothing actually runs and an error line (maybe having something to do with encoding) pops up :

console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0.

I might just miss something completely obvious

halp plz

tildebyte commented 8 years ago

Possibly a Jython issue, although reading through that report really makes me think that there's a problem with your Java install. IIWY, I'd try un-/re-installing the JDK. derp

jdf commented 8 years ago

Processing comes with its own JRE.

Does the Python Mode editor appear? When you try to run a Python Mode sketch, where does the error appear?

What country do you live in, or rather, to what localization is your computer set? For example, mine is US English. I'm asking so that I might recreate the error on my own Windows machine.

jdf commented 8 years ago

Also, does this happen for even an empty sketch?

jdf commented 8 years ago

I've pushed a new build, 3013, that attempts to address this bug. You may have to uninstall and reinstall Python Mode to get the update, since the mode manager is typically days behind. Try it out and let me know how it goes for you.

Stepland commented 8 years ago

Wow thanks for the fast response you two !

What I did so far is I removed / reinstalled both java (because why not) and processing, then removed python mode and reinstalled it, (the mode manager actually shows "build 3013" so I believe there is no problem on this side).

Then I tried running an empty sketch and the error message still appeared here : ss 2016-04-16 at 11 29 13 (yes I have some fancy windows skin don't judge me)

To make things a bit clearer I live in France and hence have my localisation set on French (France) (You can also tell by the fact that half of the menu items on the screenshot are translated)

Thanks for helping :)

adasmx97 commented 8 years ago

I have the same problem, i'm from Mexico. (I have processing 3.1.1) Java mode run perfectly but in Python mode any code run, i tried to load some examples and they don't run, just appear a message :

console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0.

i updated Java, i have installed again processing (like 3 times) and the same bug appear.

JoBilert commented 7 years ago

Problem still consists. I am running processing 3.2.1 (64-bit) on a Windows10 Machine.

jdf commented 7 years ago

I'm sorry about this frustrating bug. I hope to have time to look into it again soon.

ghost commented 7 years ago

Hi there, this bug has something to do with the User folder name on Windows (Windows 10 Pro for me). In my case the User folder name includes the character 'ñ'. To test it, I created a new User account with a simple name, and the Python Mode works correctly in that account. Cheers!

Message with 'ñ' character: console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0.

shivmahesh commented 6 years ago

I am running processing 302 with g code executed ,the following error message received. Error message unsupported statement G4 P150 ( wait 200ms). I am new bie in software ,pls help

xarthurx commented 6 years ago

Problems still exist.

image

Copy-paste those message out, it is: console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp65001.

jdf commented 6 years ago

Could you please share your Windows "Region & Language" settings?

xarthurx commented 6 years ago

Country: Switzerland Language: English (UK)

On Thu, 31 May 2018 at 01:55, Jonathan Feinberg notifications@github.com wrote:

Could you please share your Windows "Region & Language" settings?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jdf/Processing.py-Bugs/issues/158#issuecomment-393356241, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1TVj4zK-8ZFbNC9srhWA_PMJLR1p15ks5t3zGEgaJpZM4IItAj .

-- MA Zhao

"SAVE PAPER - PLEASE THINK BEFORE YOU PRINT!"

xarthurx commented 6 years ago

Any updates? @jdf

jdf commented 6 years ago

I believe this was fixed in version 3038.

xarthurx commented 6 years ago

@jdf No. image

jdf commented 6 years ago

Platform?

xarthurx commented 6 years ago

Windows 10.

On Tue, 31 Jul 2018 at 17:09, Jonathan Feinberg notifications@github.com wrote:

Platform?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jdf/Processing.py-Bugs/issues/158#issuecomment-409255221, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1TVjomeXTXkPhGoWltTLooyyZE_mFFks5uMHNBgaJpZM4IItAj .

-- MA Zhao

"SAVE PAPER - PLEASE THINK BEFORE YOU PRINT!"

xarthurx commented 6 years ago

I've already started a new issue actually. Stack Overflow says a VM argument should be passed to the JVM, which I don't know where since Processing is using its own JRE.

On Tue, 31 Jul 2018 at 17:22, X xliotx@gmail.com wrote:

Windows 10.

On Tue, 31 Jul 2018 at 17:09, Jonathan Feinberg notifications@github.com wrote:

Platform?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jdf/Processing.py-Bugs/issues/158#issuecomment-409255221, or mute the thread https://github.com/notifications/unsubscribe-auth/AB1TVjomeXTXkPhGoWltTLooyyZE_mFFks5uMHNBgaJpZM4IItAj .

-- MA Zhao

"SAVE PAPER - PLEASE THINK BEFORE YOU PRINT!"

-- MA Zhao

"SAVE PAPER - PLEASE THINK BEFORE YOU PRINT!"

jdf commented 6 years ago

Yes, on Windows I am indeed passing that -D setting when starting the sketch runner.

yonghuming commented 5 years ago

any solutions?

jdf commented 5 years ago

None that I can find.

sargenteugene commented 5 years ago

How does one pass the -Dpython.console.encoding=UTF-8 setting in Processing?

I am using processing 3.4 in windows10 and getting the console: Failed to install '': java.nio.charset.UnsupportedCharsetException: cp0. error everyone else seems to be getting.

jax7er commented 5 years ago

I am experiencing the same issue. This happens with any sketch, including empty sketches and example sketches.

I can run Java Mode sketches no problem.

I am running Windows 7 Enterprise 64-bit SP1, Processing 3.4, Java version 1.8.0_181-b13 in "C:\processing-3.4\java\bin", Python Mode 3052 (installed using the 'Add Mode...' tool within Processing).

jdf commented 5 years ago

Could you please share your Windows "Region & Language" settings?

jax7er commented 5 years ago

Country or region: United Kingdom Windows display language: English (United Kingdom) Preferred language: English (United Kingdom)

lafondfe commented 4 years ago

I'm late to the party but I had the same issue with no solution in sight. I verified and I had more than one version of Processing installed. I also didn't have the latest one installed.

I deleted all the older Processing versions and reinstalled, then added Python mode. It works, now. Good luck.