Begginer need help with python example

Get answers to all your basic programming questions. No Ogre questions, please!
Post Reply
2ant
Gnoblar
Posts: 13
Joined: Wed Jan 25, 2023 2:20 pm

Begginer need help with python example

Post by 2ant »

Hi, i managed to install ogre-python on pycharm and i tested the numpy_sample.py example.

When i tried the "sample.py" example i got this error

Code: Select all

Traceback (most recent call last):
  File "I:\Python\Ogre\test.py", line 68, in <module>
    main()
  File "I:\Python\Ogre\test.py", line 59, in main
    ent = scn_mgr.createEntity("Meshes/Sinbad.mesh")
RuntimeError: Ogre::FileNotFoundException::FileNotFoundException: Cannot locate resource Meshes/Sinbad.mesh in resource group OgreAutodetect. in ResourceGroupManager::openResource at D:\a\ogre\ogre\OgreMain\src\OgreResourceGroupManager.cpp (line 560)

I don't know what to do, is there any python tutorials somewhere ?

paroj
OGRE Team Member
OGRE Team Member
Posts: 1995
Joined: Sun Mar 30, 2014 2:51 pm
x 1075
Contact:

Re: Begginer need help with python example

Post by paroj »

replace "Meshes/Sinbad.mesh" by "Prefab_Cube", then take a look at:
https://ogrecave.github.io/ogre/api/lat ... e-Location

2ant
Gnoblar
Posts: 13
Joined: Wed Jan 25, 2023 2:20 pm

Re: Begginer need help with python example

Post by 2ant »

I did that and i didn't have any more errors but i only saw the background color (grey).

Thank you for the link, in the mean time i have found that message : DefaultWorkQueue('Root')::WorkerFunc - thread 25528 starting.Parsing 'C:/Users/antoi/AppData/Local/Programs/Python/Python310/bin/resources.cfg'

By placing the path i needed in ressource.cfg, i was able to load sinbad.zip.

2ant
Gnoblar
Posts: 13
Joined: Wed Jan 25, 2023 2:20 pm

Re: Begginer need help with python example

Post by 2ant »

Does anyone know why auto-complete does'nt work for Ogre-Python in Pycharm ?

This is also happening with OpenCV.

Post Reply