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

capture_image err #2

Open
neznae4ko opened this issue Jun 13, 2018 · 1 comment
Open

capture_image err #2

neznae4ko opened this issue Jun 13, 2018 · 1 comment

Comments

@neznae4ko
Copy link

neznae4ko commented Jun 13, 2018

zz@zz-N56JN:~$ python
Python 3.6.5 (default, Jun 11 2018, 23:03:46)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.

>>> import shutter
>>> camera = shutter.Camera()
>>> camera.capture_image("my_pic.jpg")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/zz/.pyenv/versions/booth3.6/lib/python3.6/site-packages/shutter/shutter.py", line 345, in capture_image
    self.download_and_save(path.folder, path.name, destpath)
  File "/home/zz/.pyenv/versions/booth3.6/lib/python3.6/site-packages/shutter/shutter.py", line 387, in download_and_save
    srcfolder = srcfolder.encode('ascii')
AttributeError: 'bytes' object has no attribute 'encode'

@bitcraft
Copy link
Owner

Unfortunately, I had some issues with this library and haven't updated it in a long time. You could try removing .encode('ascii') from the library source and try again. I just don't have the time recently to address issues like this, sorry! :(

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

2 participants