plasm-language / pyplasm

http://www.dia.uniroma3.it/~paoluzzi/plasm502/
Other
56 stars 25 forks source link

Is pyplasm compatible with Python 3? #33

Open davidwbulger opened 3 years ago

davidwbulger commented 3 years ago

Hi, this is probably all explained somewhere, but I haven't found it. I've downloaded pyplasm and have not yet succeeded in running anything. I'm trying to make sense of the error messages, and my current leading theory is that, somehow, pyplasm can only be used with Python 2. Is that so, or have I misunderstood?

scrgiorgio commented 3 years ago

Hi david, actually the opposite. In the ReadMe "Supported python versions: >=3.6 (python 2.x no longer supported)." Can you share the error messages? Possibly from the very beginning (like from the installation). And what python are you using? CPython, conda or...?

davidwbulger commented 3 years ago

Firstly, thanks for getting back to me, and with this extra encouragement, I've got it working. I will be exploring it today. If you're interested, my immediate use-case is this: I'm using python to create shapes to be exported in stl format, to then be converted to "gcode" and cut out of wood on my CNC machine. I was attempting this in Blender, but I'm finding that the boolean operations are not quite reliable enough.

Anyhow, you're probably still interested to hear what obstacle I was facing yesterday in getting this working, so I'll try to describe it. I'm running Python 3.8, and I don't think it's Cython or anaconda; I simply downloaded it directly from https://www.python.org/downloads/. At the PyPlasm site, there was a windows installer, so I ran that rather than trying pip. It created a new folder, C:\Python26\Lib\site-packages, and placed the PyPlasm folder in there. The README.txt file within it refers only to MacOSX (oddly, since I installed it via a Windows executable) and says "Make sure the version 2.6 is the version you are currently using." I had some other difficulties but they probably all had the same cause.

Anyhow, now I have run "pip install PyPlasm --upgrade" and "pip install PyOpenGL", and it seems to be working. Thanks again for your quick response, and I'll let you know if I have any more trouble---or if I end up creating anything beautiful!