Libinsane in windows

Hello Every one my name is Jorge

Frist of all my english is bad, i try to do my best to explain my self, and i am very greatfull to any one to try to understand.

Look i am having a bad time to made work libinsane in windows. Mya actual status is i can compile and install the library without errors. But when i try to execute the i have this error.

with one try I could make it work in linux.

Traceback (most recent call last):
File “./”, line 12, in
gi.require_version(‘Libinsane’, ‘1.0’)
File “C:/msys32/mingw32/lib/python3.8/site-packages/gi/”, line 129, in require_version
raise ValueError(‘Namespace %s not available’ % namespace)
ValueError: Namespace Libinsane not available

I never do something seriously with python in windows.
IF some one can giveme a hint i am ver greatful

My best regards


Based on my experience, the most common problem is that PREFIX= is not set when calling make the first time.

Try the following:

make clean
# replace '/mingw32' by '/mingw64' below if you want to build 64 bits binaries
make PREFIX=/mingw32  # even if you're not installing Libinsane yet, PREFIX= must already be set here
make install PREFIX=/mingw32

If I’m right, should work then.

It’s really not clear in the documentation. I’m going to edit it.

Thanks very much

I’m going to try it now