LodgeitUpload: lexer[1][0] IndexError: tuple index out of range
See original GitHub issueHi there.
In a personal server re-vamp, I decided I wanted to also have pasting available self-hosted, and I found this awesome project. As I deploy my VPS mostly through ansible managed docker images, I wanted to do so for bepasty too.
In order to do this I looked around, and found a 5 year old image. I decided to try and move this image to the latest alpine, and have a scheduled github action to regularly(monthly) rebuild the image (to follow the latest pypi build of bepasty-server)
I however have run into some issues getting it running, and have gotten stuck at the following error when uWSGI tries to start:
Traceback (most recent call last):
File "wsgi.py", line 4, in <module>
from bepasty.app import create_app
File "/usr/lib/python3.8/site-packages/bepasty/app.py", line 14, in <module>
from .apis import blueprint as blueprint_apis
File "/usr/lib/python3.8/site-packages/bepasty/apis/__init__.py", line 3, in <module>
from .lodgeit import LodgeitUpload
File "/usr/lib/python3.8/site-packages/bepasty/apis/lodgeit.py", line 15, in <module>
class LodgeitUpload(MethodView):
File "/usr/lib/python3.8/site-packages/bepasty/apis/lodgeit.py", line 25, in LodgeitUpload
name = lexer[1][0]
IndexError: tuple index out of range
unable to load app 0 (mountpoint='') (callable not found or import error)
Any pointers in the right direction would be greatly appreciated 😃
_edit: docker image source is here https://github.com/Duckle29/bepasty-docker_
Issue Analytics
- State:
- Created 3 years ago
- Comments:9 (6 by maintainers)
Top GitHub Comments
@foosinn yes, i’ll make a release soon.
meanwhile, you can just install the older pygments to make the last release work again, see above.
@mweinelt just released 1.0.0. \o/