libim7 can't find ReadIM7

Asked by SM

Following the instructions in the Readme I can achieve the import:
import libim7
but recieve an error with the next step:
import libim7.ReadIM7
which gives the following error:
No Module named ReadIM7

I am a python rookie. Please help.

Question information

Language:
English Edit question
Status:
Solved
For:
libIM7 Edit question
Assignee:
No assignee Edit question
Solved by:
SM
Solved:
Last query:
Last reply:
Revision history for this message
Fabricio (silva) said :
#1

First note that the package would need some reorganisation.
Does the following work, or raise an exception ?
>>> import libim7.libim7 as im7

If OK, you should read your file using:
>>> buffer, attributelist = im7.readim7(filename)

buffer is a Python class instance with data and metadata, while attributelist is an object acting like a Python dictionnary and that contained further metadata concerning the exposure, etc...

Revision history for this message
SM (sameares) said :
#2

This solved the problem.
Upon running im7.readim7 the file 'im7.so' was not found.
I had to manually move this and now it works.
Thankyou very much.