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

problem calling "setup.py build" #3

Closed
mk770 opened this issue Jul 11, 2014 · 3 comments
Closed

problem calling "setup.py build" #3

mk770 opened this issue Jul 11, 2014 · 3 comments
Labels

Comments

@mk770
Copy link

mk770 commented Jul 11, 2014

Hi,
I get the following error-message after calling "python setup.py build".

Traceback (most recent call last):
File "setup.py", line 31, in
gphoto2_version = str(subprocess.check_output(['gphoto2-config', '--version']))
File "/usr/lib/python2.7/subprocess.py", line 566, in check_output
process = Popen(stdout=PIPE, _popenargs, *_kwargs)
File "/usr/lib/python2.7/subprocess.py", line 709, in init
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1326, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

The problem is that i can actually find the file using "find"-command.
Thus the file does exist in the directory.

It's located in: /usr/lib/bin/gphoto2-config

Best regards
mk770

@jim-easterbrook
Copy link
Owner

That's an unusual place for an executable - on my machine it's /usr/bin/gphoto2-config. What variety of Linux are you using?
I'm not sure I can do anything in python-gphoto2 to get round this. You can add /usr/lib/bin to your path, after which it should work. Maybe I should add something about this to the README.

@mk770
Copy link
Author

mk770 commented Jul 12, 2014

My OS:
Linux Verison : Linux Mint 16 Petra
Kernel Release : 3.11.0-12-generic

Sry,
I cause this problem by a wrong Installation of libgphoto2.
All gphoto2-files like ( /usr/lib/bin/gphoto2-config ) belong to the commandline tool "gphoto2" not to "libgphoto2".
thx for your help.

@jim-easterbrook
Copy link
Owner

On the 3 linux distros I have (Linux Mint 16 Petra, openSUSE 13.1 (Bottle) and Raspbian GNU/Linux 7 (wheezy)) all include /usr/bin/gphoto2-config with the libgphoto2 development headers package. (Although their names for that package vary...)

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

No branches or pull requests

2 participants