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

remove gcc from dockerfile #8

Open
glimchb opened this issue Feb 19, 2023 · 0 comments
Open

remove gcc from dockerfile #8

glimchb opened this issue Feb 19, 2023 · 0 comments

Comments

@glimchb
Copy link
Member

glimchb commented Feb 19, 2023

without gcc fails on

Building wheels for collected packages: pysqlite3
  Building wheel for pysqlite3 (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [15 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/pysqlite3
      copying pysqlite3/__init__.py -> build/lib.linux-x86_64-cpython-311/pysqlite3
      copying pysqlite3/dbapi2.py -> build/lib.linux-x86_64-cpython-311/pysqlite3
      running build_ext
      Builds a C extension linking against libsqlite3 library
      building 'pysqlite3._sqlite3' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/src
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMODULE_NAME=\"pysqlite3.dbapi2\" -I/usr/include -I/usr/local/include/python3.11 -c src/blob.c -o build/temp.linux-x86_64-cpython-311/src/blob.o
      error: command 'gcc' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pysqlite3
  Running setup.py clean for pysqlite3
Failed to build pysqlite3
Installing collected packages: pysqlite3, pyasn1, pem, passlib, charset-normalizer, basicauth, asn1crypto, yangson, urllib3, typing-extensions, six, pycparser, pyasn1-modules, oscrypto, multidict, idna, greenlet, frozenlist, fifolock, certifi, attrs, async-timeout, yarl, sqlalchemy, requests, cffi, certvalidator, aiosignal, sqlalchemy-utils, cryptography, aiohttp, sztpd
  Running setup.py install for pysqlite3 ... error
  error: subprocess-exited-with-error

  × Running setup.py install for pysqlite3 did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      running install
      /usr/local/lib/python3.11/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
        warnings.warn(
      running build
      running build_py
      creating build
      creating build/lib.linux-x86_64-cpython-311
      creating build/lib.linux-x86_64-cpython-311/pysqlite3
      copying pysqlite3/__init__.py -> build/lib.linux-x86_64-cpython-311/pysqlite3
      copying pysqlite3/dbapi2.py -> build/lib.linux-x86_64-cpython-311/pysqlite3
      running build_ext
      Builds a C extension linking against libsqlite3 library
      building 'pysqlite3._sqlite3' extension
      creating build/temp.linux-x86_64-cpython-311
      creating build/temp.linux-x86_64-cpython-311/src
      gcc -pthread -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DMODULE_NAME=\"pysqlite3.dbapi2\" -I/usr/include -I/usr/local/include/python3.11 -c src/blob.c -o build/temp.linux-x86_64-cpython-311/src/blob.o
      error: command 'gcc' failed: No such file or directory
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> pysqlite3

but check out https://pypi.org/project/pysqlite3-wheels/ or https://pypi.org/project/pysqlite3-binary/
maybe no need for gcc any more since we don't have to build wheels

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

1 participant