fakefred / memethesis-cli

All your memes are belong to us!
https://pypi.org/project/memethesis/
GNU General Public License v3.0
51 stars 3 forks source link

[BUG] NameError: name 'I' is not defined #3

Closed saloniamatteo closed 4 years ago

saloniamatteo commented 4 years ago

I got this error while trying to save the image: Save meme to: (only .jpg supported) test.jpg Traceback (most recent call last): File "/data/data/com.termux/files/usr/bin/memethesis", line 8, in <module> sys.exit(main()) File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/memethesis/__main__.py", line 64, in main interactive() File "/data/data/com.termux/files/usr/lib/python3.8/site-packages/memethesis/interactive.py", line 235, in interactive path = ((o if search('\.(jpe?g|png)$', o, flags=I) else o + '.jpg') NameError: name 'I' is not defined

fakefred commented 4 years ago

Which version of Python are you using? @mrbesen encountered the exact same problem in #1.

saloniamatteo commented 4 years ago

Which version of Python are you using? @mrbesen encountered the exact same problem in #1.

Python 3.8

fakefred commented 4 years ago

To solve the problem, use the git version instead of that from pypi. Run python setup.py bdist_wheel, cd dist, and pip install memethesis-<something>.whl. I'll update the pypi version soon.

saloniamatteo commented 4 years ago

Thank you very much :)

saloniamatteo commented 4 years ago

finally I had some problems installing it, but I thankfully installed it after a LOOONG time *phew*

I made the image above using memethesis by the way. It's really awesome! Please add more meme templates!

fakefred commented 4 years ago

Yes, pypi is painfully inconsiderate when I want to upgrade packages. It is best to keep doing pip install memethesis==2.1.1 until it surrenders and does as intended.