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

SyntaxError: future feature annotations is not defined when running docker build #1

Open
masadcv opened this issue Aug 20, 2022 · 0 comments

Comments

@masadcv
Copy link

masadcv commented Aug 20, 2022

When trying to build from docker file, I am getting the following error:

Failed to build argon2-cffi-bindings
Installing collected packages: pycparser, cffi, argon2-cffi-bindings
  Running setup.py install for argon2-cffi-bindings: started
    Running setup.py install for argon2-cffi-bindings: finished with status 'error'
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-qermlc8h/argon2-cffi-bindings/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-q4a_pun7-record/install-record.txt --single-version-externally-managed --compile:
    /usr/lib/python3.6/distutils/dist.py:261: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-qermlc8h/argon2-cffi-bindings/setup.py", line 356, in <module>
        **keywords_with_side_effects(sys.argv),
      File "/usr/lib/python3/dist-packages/setuptools/__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "/usr/lib/python3.6/distutils/core.py", line 108, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 372, in __init__
        _Distribution.__init__(self, attrs)
      File "/usr/lib/python3.6/distutils/dist.py", line 281, in __init__
        self.finalize_options()
      File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 528, in finalize_options
        ep.load()(self, ep.name, value)
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2324, in load
        return self.resolve()
      File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 2330, in resolve
        module = __import__(self.module_name, fromlist=['__name__'], level=0)
      File "/tmp/pip-build-qermlc8h/argon2-cffi-bindings/.eggs/setuptools_scm-7.0.5-py3.6.egg/setuptools_scm/__init__.py", line 5
        from __future__ import annotations
        ^
    SyntaxError: future feature annotations is not defined
    
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-qermlc8h/argon2-cffi-bindings/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-q4a_pun7-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-qermlc8h/argon2-cffi-bindings/
The command '/bin/sh -c apt-get update &&    apt-get install -y python3 python3-pip curl vim &&    curl -fsSL 'https://raw.githubusercontent.com/dreal/dreal4/master/setup/ubuntu/18.04/install.sh' | bash &&    rm -rf ./project/venv &&    pip3 install argon2_cffi_bindings==21.1.0 &&    pip3 install -r ./project/requirements.txt' returned a non-zero code: 1

Any idea how I can resolve this error? Many thanks!

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

Successfully merging a pull request may close this issue.

1 participant