I tried, unsuccessfully, to get Panda3D to work with Python 3. The issue was trying to get all of the third-party libraries to compile. I am assuming that I did something wrong. I did use the 1.10 version of Panda with Python 3.4.
I just downloaded the older version of Python 2.x and installed Panda3D 1.9. No immediate problems. Asteroids and Fireflies works great.
Any thoughts on Python 3? Or should I just stick to the older Python for now?
You can find pre-compiled development snapshots of 1.10 for Python 3.6 on this page. Panda 1.9 has preliminary support for Python 3, but 1.10 improves the support, and I would recommend using 1.10 for any Python 3 projects.
Did I grab the wrong version? I can swap out the Python version if need be. When I tried compiling Panda, I got bogged down with the third party apps. Is it worth getting that pipeline working to have the latest Panda? I’m just starting out with the engine, so I don’t need all the bells and whistles. I have a lot to learn as it is! I’m not sure if I mentioned this, but I’m running a Mac with OS 10.12.2.
As a side note, should I code my Python code differently to support Cython? I was planning on using CTypes within Python. Good idea or not worth the effort?
Yes, you grabbed a build of Panda that was compiled for Python 2.6. It will not work with Python 3.6. You would need to grab a build of Panda that is specifically marked “py3.6” (there are some listed).
It may be easier to install Panda3D with “pip”, using the following command: