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 not build docker image - Flask assets fail with errors #592

Closed
croessner opened this issue Dec 6, 2019 · 1 comment
Closed

Can not build docker image - Flask assets fail with errors #592

croessner opened this issue Dec 6, 2019 · 1 comment

Comments

@croessner
Copy link

Hi,

I try to build a docker image from current master branch, which unfortunately failes with errors:

From within the unpacked source folder I run the following command:

docker build -t powerdns-admin:latest -f docker/Dockerfile .

After a while, messages like these occur:

...
Building wheels for collected packages: Flask-Assets, Flask-Login, SQLAlchemy, mysqlclient, configobj, python-ldap, cssmin, jsmin, Flask-SeaSurf, lima, PyYAML, Flask-SSLify, webassets, alembic, xmlsec, simplejson, msgpack-python, Mako, pycparser, pyrsistent, strict-rfc3339
  Running setup.py bdist_wheel for Flask-Assets: started
  Running setup.py bdist_wheel for Flask-Assets: finished with status 'error'
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-x98mxwsz/Flask-Assets/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmp71jz7wympip-wheel- --python-tag cp35:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Running setup.py clean for Flask-Assets
  Failed building wheel for Flask-Assets
  Running setup.py bdist_wheel for Flask-Login: started
  Running setup.py bdist_wheel for Flask-Login: finished with status 'error'
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-x98mxwsz/Flask-Login/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpg062x8gkpip-wheel- --python-tag cp35:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Running setup.py clean for Flask-Login
  Failed building wheel for Flask-Login
  Running setup.py bdist_wheel for SQLAlchemy: started
  Running setup.py bdist_wheel for SQLAlchemy: finished with status 'error'
  Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-x98mxwsz/SQLAlchemy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpwhsn9i_1pip-wheel- --python-tag cp35:
  /usr/lib/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'project_urls'
    warnings.warn(msg)
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
...

I really would love the docker version again :-)

Thanks for helping and for that great project!

@ngoduykhanh
Copy link
Contributor

Ya, I noticed this issue. Although it doesn't break the docker build process but still better to fix it. Upgrading the pip package solves the issue.

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