Processing.py-Bugs icon indicating copy to clipboard operation
Processing.py-Bugs copied to clipboard

Bug in v.4 and 3.5.4

Open tellts opened this issue 4 years ago • 11 comments

https://github.com/processing/processing4/issues/423

tellts avatar Feb 26 '22 12:02 tellts

Perhaps try to edit the pep8.py file (C:\Users\admin\...\pep8.py) and amend the problematic expression --

EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')

changes to:

EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[\[\(\{\]\s|\s\[\]\}\)\,\;\:]')

Restart Processing after you make any changes.

If that doesn't work, you could see if clearing out the expression helps (at the expense of formatter not working properly) --

EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'')

I'm interested to know, does changing to English help?

tabreturn avatar Feb 27 '22 01:02 tabreturn

I can't check your version because I can't run the program. The installer also does not start. In file C:\Users\admin\Documents\Processing\modes\PythonMode\formatter\pep8.py I have line №100: EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]')

tellts avatar Feb 28 '22 09:02 tellts

EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'') I've tried this, but the program doesn't start when I double-click the processing-java.exe file.

tellts avatar Feb 28 '22 10:02 tellts

Hi, I use the Mac OS Version 12.2.1 and have the same problem. I use Processing for my university course which starts this week. If that bug is not solved I have to switch the tool. Any ideas what the problem could be? I don't get an exception but I see that I cannot install Python for Processing 4. Any help would be very much appreciated.

Rauschii avatar Mar 02 '22 09:03 Rauschii

Update: When I start the Processing App Version 4 (Version 13th of February) I get this error message.

"Processing" needs to be updated

This app will not work with future versions of macOS and needs to be updated to improve compatibility. Contact the developer for more information.

Rauschii avatar Mar 02 '22 09:03 Rauschii

@Rauschii -- if you can somehow skip the message and it runs on macOS, I'd say just ignore the message. Version 4.0b5 should run Python Mode okay.

I've opted to run Processing 3.5.4 until Processing 4 is beyond beta (as "beta" implies, it's still a testing release).

tabreturn avatar Mar 02 '22 21:03 tabreturn

Version 3.5.4 in Windows 10 doesn't work for me either. Maybe I'll try to do it in Linux.

tellts avatar Mar 03 '22 04:03 tellts

@Rauschii -- if you can somehow skip the message and it runs on macOS, I'd say just ignore the message. Version 4.0b5 should run Python Mode okay.

I've opted to run Processing 3.5.4 until Processing 4 is beyond beta (as "beta" implies, it's still a testing release).

Thanks @tabreturn for replying. I was caught up at the start of the university term - so I am very sorry for my late reply. Not sure, If my reply is the best here.

I also tried 3.5.4. The code doesn't run there. I get an information message saying "Processing" needs to be updated for 3.5.4. Although this is the latest version from the processing website. Any idea what could be wrong? A search on the Web for the message didn't bring any solution.

Thank you in advance for any suggestions.

Rauschii avatar Mar 15 '22 07:03 Rauschii

@Rauschii -- it sounds like you've encountered this issue maybe?

tabreturn avatar Mar 15 '22 07:03 tabreturn

@tabreturn Thank you!

Rauschii avatar Mar 15 '22 07:03 Rauschii

I'm trying to use Python mode (3063) on Processing 3.5.4 but can't work. Can't give me an error message. I was check C:\Users\Admin\AppData\Roaming\Processing\console folder to last err file I saw EXTRANEOUS_WHITESPACE_REGEX = re.compile(r'[[({] | []}),;:]') message and I change file as described but not work again. One more time look err file I saw created registry at port 8220 mesaage. Any idea to how can I fix this situation.

My OS Windows 11 Pro 21H2 Python interperter 3.9.7 (conda base) Java Version 8 Update 321

palastrazas avatar Apr 16 '22 14:04 palastrazas