question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

LodgeitUpload: lexer[1][0] IndexError: tuple index out of range

See original GitHub issue

Hi 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:closed
  • Created 3 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ThomasWaldmanncommented, Jan 5, 2021

@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.

1reaction
ThomasWaldmanncommented, Mar 14, 2021

@mweinelt just released 1.0.0. \o/

Read more comments on GitHub >

github_iconTop Results From Across the Web

IndexError: tuple index out of range ----- Python - Stack Overflow
Please Help me. I'm running a simple python program that will display the data from mySQL database in a tkinter form... from Tkinter...
Read more >
Python IndexError: tuple index out of range Solution
When you try to access an item in a tuple that does not exist, Python returns an error that says “tuple index out...
Read more >
fastStructure: tuple index out of range - Google Groups
I have hit the 'tuple out of range' problem again with one of my data sets. The set runs properly with original ......
Read more >
Python Index Error: Tuple Index Out of Range - Kodeclik
Ways to fix tuple index out of range error. 1. Check the lower end of the index. 2. Check the upper end of...
Read more >
Add point to shapefile / "IndexError: tuple index out of range"
The error you are getting is because index starts with 0 and you are using 1 in the format row. Change to: print...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found