liuwons / liuwons/image2text

name 'xrange' is not defined

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
10
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Got the below error

test//input.png
Traceback (most recent call last):
File "image2text.py", line 47, in
image_file_to_text(imgname, w, h)
File "image2text.py", line 37, in image_file_to_text
string = image_to_text(pixels, width, height)
File "image2text.py", line 11, in image_to_text
for h in xrange(height):
NameError: name 'xrange' is not defined

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with image2text.py at line 11 and reproduce the reported failure using the input shown in the issue. Check the Python version involved and confirm the script processes the image without the reported NameError.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.