Closed pepitooo closed 5 years ago
I suspect python-gphoto2 has been compiled for the wrong version of libgphoto2. What's the output of pkg-config --modversion libgphoto2
?
$ pkg-config --modversion libgphoto2 2.5.9
is it correct ?
Yes, that looks OK. It means the python-gphoto2 installation should not expect gp_camera_get_single_config
to be present.
I'll set up a virtual machine with ubuntu 16.04 and see if I can reproduce the problem.
I've not been able to reproduce the problem so far. Can you check that when the installer builds the extensions the command line includes -DGPHOTO2_VERSION=0x020509
.
Also I note you're installing in /home/user/app/lib/python3.5/site-packages/
. Can you make sure there aren't other python-gphoto2 remnants e.g. in /usr/lib
or similar.
I used a virtualenv to avoid installing lib on the main system, and to use python 3.5, it's on a ubuntu server I don't know how to check when the extension was build, can you give the full command line ?
$ mkdir test-gphoto2
$ cd test-gphoto2
$ virtualenv -p python3.5 .
Running virtualenv with interpreter /usr/bin/python3.5
Using base prefix '/usr'
New python executable in /tmp/test-gphoto2/bin/python3.5
Also creating executable in /tmp/test-gphoto2/bin/python
Installing setuptools, pkg_resources, pip, wheel...done.
$ source /tmp/test-gphoto2/bin/activate
$ pip install gphoto2
Collecting gphoto2
Installing collected packages: gphoto2
Sucusersfully installed gphoto2-1.8.5
$ python
Python 3.5.2 (default, Nov 12 2018, 13:43:14)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import gphoto2
Traceback (most recent call last):
File "/tmp/test-gphoto2/lib/python3.5/site-packages/gphoto2/camera.py", line 25, in swig_import_helper
return importlib.import_module(mname)
File "/tmp/test-gphoto2/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 986, in _gcd_import
File "<frozen importlib._bootstrap>", line 969, in _find_and_load
File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 666, in _load_unlocked
File "<frozen importlib._bootstrap>", line 577, in module_from_spec
File "<frozen importlib._bootstrap_external>", line 906, in create_module
File "<frozen importlib._bootstrap>", line 222, in _call_with_frames_removed
ImportError: /tmp/test-gphoto2/lib/python3.5/site-packages/gphoto2/_camera.cpython-35m-x86_64-linux-gnu.so: undefined symbol: gp_camera_get_single_config
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/tmp/test-gphoto2/lib/python3.5/site-packages/gphoto2/__init__.py", line 17, in <module>
from gphoto2.abilities_list import *
File "/tmp/test-gphoto2/lib/python3.5/site-packages/gphoto2/abilities_list.py", line 6, in <module>
import gphoto2.camera
File "/tmp/test-gphoto2/lib/python3.5/site-packages/gphoto2/camera.py", line 28, in <module>
_camera = swig_import_helper()
File "/tmp/test-gphoto2/lib/python3.5/site-packages/gphoto2/camera.py", line 27, in swig_import_helper
return importlib.import_module('_camera')
File "/tmp/test-gphoto2/lib/python3.5/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_camera'
>>>
Using pip install -v ...
increases the verbosity so you can see the compiler commands used during installation.
but there is no compilation, it look like a prepuild module.
$ pip install -v gphoto2
Created temporary directory: /tmp/pip-ephem-wheel-cache-9tve0h7u
Created temporary directory: /tmp/pip-req-tracker-aa32vdyz
Created requirements tracker '/tmp/pip-req-tracker-aa32vdyz'
Created temporary directory: /tmp/pip-install-qczpyvbg
Collecting gphoto2
1 location(s) to search for versions of gphoto2:
* https://pypi.org/simple/gphoto2/
Getting page https://pypi.org/simple/gphoto2/
Looking up "https://pypi.org/simple/gphoto2/" in the cache
Request header has "max_age" as 0, cache bypassed
Starting new HTTPS connection (1): pypi.org:443
https://pypi.org:443 "GET /simple/gphoto2/ HTTP/1.1" 304 0
Analyzing links from page https://pypi.org/simple/gphoto2/
Found link https://files.pythonhosted.org/packages/72/df/e95ccb81d79b924901a83032a82c174017b9c2109f9f5da21af27327f77c/gphoto2-0.3.2.tar.gz#sha256=c18d6f424526beec27bf5597bad5e9aaff0f2ae55ca82bd0c9d99e49ec4b3a8c (from https://pypi.org/simple/gphoto2/), version: 0.3.2
Found link https://files.pythonhosted.org/packages/4d/02/509cc1643d691412aabd7d293e294c4af14b95e3426845ebe485d2577140/gphoto2-0.3.2.zip#sha256=b3b9e66417e6f19245f879b25878374db4f6abb163f172d0fdb4ae11a4b1a48b (from https://pypi.org/simple/gphoto2/), version: 0.3.2
Found link https://files.pythonhosted.org/packages/2a/be/2fb7b960d04227630c33baa6cf92a7339461b96a2750bea75d683b377aa1/gphoto2-0.3.3.tar.gz#sha256=0b7c555ada9d31d7cad7a61050978a7c3089d833258f64686b8bf7ee664e9053 (from https://pypi.org/simple/gphoto2/), version: 0.3.3
Found link https://files.pythonhosted.org/packages/2d/f6/aceedc46e1bef2386386b87454fa06dce148cf1baa8804e71eef5e3dad06/gphoto2-0.3.3.zip#sha256=195ceefa5d6fd97a9d53d248f6103ff01dba629256000cb34a61b52e9652c2e5 (from https://pypi.org/simple/gphoto2/), version: 0.3.3
Found link https://files.pythonhosted.org/packages/94/29/df41214d3ea621116d93519aa6d9c5403ee9a79d37f4a16f5ad106fea6eb/gphoto2-0.4.0.tar.gz#sha256=3976fa0af29d0f448b45cdd01f680cbbe190b8791c56bbfdf4964c325bb41f46 (from https://pypi.org/simple/gphoto2/), version: 0.4.0
Found link https://files.pythonhosted.org/packages/41/a2/02c6e5830d1db854ff3f717c44fbd07cdd67624e73c081d476bf47ec944b/gphoto2-0.4.0.zip#sha256=a3ec5de5b610448d39978a55590bc89fc538a66a7714a19e5db75ac9051d7bc5 (from https://pypi.org/simple/gphoto2/), version: 0.4.0
Found link https://files.pythonhosted.org/packages/ce/40/9e5e1f343534d5f6ba95894483f65968fa01795ab04731de678df38552bd/gphoto2-0.5.0.tar.gz#sha256=0400cbf731fbc8c6962b307776b0360597f4cb40a62b13a0bdc87a9ec53c895f (from https://pypi.org/simple/gphoto2/), version: 0.5.0
Found link https://files.pythonhosted.org/packages/21/97/b4276f89250c01f949f3a2a86732f99445151a357d7789cf6d2dd035e4b3/gphoto2-0.5.0.zip#sha256=512c544ca2dab1ef40754ec360afff1f379832f3f16b416ac3fac9ce1b85c653 (from https://pypi.org/simple/gphoto2/), version: 0.5.0
Found link https://files.pythonhosted.org/packages/f4/55/dc49433a71b6e02b716d5a519dc23a037ca70f8b12ef43de56f8d3f813f3/gphoto2-0.5.1.tar.gz#sha256=dfb446ff9023ce3f10f09527c5a07ddfd07299245021ace74a4560ec8953498f (from https://pypi.org/simple/gphoto2/), version: 0.5.1
Found link https://files.pythonhosted.org/packages/54/97/5f25074b35f406cc3c5deeaba6d04934bc55f997a9592e2782ac407bad2b/gphoto2-0.5.1.zip#sha256=74c88a820614f4019148acb4bf890d0ee0bc368f64d714e934d9b076b8815999 (from https://pypi.org/simple/gphoto2/), version: 0.5.1
Found link https://files.pythonhosted.org/packages/3e/2d/bbbc66bd372d027e2b1c55e537e1e4ac0c91e07bfbb850e3f266b5d1d4fe/gphoto2-0.5.2.tar.gz#sha256=50e1e9380046762c3307b5a1464ceee88097a608cfad3992184138110eaa1094 (from https://pypi.org/simple/gphoto2/), version: 0.5.2
Found link https://files.pythonhosted.org/packages/43/57/b53405d5aaf128510a2d3a05fa02c05da5ff3d5981affba32a8af7ad10d8/gphoto2-0.5.2.zip#sha256=17ee371b1522ef01b7212278a7b09566cb41a829fa7efdcb84ba3a8d1b99326d (from https://pypi.org/simple/gphoto2/), version: 0.5.2
Found link https://files.pythonhosted.org/packages/ec/f2/ed47a2face3b5e7cec58f9b27aa089e6a12d93a11b8492b879a6c4d266be/gphoto2-0.6.0.tar.gz#sha256=79bfaa1f02bd6760ddb27c0418ff71876f755eb81162093af76a3b71bbeea88e (from https://pypi.org/simple/gphoto2/), version: 0.6.0
Found link https://files.pythonhosted.org/packages/b7/31/d2006bd3f36d511a626d9609359c47d8099b5e5d09e74b9003b048fe00a5/gphoto2-0.6.0.zip#sha256=0d021f9977df45098fab64efe1f6878dc1bf6ca754076e27c1002c2427f36882 (from https://pypi.org/simple/gphoto2/), version: 0.6.0
Found link https://files.pythonhosted.org/packages/0f/67/d025f5856bd90c8a47ae2d89289b2fbbafb3c0fe2da9191cf7b9a217485b/gphoto2-0.7.0.tar.gz#sha256=c708b6e3e49e920341cc4a7e43c46c62932b9a8d3df10bed508f2bc8d85a340e (from https://pypi.org/simple/gphoto2/), version: 0.7.0
Found link https://files.pythonhosted.org/packages/9b/d9/5ff6fd60db4e8f482f520aa2f62840de0d5b50a40514cc215e3f90184673/gphoto2-0.7.0.zip#sha256=c1861128fb9c4115378fc0ee8d0b925892e8076efec85d5245e6bda6742274fb (from https://pypi.org/simple/gphoto2/), version: 0.7.0
Found link https://files.pythonhosted.org/packages/a3/f7/fabfcc504e66b3c23338ba19f57f00565df2e61293117065c0faba55283e/gphoto2-0.7.1.tar.gz#sha256=c42eb3bea15d7f2c9d3d1c8eeb9f1f1fa71df048d4f0e944bf5f090240672c8d (from https://pypi.org/simple/gphoto2/), version: 0.7.1
Found link https://files.pythonhosted.org/packages/7a/62/30f82a8596cb6fcf6383c806441ca612be61f47199661fd03719d978302b/gphoto2-0.7.1.zip#sha256=ce729c70e06d3cee2058cfb4a680578686be3609ea04a376dd367e39644f7bf6 (from https://pypi.org/simple/gphoto2/), version: 0.7.1
Found link https://files.pythonhosted.org/packages/e9/ca/6ea197c0f90cb80b4076ac7196ed12afdcb4265feacceacb8dc1c7f4b37c/gphoto2-0.8.0.tar.gz#sha256=8946b9fbbe40b96d418aac8025987467a42151cfe5a2c791367b7212df077b3d (from https://pypi.org/simple/gphoto2/), version: 0.8.0
Found link https://files.pythonhosted.org/packages/53/20/a510404ac1a6dc273905761c0d3586c2b4325eee3dd1915ec417b9687ec3/gphoto2-0.8.0.zip#sha256=8644e05cf96a8d82af504b6abe28c86eef41cff3695168fcead766a2c429d58c (from https://pypi.org/simple/gphoto2/), version: 0.8.0
Found link https://files.pythonhosted.org/packages/10/f8/b1c772f319e3f1a9a94098fe1035064b993b2e2358c6280bb84f1e6cd987/gphoto2-0.9.0.tar.gz#sha256=479fbcbdcf3f1bcfdec2e66cc7ec0c7a75b9dddd5b9fb66513a6cd0db09f4c48 (from https://pypi.org/simple/gphoto2/), version: 0.9.0
Found link https://files.pythonhosted.org/packages/88/f4/5f088518bb31ea22a843b4a5825e1db62562bffcbbf97a3603d720f1f33b/gphoto2-0.9.0.zip#sha256=94d1be27d8317767e31cdd44af9129189ff839d310b04d9f8a390fff390f1550 (from https://pypi.org/simple/gphoto2/), version: 0.9.0
Found link https://files.pythonhosted.org/packages/e9/26/a202c12217953111c275f783f244f1ccfea0d02875cb09a463479f249203/gphoto2-0.9.1.tar.gz#sha256=71ecb2d3b269ac057e7e418b316c03c030b4bf4cbd811965b15f3ff4325bd6a2 (from https://pypi.org/simple/gphoto2/), version: 0.9.1
Found link https://files.pythonhosted.org/packages/ca/2d/550934f79cec8365292121c5180b20b3f34d29ac7e2f34ffd0b3347ced5c/gphoto2-0.9.1.zip#sha256=8213632518ba04f883d314b29427444634bab638aab22a73df133067417f79e4 (from https://pypi.org/simple/gphoto2/), version: 0.9.1
Found link https://files.pythonhosted.org/packages/22/ad/b92fdaa51944766d80362d23a566b98d9bbce08dcbe7a609b05d3862d1e4/gphoto2-0.10.0.tar.gz#sha256=b1f56b5a0b55d3a56635d5db528f99a45f4d2a16b8c1b32f2e25e0c9ee4169b7 (from https://pypi.org/simple/gphoto2/), version: 0.10.0
Found link https://files.pythonhosted.org/packages/88/6e/2a96455a8bd240ab3c1d23b4dd678aa67ceca3d74887e2341ca1df131b98/gphoto2-0.10.0.zip#sha256=d23fdb6d8181aaa964981dbf4fbc704c179692e3e36ade8ae21bb8faad3a3452 (from https://pypi.org/simple/gphoto2/), version: 0.10.0
Found link https://files.pythonhosted.org/packages/fe/f2/2301197943cd36212ff49551b63eafe2e8503580a344af5abd653bc7491e/gphoto2-0.10.1.tar.gz#sha256=611cdd06411452ebfb66b902f07931a81c0081618b422ea5168e9ce11394dc64 (from https://pypi.org/simple/gphoto2/), version: 0.10.1
Found link https://files.pythonhosted.org/packages/32/70/30a031ab473e15e4eeabd6a658bd9074f9ce55e38c02d1409e6c2489c581/gphoto2-0.10.1.zip#sha256=4c31a955d805f92ad934a50c8a43427e1f226d325564831785c2d73aa5e98fd3 (from https://pypi.org/simple/gphoto2/), version: 0.10.1
Found link https://files.pythonhosted.org/packages/d4/62/a3189354641b0872e5f97811698ad612e17aade71f84f18ba5d64615ece8/gphoto2-0.10.2.tar.gz#sha256=39a31957a3587faadead191d27e18f4abcffb6df5d7bde118f9fdb733d70941e (from https://pypi.org/simple/gphoto2/), version: 0.10.2
Found link https://files.pythonhosted.org/packages/45/27/87e0ed41b56430c41f79c828b0b40edbd1a51464e8c3bbc792d69e2f31d2/gphoto2-0.10.2.zip#sha256=f4288ae8d24ba993b1eef3e8e7c186beeca1ecc91e286e63890ad74dd06590f2 (from https://pypi.org/simple/gphoto2/), version: 0.10.2
Found link https://files.pythonhosted.org/packages/84/bc/2ad1bfb5404f7a58bceb7da60f929c3b7a31261768ec97076fa402c695e5/gphoto2-0.11.0.tar.gz#sha256=08254651e310c4ba00055087c1b59838bba33e3c040bd38430def4a13dd3e5e6 (from https://pypi.org/simple/gphoto2/), version: 0.11.0
Found link https://files.pythonhosted.org/packages/b4/6c/1be94f43bb4ba1b76742c66851d1921eaa2621e320c704e34cedc5b9639c/gphoto2-0.11.0.zip#sha256=adc14f95c015ff322ada8c5647b974b1830fc4d60f46360ec56845e028eaf3d6 (from https://pypi.org/simple/gphoto2/), version: 0.11.0
Found link https://files.pythonhosted.org/packages/9b/7f/ae3821e1725ddd87c216ec3800dd9feca319504f204ebdd8240fcd70fb46/gphoto2-0.11.1.tar.gz#sha256=2c2ddea62abde769bed1069df2ca1d49aef42bb779191afe573dec7a7448ee8c (from https://pypi.org/simple/gphoto2/), version: 0.11.1
Found link https://files.pythonhosted.org/packages/6c/cc/a5d4b5dc08436fc7319f0b82624737308e617724117148b34c4543cef801/gphoto2-0.11.1.zip#sha256=88e58f422456d8dcba924b002c090497ecbb4e53f39287670c35cacf0cdbfa16 (from https://pypi.org/simple/gphoto2/), version: 0.11.1
Found link https://files.pythonhosted.org/packages/31/a9/d009233951e29ad4e33eb47e73cf4f16ce244b0069533d15deb2e6fc58bf/gphoto2-0.11.2.tar.gz#sha256=4fe23579cd17e2b063207a084165e7fe7399d9e058100a37bb8d661902153f39 (from https://pypi.org/simple/gphoto2/), version: 0.11.2
Found link https://files.pythonhosted.org/packages/b3/63/21cda29b88bc518ed7b28b6feb15a26f364827cf358a252545a80b79b907/gphoto2-0.11.2.zip#sha256=9f784f450694f6963c28a315dcba4e6ccef04d36e94ab3acd400c5357d52c298 (from https://pypi.org/simple/gphoto2/), version: 0.11.2
Found link https://files.pythonhosted.org/packages/20/3a/98887b58eb209c96f9b497bf7048a54f28de0afb1e47e3ff41371fd8216d/gphoto2-1.0.0.tar.gz#sha256=f463f833a39c7fe3287284e4c4d74835ab40e4c45534ed43d2615eaa288776eb (from https://pypi.org/simple/gphoto2/), version: 1.0.0
Found link https://files.pythonhosted.org/packages/b9/0a/8af7c2e517201c61e346c5e817e9f1864594a0be2aa4a06f41cf9776037d/gphoto2-1.0.0.zip#sha256=37c01a66ffbc8a9fead072202cdf7403b9109b367cef46e8e0ddf55ae1762c80 (from https://pypi.org/simple/gphoto2/), version: 1.0.0
Found link https://files.pythonhosted.org/packages/26/90/c4830eb6c2fbcecb93745507165bc00d49123169069c47ac7cca84169d28/gphoto2-1.1.0.tar.gz#sha256=6b8ff614a6f255ddbacf4e425a26b746147a6a2f1f69cf19797476f150ac2dbb (from https://pypi.org/simple/gphoto2/), version: 1.1.0
Found link https://files.pythonhosted.org/packages/e1/ad/b1166b9ab7602ff1f030fd0ecbdad20f9b449ea74c45ae8f1c710c60de69/gphoto2-1.1.0.zip#sha256=4df9924124a99ac51568b52dfae0fe5a1b2e431be08894a32ccd6e9824b1b55a (from https://pypi.org/simple/gphoto2/), version: 1.1.0
Found link https://files.pythonhosted.org/packages/c0/e9/af3e7605a5bf9a56b91bb4a8c0f1d08dc3b52fcfdd7c92fe6b52177064d4/gphoto2-1.2.0.tar.gz#sha256=444277aacbd48d6262057da76a71c6da8824b752ac49c00640a5f4e6bba066a0 (from https://pypi.org/simple/gphoto2/), version: 1.2.0
Found link https://files.pythonhosted.org/packages/ad/8e/ffb0c721a16d2d693d8c49376bdce9603663a506fbcd65d56f0cc1c5206f/gphoto2-1.2.0.zip#sha256=75cbff7e1781b0c87091011d91fe5ca7fcedf7cb5e4919a0f1cef489040d0004 (from https://pypi.org/simple/gphoto2/), version: 1.2.0
Found link https://files.pythonhosted.org/packages/75/77/f624f0eee0001201b197e192e0a0b1ba00c1eb9dc09640e0bf11ef716741/gphoto2-1.2.1.tar.gz#sha256=7aec2d8371a009e1b270303711f1b4e996c4898b83bdeb087a5abb392037a46e (from https://pypi.org/simple/gphoto2/), version: 1.2.1
Found link https://files.pythonhosted.org/packages/bb/a8/4cb2a8aabd1cd4faf00e46328156eeb703129622eb6b18b7a6f3b171e338/gphoto2-1.2.1.zip#sha256=698b3b8d93d7cc2438ecbc4aae93bb8cb1d8a88e33c9ea8081a70872c2d7d8ad (from https://pypi.org/simple/gphoto2/), version: 1.2.1
Found link https://files.pythonhosted.org/packages/4d/43/329258bdc7c174c066bbf4e4f9fd1750350b027457a42eb7e4c08e2e3853/gphoto2-1.2.2.tar.gz#sha256=c1056f24d75616c1a7da4eac03e328998dac31cc85916b4e9cb1dfe49c42e3c6 (from https://pypi.org/simple/gphoto2/), version: 1.2.2
Found link https://files.pythonhosted.org/packages/e6/8a/3de337640fce02d0c0b80cd25f05f83c83c3b18810c3700cad2a786af0e3/gphoto2-1.2.2.zip#sha256=ed04982590c19a78575423b558665a7b0a23b4815ba4b150b374387bb9832e69 (from https://pypi.org/simple/gphoto2/), version: 1.2.2
Found link https://files.pythonhosted.org/packages/00/d3/c15c099d4125640ccae0d6fdaa4ca6c8eec51d6e5d836d70b943c7a29951/gphoto2-1.3.1.tar.gz#sha256=c5f223df4645299ecb738b46fca47f02fb7054f9c452fcb8de94d3128e693bc3 (from https://pypi.org/simple/gphoto2/), version: 1.3.1
Found link https://files.pythonhosted.org/packages/8f/cb/dc4c43c1c2c869847137b81f45ccc69da4280e2f0b821acc10dbc1aa368f/gphoto2-1.3.1.zip#sha256=02b6d4362fd2490723e9255568db0f29627d2dcd2362c5cf2d18f67446220532 (from https://pypi.org/simple/gphoto2/), version: 1.3.1
Found link https://files.pythonhosted.org/packages/8b/ad/727dc5260be6e0f80c40bd0272bb8ec1a0b2a7e51fbc9e468478e867aadb/gphoto2-1.3.2.tar.gz#sha256=aad1782a7d52b4db7e76931df72c208de80ba88b7a8eb076c91d3a08e6ae4041 (from https://pypi.org/simple/gphoto2/), version: 1.3.2
Found link https://files.pythonhosted.org/packages/fd/29/c0a2e754c67aa76977e6acc2676d3af0238c52994580ba4deb693b19893d/gphoto2-1.3.2.zip#sha256=c91d50a5dd88d5de7c6a8deb66bfa87b4171d405fcb0bf5ceedb66fd8ef1b543 (from https://pypi.org/simple/gphoto2/), version: 1.3.2
Found link https://files.pythonhosted.org/packages/59/fb/0a7c5d9cdb70173d459a78fe0581f083ebd9daf8020129925882588f1858/gphoto2-1.3.3.tar.gz#sha256=5483ced273c068c4f001eda88c2418e0b8c8f3647c9046fda05da2c4fa55f528 (from https://pypi.org/simple/gphoto2/), version: 1.3.3
Found link https://files.pythonhosted.org/packages/2e/f5/bd23ae096f9e1e9d148bff3a0095bc3a6c281d6056b5b6ebae227e6cd3de/gphoto2-1.3.3.zip#sha256=a152824b1d687c146b0bb6275fc6788d7d42758884a8d621b54f6a2b78770b2c (from https://pypi.org/simple/gphoto2/), version: 1.3.3
Found link https://files.pythonhosted.org/packages/08/9d/23d057bb30c6d10ea67ec4fdeaa6e8122d2bffcd786bbfd52a664054f176/gphoto2-1.3.4.tar.gz#sha256=ab7bc14088f736c34160b4337b6b3b5e19df10a4e597edf28311db3c87f49f5b (from https://pypi.org/simple/gphoto2/), version: 1.3.4
Found link https://files.pythonhosted.org/packages/16/94/1f22fc225c39dc33d24fc99cd761a5f49ebec1e5076b1ceb3b926fb7347a/gphoto2-1.3.4.zip#sha256=d4a1ba84e68144e568b3d3916c63b6bfa322e10305eeec80a72413a240f659c4 (from https://pypi.org/simple/gphoto2/), version: 1.3.4
Found link https://files.pythonhosted.org/packages/3a/cb/67fcaaef2357420e4563e2514f4b5d953814be00a98b98d5daf850916804/gphoto2-1.4.0.tar.gz#sha256=06bfb43dd4e9aeec28f8fb9ec3e847f66082d5efc9bda03577cd6a60a5d0636d (from https://pypi.org/simple/gphoto2/), version: 1.4.0
Found link https://files.pythonhosted.org/packages/ff/6f/0292c9e794aa25d54ca565c459daaafe7f886cfc35cfd18739bb8b32c07a/gphoto2-1.4.0.zip#sha256=b9be189b9a0919d6adc303c961fda2093319f7af381f3fae159b01b5d108e825 (from https://pypi.org/simple/gphoto2/), version: 1.4.0
Found link https://files.pythonhosted.org/packages/65/25/03d380937ada6fbeb21318804d859c367fe9aa8db041789386c7722227b0/gphoto2-1.4.1.tar.gz#sha256=5015a4aac4cc046ce221a485f369670ae12d76198adde20c4c7bdca874f734f5 (from https://pypi.org/simple/gphoto2/), version: 1.4.1
Found link https://files.pythonhosted.org/packages/3e/ae/981c4720259162a78fc6b309c3a591043b78a8dd35f3dd416025f62f69f4/gphoto2-1.4.1.zip#sha256=f60d35f1c6db5e70df520cbb078028f161978975b2bde64bfd81172cf5abc46b (from https://pypi.org/simple/gphoto2/), version: 1.4.1
Found link https://files.pythonhosted.org/packages/07/ad/d32da3c2de87104df8fdffa353acd67957ccd9a892509b5511da24916993/gphoto2-1.5.0.tar.gz#sha256=c919a850cd9d7efba5d8debca2c47677149a85ce9f9e77c987a526cbd6353ed1 (from https://pypi.org/simple/gphoto2/), version: 1.5.0
Found link https://files.pythonhosted.org/packages/9f/35/e52e25d58bfe267e81007ae78120dc79ce2f27e042e05386fc12784af899/gphoto2-1.5.0.zip#sha256=ca5cf99e714682ce9322f81f79ff2b5bbdb623d684024d1a2c0d5d19954eadda (from https://pypi.org/simple/gphoto2/), version: 1.5.0
Found link https://files.pythonhosted.org/packages/57/99/ebd0fd1298be2f497730f849ffcc0ddce730070afd1e46b58b03a01d53e3/gphoto2-1.5.1.tar.gz#sha256=3e99530c5e4d560c6ef0675040b295f356346d87e96dbb65e9f220ac96670a84 (from https://pypi.org/simple/gphoto2/), version: 1.5.1
Found link https://files.pythonhosted.org/packages/d2/91/037321149dd69366a5866b416f70447e0778283dca55a6967541e6453439/gphoto2-1.6.0.tar.gz#sha256=9c194418ad4a2d3b9c3128a4c5ee12328e7fcd77a47a2bc7ec20dc36870cc559 (from https://pypi.org/simple/gphoto2/), version: 1.6.0
Found link https://files.pythonhosted.org/packages/d9/05/de56a7266fc5b61c38a3aa5caa03a71dcd9c23d827b4638b96912d4511fb/gphoto2-1.7.0.tar.gz#sha256=e36b5690fd6db5d9cfb196b571ea35b2f5ef0e1d15235fe877f3f4eeebbf12d2 (from https://pypi.org/simple/gphoto2/), version: 1.7.0
Found link https://files.pythonhosted.org/packages/5b/6b/4fdf675229d97c367a1cbbafd2ae2c9e7a28df2e8f3e46d06e05e21f893a/gphoto2-1.7.1.tar.gz#sha256=91a856cb3d509941949c49fcf88e2612b1f9eac6328d5939d87c58af58aab03d (from https://pypi.org/simple/gphoto2/), version: 1.7.1
Found link https://files.pythonhosted.org/packages/dc/b5/7d4af9fcad7f24dfc56edcd1cd1c2d0737d07dc81c83e30120bd824e8aaa/gphoto2-1.8.0.tar.gz#sha256=3fe2b83d449730f311c8648d82626abd9a04ed49ea3cae49b0f6882d879bee7c (from https://pypi.org/simple/gphoto2/), version: 1.8.0
Found link https://files.pythonhosted.org/packages/fd/d7/7660013e81138c73232a62010d3d8816028d8a025d2e62c326dc07e9bb5f/gphoto2-1.8.2.tar.gz#sha256=d1e29e61323ef16e154965becda3d09d628cad7cd577af3c0710a3c0645b06a0 (from https://pypi.org/simple/gphoto2/), version: 1.8.2
Found link https://files.pythonhosted.org/packages/13/20/16f4e17e0d799199c84a7d3e4f181232071383acf71912da44de015b1812/gphoto2-1.8.3.tar.gz#sha256=0257f90f0d8342b8bc996ff1b45b2cd3219a29f8123aa21a6da159ee3566e49f (from https://pypi.org/simple/gphoto2/), version: 1.8.3
Found link https://files.pythonhosted.org/packages/5f/f2/1579e8525c3deaa7b468d43548dad186c083fe12e41a89876c561039abc1/gphoto2-1.8.4.tar.gz#sha256=344d12f15b09a2324b5ee972b653ac1a0ab5f6612255c4a393ecba52c96aaa51 (from https://pypi.org/simple/gphoto2/), version: 1.8.4
Found link https://files.pythonhosted.org/packages/6f/c7/a0ec0a951ef86f1dd8ba282f6da1bf6900d47bcbe68ed366c454551d0113/gphoto2-1.8.5.tar.gz#sha256=140d1a1e8bb3960f6eca1374532ff5561ff5a340b9cedf78fd2a8a2cf1c17ccb (from https://pypi.org/simple/gphoto2/), version: 1.8.5
Using version 1.8.5 (newest of versions: 0.3.2, 0.3.3, 0.4.0, 0.5.0, 0.5.1, 0.5.2, 0.6.0, 0.7.0, 0.7.1, 0.8.0, 0.9.0, 0.9.1, 0.10.0, 0.10.1, 0.10.2, 0.11.0, 0.11.1, 0.11.2, 1.0.0, 1.1.0, 1.2.0, 1.2.1, 1.2.2, 1.3.1, 1.3.2, 1.3.3, 1.3.4, 1.4.0, 1.4.1, 1.5.0, 1.5.1, 1.6.0, 1.7.0, 1.7.1, 1.8.0, 1.8.2, 1.8.3, 1.8.4, 1.8.5)
Using cached wheel link: file:///home/ces/.cache/pip/wheels/3d/e6/65/274e0c5ac977301bef865cbb99b40267192eaeb0609bd4de05/gphoto2-1.8.5-cp35-cp35m-linux_x86_64.whl
Added gphoto2 from file:///home/ces/.cache/pip/wheels/3d/e6/65/274e0c5ac977301bef865cbb99b40267192eaeb0609bd4de05/gphoto2-1.8.5-cp35-cp35m-linux_x86_64.whl to build tracker '/tmp/pip-req-tracker-aa32vdyz'
Removed gphoto2 from file:///home/ces/.cache/pip/wheels/3d/e6/65/274e0c5ac977301bef865cbb99b40267192eaeb0609bd4de05/gphoto2-1.8.5-cp35-cp35m-linux_x86_64.whl from build tracker '/tmp/pip-req-tracker-aa32vdyz'
Installing collected packages: gphoto2
Successfully installed gphoto2-1.8.5
Cleaning up...
Removed build tracker '/tmp/pip-req-tracker-aa32vdyz'
You're using a cached "wheel" that was generated by your previous installation - the download from PyPI is definitely not prebuilt. Try using the --no-cache-dir
option.
Actually this could be the cause of several installation problems. pip
only knows about python versions and package versions. If a different version of libgphoto2 is installed then pip
won't know it needs to rebuild from source and will reuse a cached "wheel".
All right, that was the issue, and it was on my side. I'm so surprised, it used a cache for a new virtualenv, Thanks a lot for your help
I'm also surprised. pip
tries to be too clever, in my opinion. Is your original import error now fixed?
For future reference: --no-binary :all:
is a more appropriate flag than --no-cache-dir
.
Yes It's fixed, Thanks a lot
On a fresh new install of ubuntu 16.04, I know it's already old, but I need it. gphoto2 python version was 1.8.5 (before I forced to old one to resolve the issue)
$ gphoto2 --version gphoto2 2.5.9
Copyright (c) 2000-2015 Lutz Mueller and others
gphoto2 comes with NO WARRANTY, to the extent permitted by law. You may redistribute copies of gphoto2 under the terms of the GNU General Public License. For more information about these matters, see the files named COPYING.
This version of gphoto2 is using the following software versions and options: gphoto2 2.5.9 gcc, popt(m), exif, no cdk, aa, jpeg, readline libgphoto2 2.5.9 all camlibs, gcc, ltdl, EXIF libgphoto2_port 0.12.0 gcc, ltdl, no USB, serial without locking
$ python Python 3.5.2 (default, Nov 12 2018, 13:43:14) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "", line 1, in
File "/home/user/app/lib/python3.5/site-packages/gphoto2/init.py", line 17, in
from gphoto2.abilities_list import *
File "/home/user/app/lib/python3.5/site-packages/gphoto2/abilities_list.py", line 6, in
import gphoto2.camera
File "/home/user/app/lib/python3.5/site-packages/gphoto2/camera.py", line 28, in
_camera = swig_import_helper()
File "/home/user/app/lib/python3.5/site-packages/gphoto2/camera.py", line 27, in swig_import_helper
return importlib.import_module('_camera')
File "/home/user/app/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ImportError: No module named '_camera'
I force to used an old version and fixed the issue $ pip install -v -U --force-reinstall gphoto2==1.8.3