setup on Python 2.7 is starting to break
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- python
- Domain
- build-system
Research direction
Reproduce the Python 2.7 installation failure using the traceback and the noted pdfminer==20140328 workaround. Inspect the project's dependency and setup configuration to determine how pdfminer is selected. Done means installation no longer fails on Python 2.7 without manual dependency installation, with the supported behavior verified.
Written by the indexing model from the issue text.
Description
Latest versions of pdfminer are no longer compatible with Python 2.7, which results in the install of pattern failing as well because pdfminer expects Python 3.6 or higher, but does not check for this.
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-6LDKdm/pdfminer/setup.py", line 71, in <module>
'Topic :: Text Processing',
File "pattern-test/.env/local/lib/python2.7/site-packages/setuptools/__init__.py", line 145, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
self.run_command(cmd)
File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
cmd_obj.run()
File "/tmp/pip-install-6LDKdm/pdfminer/setup.py", line 11, in run
from pdfminer.cmapdb import convert_cmap
File "/tmp/pip-install-6LDKdm/pdfminer/pdfminer/cmapdb.py", line 22, in <module>
from .psparser import PSStackParser
File "/tmp/pip-install-6LDKdm/pdfminer/pdfminer/psparser.py", line 4, in <module>
from .utils import choplist
File "/tmp/pip-install-6LDKdm/pdfminer/pdfminer/utils.py", line 219, in <module>
0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x00fd, 0x00fe, 0x00ff,
File "/tmp/pip-install-6LDKdm/pdfminer/pdfminer/utils.py", line 187, in <genexpr>
PDFDocEncoding = ''.join(chr(x) for x in (
ValueError: chr() arg not in range(256)
Can be solved by installing pdfminer==20140328 first.
- Dominant language
- Python
- Stars
- 8.9k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from clips/pattern
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
-
Difficulty 1/5 Under an hour Newbie friendliness 45/100
-
Difficulty 4/5 3-5 days Newbie friendliness 30/100
Similar issues
-
Add: hunch Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
AbdelStark/awesome-typesafe#104 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
DiamondLightSource/dodal#2211 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
openml/openml-python#1749 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
sipyourdrink-ltd/bernstein#6191 ·