Problem with the "Hello world" tutorial

Hello,

I’m trying to learn Panda3D by reading the documentation provided on this site. All the “Hello world” tutorials run fine, until I came accros an issue where I got an error message from Python. It is the tutorial “Using Intervals to move the Panda.”

http://www.panda3d.org/manual/index.php/Using_Intervals_to_move_the_Panda

When I copy/paste the script from the page into PyPE and save it and then try to run it, I get the following error message:

Traceback (most recent last call):
File “grass4.py”, line 7 in
from panda3d.core import Point3
ImportError: No module named panda3d.core

I’m running it in Windows Vista 64 bit, and Panda3D-1.6.2.
Apparently the module isn’t recognised, but I’m still in the process of learning Python code too so I apologise for not being more helpful. :blush:

Welcome to the forums!

The panda3d.* import convention was new in Panda 1.7. Please either upgrade to the latest version (as of writing, 1.7.1) or use the old syntax, which is:

from pandac.PandaModules import Point3

The old convention is still valid in 1.7.

Thanks, :smiley:

Ow, I thought I had the latest version. :blush:

Case closed. :laughing: