Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: 'sane/sane.h' file not found #10

Closed
hugovk opened this issue May 31, 2015 · 4 comments
Closed

fatal error: 'sane/sane.h' file not found #10

hugovk opened this issue May 31, 2015 · 4 comments

Comments

@hugovk
Copy link
Member

hugovk commented May 31, 2015

OS X:

$ python setup.py build
running build
running build_py
running build_ext
building '_sane' extension
clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _sane.c -o build/temp.macosx-10.9-x86_64-2.7/_sane.o
_sane.c:29:10: fatal error: 'sane/sane.h' file not found
#include <sane/sane.h>
         ^
1 error generated.
error: command 'clang' failed with exit status 1
$
$ python setup.py install
running install
running build
running build_py
running build_ext
building '_sane' extension
clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include -I/usr/local/opt/sqlite/include -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _sane.c -o build/temp.macosx-10.9-x86_64-2.7/_sane.o
_sane.c:29:10: fatal error: 'sane/sane.h' file not found
#include <sane/sane.h>
         ^
1 error generated.
error: command 'clang' failed with exit status 1
$ 

Similar error on Linux. Where's sane.h?

@manisandro
Copy link
Member

sane.h is part of the sane development files, on Fedora, that would be in the package sane-backends-devel, on Debian based distros it is in libsane-dev. Don't know how to best install it on OS X. It is definitely not part of python-sane though.

@hugovk
Copy link
Member Author

hugovk commented May 31, 2015

Thanks, I got it working on Ubuntu with libsane-dev.

It may be worth mentioning these dependencies on the README.

@hamburgercheeseburger
Copy link

i have the same problem but on windows

@Haroonhsa007
Copy link

This

i have the same problem but on windows

but how to resolve the issue??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants