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

importing secrets library stop output on console #358

Open arturotramontini opened 2 years ago

arturotramontini commented 2 years ago

try removing comment to import secrets

import secrets

import math

println(math.sin(1))
println("TEST")

villares commented 2 years ago

Hi @arturotramontini !

I'm afraid you stumbled upon two different issues 😭

Processing 4 beta is not working well yet with Python mode, it often fails horribly and silently, like when you try import secrets. 😕

The other problem is, there is no secrets module in Jython 2.7 and Processing Python mode is based on Jython 2.7, so even if you try it on Processing 3.5.4 it won't work 😢 (but at least it will give you an error message).