Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install on MacOS #496

Open
psommerfeld opened this issue Jan 6, 2023 · 1 comment
Open

Can't install on MacOS #496

psommerfeld opened this issue Jan 6, 2023 · 1 comment

Comments

@psommerfeld
Copy link

Try to install with pip defaulting to Python2 (see Python3 attempt further down)

% git clone https://www.github.com/camelot-dev/camelot
% cd camelot
% pip install ".[cv]"
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
Processing /Users/psommerfeld/Dropbox/work/camelot
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/7s/8v3x7mf531q3bblgckwq8hl00000gn/T/pip-req-build-RkYLrh/setup.py'"'"'; file='"'"'/private/var/folders/7s/8v3x7mf531q3bblgckwq8hl00000gn/T/pip-req-build-RkYLrh/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /private/var/folders/7s/8v3x7mf531q3bblgckwq8hl00000gn/T/pip-pip-egg-info-5J2Gos
cwd: /private/var/folders/7s/8v3x7mf531q3bblgckwq8hl00000gn/T/pip-req-build-RkYLrh/
Complete output (8 lines):
Traceback (most recent call last):
File "", line 1, in
File "/private/var/folders/7s/8v3x7mf531q3bblgckwq8hl00000gn/T/pip-req-build-RkYLrh/setup.py", line 10, in
exec(f.read(), about)
File "", line 11
version_parts.append(f"-{prerelease}")
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

Try with Python3:

% python3 -m pip install "[.cv]"
ERROR: Exception:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/packaging/requirements.py", line 102, in init
req = REQUIREMENT.parseString(requirement_string)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/pyparsing/core.py", line 1141, in parse_string
raise exc.with_traceback(None)
pip._vendor.pyparsing.exceptions.ParseException: Expected string_end, found '[' (at char 11), (line:1, col:12)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
return func(self, options, args)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/commands/install.py", line 344, in run
reqs = self.get_requirements(args, options, finder, session)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/cli/req_command.py", line 411, in get_requirements
req_to_add = install_req_from_line(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/req/constructors.py", line 393, in install_req_from_line
parts = parse_req_from_line(name, line_source)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/req/constructors.py", line 332, in parse_req_from_line
extras = convert_extras(extras_as_string)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/req/constructors.py", line 57, in convert_extras
return get_requirement("placeholder" + extras.lower()).extras
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_internal/utils/packaging.py", line 45, in get_requirement
return Requirement(req_string)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/pip/_vendor/packaging/requirements.py", line 104, in init
raise InvalidRequirement(
pip._vendor.packaging.requirements.InvalidRequirement: Parse error at "'[.cv]'": Expected string_end

@bosd
Copy link

bosd commented Aug 8, 2024

@psommerfeld
This repo seems to be no longer maintained.
We try to build a maintained fork at pypdf_table_extraction.

You are welcome to check it out and contribute there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants