We're Hiring!

Importing Ice 3.5.1 (Python 27, win7 64bit)

General and open developer discussion about using OMERO APIs from C++, Java, Python, Matlab and more! Please new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

If you are having trouble with custom code, please provide a link to a public repository, ideally GitHub.

Importing Ice 3.5.1 (Python 27, win7 64bit)

Postby ebbwdan » Tue Jul 22, 2014 8:30 am

Hi

I have downloaded the 64bit build of Ice 3.5.1 for Windows from http://downloads.openmicroscopy.org/ice/3.5.1-2/.

I have Python 2.7.8 installed, I have added 'icepath/python' to my pythonpath but still I can't successfully import the module. I get the following error:

ImportError: DLL load failed: The specified module could not be found.


I'd be very grateful for any thoughts/suggestions!

Cheers,

Dan.
ebbwdan
 
Posts: 61
Joined: Wed Aug 29, 2012 4:46 am

Re: Importing Ice 3.5.1 (Python 27, win7 64bit)

Postby manics » Tue Jul 22, 2014 8:54 am

Hi Dan

Did you reboot after setting your paths? If that didn't fix things, could you run the following in a command prompt and paste the output:

Code: Select all
>echo %PYTHONPATH%
>echo %PATH%
>python -c "import platform; print platform.platform(), platform.architecture()"
>python -c "import Ice"


Thanks, Simon
User avatar
manics
Team Member
 
Posts: 261
Joined: Mon Oct 08, 2012 11:01 am
Location: Dundee

Re: Importing Ice 3.5.1 (Python 27, win7 64bit)

Postby rleigh » Tue Jul 22, 2014 11:11 am

Dear Dan,

Could you please also confirm that you are using 64-bit python? 32-bit python won't be able to load the 64-bit Ice libraries which will give the error you are getting.


Thanks,
Roger
User avatar
rleigh
 
Posts: 217
Joined: Tue Mar 13, 2012 11:45 am

Re: Importing Ice 3.5.1 (Python 27, win7 64bit)

Postby ebbwdan » Wed Jul 23, 2014 2:06 am

Hi Roger and Simon,

Apologies, I forgot to add 'path to ice\bin' to my path. Works now.

Thanks for your responses!

Cheers,

Dan.
ebbwdan
 
Posts: 61
Joined: Wed Aug 29, 2012 4:46 am


Return to Developer Discussion

Who is online

Users browsing this forum: No registered users and 1 guest