Windows 7 packages_2.6/ogre doesn't exist

Kushulain

07-03-2011 19:25:59

Hello,
When i start the command "C:\Python26\python.exe H:\PyOgre171\setup.py install", the command window tell me :

running install
running build
running build_py
error: package directory 'packages_2.6\ogre' does not exist

(while in fact it does exists in my pyOgre directory "H:\PyOgre171")
I have Python 2.6 and PythonOgre 1.7.1.
I tried with different version, but i still have the same problem.
Everything is fine in my command, isn't it ?

andy

07-03-2011 23:27:12

Current version of Python Ogre has been built for Python 2.7 only.

If you need to stay with Python 2.6 then you can use an older version of Python Ogre

Regards
Andy

Kushulain

08-03-2011 19:26:07

Thank you Andy,

I downloaded the last version of python Ogre (1.7.2), tried to install it with python 2.7. I have the same error.
Python is still ignoring the "packages_2.7" directory.
I think it's a python's problem, i tried to give it the administrator rights, but no changes.

Then i changed setup.py, i replaced the line :
"package_dir": {'': 'packages_'+ PythonVersionString },
by full path name :
"package_dir": {'': 'C:\OgrePython172\packages_'+ PythonVersionString },

Python Ogre got installed this way, but when i start demos, it's not looking for PythonOgreConfig and SampleFramework in the right place (the upper directory).
Python seems to have problem with files path.

I didn't have any problem the first time i installed python on windows xp. : /

dermont

09-03-2011 11:21:29

Instead of changing setup.py have you tried running python setup.py install from your H:\PyOgre171 directory.

Kushulain

09-03-2011 14:23:31

Oh thank you, you'are right Dermont.

I removed my changes to setup.py, i tried to reinstall Python Ogre locating my cmd.exe to H:\PyOgre171. Everything's fine.
I did same with demos, it's running correctly.

An error message tell that i miss one dll : d3dx9_43.dll, but it finally worked after i installed tools/dxwebsetup.exe.

Kushulain

09-03-2011 14:25:27

Here is a little experiment i made this year using python-Ogre : http://www.youtube.com/watch?v=spBAsXDfM-Y

dermont

13-03-2011 07:00:36

Here is a little experiment i made this year using python-Ogre : http://www.youtube.com/watch?v=spBAsXDfM-Y

Cool demo.

IchUndNichtDu

11-06-2012 21:53:20

I navigate to the folder where i saved python Ogre and type python setup.py install. Then comes that error (packages_2.6/ogre doesn't exist) but i have python 2.7(.3) and don't changed the setup.py file. what can i do?

dermont

13-06-2012 06:32:12

I navigate to the folder where i saved python Ogre and type python setup.py install. Then comes that error (packages_2.6/ogre doesn't exist) but i have python 2.7(.3) and don't changed the setup.py file. what can i do?

Wht version of python-ogre are you using? Are you using a version built for python 2.7.x?
http://sourceforge.net/projects/python- ... est/1.7.2/

Universum

14-06-2012 08:42:10

This is now a bit offtopic but here is no longer the sole moderator online? I've looked at their profiles, the last time the one in here seen has had on March ... Recently, I was wondering why my theme is not released ... If it allows the thread creator, and his question is resolved it would be really nice if I could post my topic here: D

Sorry for my bad English ....

For your problem: At the beginning I had the same problem but it was solved after either ic h the packages folder renamed as have so Ogre want it or have installed another version of Ogre ...

IchUndNichtDu

15-06-2012 13:05:50

I navigate to the folder where i saved python Ogre and type python setup.py install. Then comes that error (packages_2.6/ogre doesn't exist) but i have python 2.7(.3) and don't changed the setup.py file. what can i do?

Wht version of python-ogre are you using? Are you using a version built for python 2.7.x?
http://sourceforge.net/projects/python- ... est/1.7.2/


oh i seed i have an version of ogre for python 2.7.7 and i have python 2.7.3 i think i must just download the newest version of python, or not?
dermont: i have already tryied to rename the not found folder but it,s make another error.
sorry for my bad english too

dermont

15-06-2012 19:13:59

I navigate to the folder where i saved python Ogre and type python setup.py install. Then comes that error (packages_2.6/ogre doesn't exist) but i have python 2.7(.3) and don't changed the setup.py file. what can i do?

Wht version of python-ogre are you using? Are you using a version built for python 2.7.x?
http://sourceforge.net/projects/python- ... est/1.7.2/


oh i seed i have an version of ogre for python 2.7.7 and i have python 2.7.3 i think i must just download the newest version of python, or not?
dermont: i have already tryied to rename the not found folder but it,s make another error.
sorry for my bad english too


No I don't think your python version is the issue, I have 2.7.0? You shouldn't have to make any changes to any folders or setup.py that I can recall. Do you have more than one version of python installed? Have you checked the correct version of python is being picked up from the command line:
>>python --version

IchUndNichtDu

17-06-2012 13:06:42

i write in my command line python -- version and i see i have 2.6.5 but i have only installed 3.2 but then deinstalled it and installed 2.7.3 why my command line have 2.6.5? and what can i do?

dermont

17-06-2012 15:07:18

i write in my command line python -- version and i see i have 2.6.5 but i have only installed 3.2 but then deinstalled it and installed 2.7.3 why my command line have 2.6.5? and what can i do?

Maybe 2.6.5 is the first version of python you installed. You can set the python path from the command line, try showing what is set:

echo %PYTHONPATH%
echo %PATH%

You can prepend your path to python2.7 via command line or environment variables so that 2.7.x will be found first.
set PYTHONPATH=C:\My_python_lib;%PYTHONPATH%
set PATH=C:\My_python_lib;%PATH%

http://docs.python.org/using/windows.html

See also:
viewtopic.php?f=3&t=14093

IchUndNichtDu

18-06-2012 13:54:10

okay it works i have changed my environment variables (now C:\python27 is on the start of the line) and now the installation works but when i want to start an Demo comes this error:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import ogre.renderer.OGRE
File "C:\Python27\lib\site-packages\ogre\renderer\OGRE\__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: DLL load failed: %1 ist keine zulässige Win32-Anwendung. (ImportError: DLL load failed: %1 is no permitted win 32 application)

dermont

18-06-2012 16:57:27

okay it works i have changed my environment variables (now C:\python27 is on the start of the line) and now the installation works but when i want to start an Demo comes the error "ImportError:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import ogre.renderer.OGRE
File "C:\Python27\lib\site-packages\ogre\renderer\OGRE\__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: DLL load failed: %1 ist keine zulässige Win32-Anwendung. (ImportError: DLL load failed: %1 is no permitted win 32 application)


This usually means that either (a) the Microsoft runtime libraries are not installed or
(b) DirextX is not installed.

To skip (b) you can edit python-ogre2.7\demos\plugins.cfg.nt to disable the DirectX plugin:
#Plugin=RenderSystem_Direct3D9

To double check what is missing download dependency walker http://www.dependencywalker.com/ and run:

a) Open G:\python-ogre2.7\packages_2.7\ogre\renderer\OGRE\OgraMain.dll and check for:
MSVCP90.DLL
MSVCR90.DLL

b) open G:\python-ogre2.7\plugins\RenderSystem_Direct3D9.dll and check for DirectX version
D3DX9_43.DLL

There are tools for downloading (a - vcredist_x86) and (b - dxwebsetup) in G:\python-ogre2.7\tools. Not too sure these are the most up-to-date.

IchUndNichtDu

20-06-2012 13:39:11

okay it works i have changed my environment variables (now C:\python27 is on the start of the line) and now the installation works but when i want to start an Demo comes the error "ImportError:

Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import ogre.renderer.OGRE
File "C:\Python27\lib\site-packages\ogre\renderer\OGRE\__init__.py", line 10, in <module>
from _ogre_ import *
ImportError: DLL load failed: %1 ist keine zulässige Win32-Anwendung. (ImportError: DLL load failed: %1 is no permitted win 32 application)


This usually means that either (a) the Microsoft runtime libraries are not installed or
(b) DirextX is not installed.

To skip (b) you can edit python-ogre2.7\demos\plugins.cfg.nt to disable the DirectX plugin:
#Plugin=RenderSystem_Direct3D9

To double check what is missing download dependency walker http://www.dependencywalker.com/ and run:

a) Open G:\python-ogre2.7\packages_2.7\ogre\renderer\OGRE\OgraMain.dll and check for:
MSVCP90.DLL
MSVCR90.DLL

b) open G:\python-ogre2.7\plugins\RenderSystem_Direct3D9.dll and check for DirectX version
D3DX9_43.DLL

There are tools for downloading (a - vcredist_x86) and (b - dxwebsetup) in G:\python-ogre2.7\tools. Not too sure these are the most up-to-date.

i have checked the DLLs with depencywalker, when i want to open the D3DX9_43.DLL comes an eror. I think it means that the OGREMAIN.DLL, the GPSVC.DLL and the IESHIMS.DLL was not found.

dermont

20-06-2012 14:42:45

Sorry I don't know what GPSVC.DLL is.The missing OgreMain.dll shouldn't be a problem it should be loaded when the ogre module is loaded.

You are not running Windows 7 on a 64bit machine by any chance? The python-ogre sdk is 32bit only.

viewtopic.php?f=3&t=12077

Otherwise do a google search for such errors, such as:
http://social.msdn.microsoft.com/Forums ... 26ffc4b235

If you are on a 32 bit machine, try importing the modules from the command-line and see what errors you encounter:
>python
>>> import ogre.renderer.OGRE as ogre
>>> import ogre.io.OIS as OIS

then:
> cd C:\Python27\Lib\site-packages\ogre\renderer\OGRE
> python
>>> import _ogre_ as ogre

IchUndNichtDu

21-06-2012 12:02:11

Oh i have oython 64bit. I think i must install python 32bit. thanks for all the help.