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

TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' #2

Open
danbaghilovici opened this issue Dec 20, 2019 · 1 comment

Comments

@danbaghilovici
Copy link

I get the next error when trying to use the examples you posted. Seems to be a problem with the function getwebp() when you pass the parameters.

Traceback (most recent call last):
  File "C:/Users/Dan/PycharmProjects/projects/webp_convert.py", line 4, in <module>
    print(str(webp.dwebp(input_image='random_703.webp',output_image='random_703.png',option='0')))
  File "C:\Users\Dan\AppData\Local\Programs\Python\Python37-32\lib\site-packages\webptools\webplib.py", line 29, in dwebp
    cmd = getdwebp() + ' ' + input_image + ' ' + option + ' ' + output_image
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

@DaVinci0072
Copy link

DaVinci0072 commented Apr 11, 2020

Same here using Python 3.7.4 32-bit. Problem does not happen on Python 2.7.16 64-bit.
Using webptools-0.0.2

webp.dwebp("filename1","filename2","-o")

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