Hi,
Thanks! I checked and i got:
pi@raspberrypi:~ $ python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.path
['', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-arm-linux-gnueabihf', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/home/pi/.local/lib/python2.7/site-packages', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/gtk-2.0']
>>> quit()
but I saw that the chdkptp.py was installed in ~/.local/lib/python2.7/site-packages/chdkptp
So i installed again the chdkptp.py with "sudo" to make it not local:
pi@raspberrypi:/ $ sudo pip install https://github.com/5up3rD4n1/chdkptp.py/releases/download/v0.1.4/chdkptp.py-0.1.4.tar.gz
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting https://github.com/5up3rD4n1/chdkptp.py/releases/download/v0.1.4/chdkptp.py-0.1.4.tar.gz
Downloading https://github.com/5up3rD4n1/chdkptp.py/releases/download/v0.1.4/chdkptp.py-0.1.4.tar.gz (1.5MB)
100% |████████████████████████████████| 1.5MB 80kB/s
Requirement already satisfied: lupa>=1.1 in /usr/local/lib/python2.7/dist-packages (from chdkptp.py==0.1.4) (1.9)
Building wheels for collected packages: chdkptp.py
Running setup.py bdist_wheel for chdkptp.py ... done
Stored in directory: /root/.cache/pip/wheels/d9/15/26/318c64e58d643efe9c575cecca308be93b2d2df5aa19327caa
Successfully built chdkptp.py
Installing collected packages: chdkptp.py
Successfully installed chdkptp.py-0.1.4
Then, i tried and i got a different error :
pi@raspberrypi:/ $ sudo python
Python 2.7.16 (default, Oct 10 2019, 22:02:15)
[GCC 8.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import chdkptp
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "chdkptp.py", line 1
^
SyntaxError: I/O error while reading
>>>