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

On debian 8, pip install certbot fails #9857

Open
ian-kelling opened this issue Dec 6, 2023 · 1 comment
Open

On debian 8, pip install certbot fails #9857

ian-kelling opened this issue Dec 6, 2023 · 1 comment

Comments

@ian-kelling
Copy link

Following instructions here: https://certbot.eff.org/instructions?ws=other&os=pip

# /opt/certbot/bin/pip install certbot certbot
Double requirement given: certbot (already in certbot, name='certbot')
Storing debug log for failure in /root/.pip/pip.log
debbugs:/etc/apt 1 # /opt/certbot/bin/pip install certbot
Downloading/unpacking certbot
  Downloading certbot-2.8.0-py3-none-any.whl (405kB): 405kB downloaded
Downloading/unpacking configobj>=5.0.6 (from certbot)
  Downloading configobj-5.0.8-py2.py3-none-any.whl
Downloading/unpacking parsedatetime>=2.4 (from certbot)
  Downloading parsedatetime-2.6-py3-none-any.whl (42kB): 42kB downloaded
Downloading/unpacking ConfigArgParse>=1.5.3 (from certbot)
  Downloading ConfigArgParse-1.7-py3-none-any.whl
Downloading/unpacking josepy>=1.13.0 (from certbot)
  Downloading josepy-1.14.0-py3-none-any.whl
Downloading/unpacking acme>=2.8.0 (from certbot)
  Downloading acme-2.8.0-py3-none-any.whl (95kB): 95kB downloaded
Downloading/unpacking cryptography>=3.2.1 (from certbot)
  Downloading cryptography-41.0.7.tar.gz (630kB): 630kB downloaded
  Running setup.py (path:/tmp/pip-build-vqufqiwc/cryptography/setup.py) egg_info for package cryptography
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/tmp/pip-build-vqufqiwc/cryptography/setup.py", line 87
        print(f"    Python: {'.'.join(str(v) for v in sys.version_info[:3])}")
                                                                            ^
    SyntaxError: invalid syntax
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/tmp/pip-build-vqufqiwc/cryptography/setup.py", line 87

    print(f"    Python: {'.'.join(str(v) for v in sys.version_info[:3])}")

                                                                        ^

SyntaxError: invalid syntax

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip-build-vqufqiwc/cryptography
Storing debug log for failure in /root/.pip/pip.log

I understand the certbot docs say it may not work. This report may just be useful for other people to find when they have this issue.

@osirisinferi
Copy link
Collaborator

I don't think this is a problem with Certbot, as the error occurs with the installation of the cryptography package. While that package indeed is a dependency of Certbot, the issue you're facing is not something Certbot can fix.

That said, I didn't get any error with installing Certbot using pip just now, but I noticed your pip is using the .tar.gz source file, while my pip was using wheel package. I also did not get the same error when a) running the "invalid syntax" line mentioned in your error message and b) no error when downloading cryptography-41.0.7.tar.gz separately and running python setup.py directly.

So not sure what's going on here (what Python version are you using?), but I don't think this is a problem directly related to Certbot.

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