Discussion:
[omniORB] Problems installing omniORBpy on Windows 7
John Nevius
2014-06-03 15:16:24 UTC
Permalink
Apologies in advance for what must be a frequently asked question.

Windows 7, Python 2.7, omniORBpy-4.2.0-win64-py27

I've place the entire distribution in c:\Python27\lib\site-packages\omniORB

I've created a PYTHONPATH environment variable:

PYTHONPATH
c:\python27\lib\site-packages\omniORB\lib\python;c:\python27\lib\site-packages\omniORB\lib\x86_win32

I've merged 'sample.reg' into the Windows Registry
import omniORB
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"c:\python27\lib\site-packages\omniORB\lib\python\omniORB\__init__.py",
line 46, in <module>
import _omnipy
ImportError: DLL load failed: %1 is not a valid Win32 application.
What am I missing?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20140603/2ee8cdd7/attachment.html>
Duncan Grisby
2014-06-04 14:55:32 UTC
Permalink
Post by John Nevius
Windows 7, Python 2.7, omniORBpy-4.2.0-win64-py27
[...]
Post by John Nevius
import _omnipy
ImportError: DLL load failed: %1 is not a valid Win32
application.
You probably have a 32 bit version of Python, but you are trying to use
the 64 bit compile of omniORBpy. You need to either use a 64 bit Python,
or get the 32 bit build of omniORBpy.

Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
John Nevius
2014-06-04 15:42:29 UTC
Permalink
Thanks very much for your reply. I apologize for not starting with a 32
bit version of omniORBpy

That library is now in place and the error is:

Python 2.7 (r27:82525, Jul 4 2010, 09:01:59) [MSC v.1500 32 bit (Intel)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
Post by Duncan Grisby
Post by John Nevius
import omniORB
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"c:\python27\lib\site-packages\omniORB\lib\python\omniORB\__init__.py",
line 46, in <module>
import _omnipy
ImportError: DLL load failed: The specified module could not be found.

My PYTHONPATH environment variable:

c:\python27\lib\site-packages\omniORB\lib\python\;c:\python27\lib\site-packages\omniORB\lib\x86_win32\

I tried explicitly adding a path to _omnipy.pyd in the PATH environment
variable with no success
Post by Duncan Grisby
Post by John Nevius
Windows 7, Python 2.7, omniORBpy-4.2.0-win64-py27
[...]
Post by John Nevius
import _omnipy
ImportError: DLL load failed: %1 is not a valid Win32 application.
You probably have a 32 bit version of Python, but you are trying to use
the 64 bit compile of omniORBpy. You need to either use a 64 bit Python,
or get the 32 bit build of omniORBpy.
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20140604/570b9e5a/attachment.html>
Duncan Grisby
2014-06-04 17:49:28 UTC
Permalink
[...]
Post by John Nevius
import _omnipy
ImportError: DLL load failed: The specified module could not be found.
[...]
Post by John Nevius
I tried explicitly adding a path to _omnipy.pyd in the PATH
environment variable with no success
You need to set PATH to the directory with the omniORB DLLs, which is
the bin\x86_win32 directory in the omniORBpy distribution. Unlike Unix
platforms that have a specific path for shared libraries, Windows gets
DLLs from the same PATH used for executables.

Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
John Nevius
2014-06-04 18:08:32 UTC
Permalink
Ding Ding Ding We have a winner !!!!!!


Many thanks
Post by Duncan Grisby
[...]
Post by John Nevius
import _omnipy
ImportError: DLL load failed: The specified module could not be found.
[...]
Post by John Nevius
I tried explicitly adding a path to _omnipy.pyd in the PATH
environment variable with no success
You need to set PATH to the directory with the omniORB DLLs, which is
the bin\x86_win32 directory in the omniORBpy distribution. Unlike Unix
platforms that have a specific path for shared libraries, Windows gets
DLLs from the same PATH used for executables.
Duncan.
--
-- Duncan Grisby --
-- duncan at grisby.org --
-- http://www.grisby.org --
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20140604/3ab0a91b/attachment.html>
Loading...