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

fix(docker): add gcc installation in order to build psutil #5059

Merged
merged 2 commits into from
Aug 24, 2023
Merged

fix(docker): add gcc installation in order to build psutil #5059

merged 2 commits into from
Aug 24, 2023

Conversation

alexsoyes
Copy link
Contributor

Add gcc installation in Dockerfile in order to make psutil work!

42.44   error: subprocess-exited-with-error
42.44
42.44   × Building wheel for psutil (pyproject.toml) did not run successfully.
42.44   │ exit code: 1
42.44   ╰─> [45 lines of output]
42.44       running bdist_wheel
42.44       running build
42.44       running build_py
42.44       creating build
42.44       creating build/lib.linux-aarch64-cpython-310
42.44       creating build/lib.linux-aarch64-cpython-310/psutil
42.44       copying psutil/_psposix.py -> build/lib.linux-aarch64-cpython-310/psutil
42.44       copying psutil/_psaix.py -> build/lib.linux-aarch64-cpython-310/psutil
42.44       copying psutil/__init__.py -> build/lib.linux-aarch64-cpython-310/psutil
42.44       copying psutil/_psbsd.py -> build/lib.linux-aarch64-cpython-310/psutil
42.44       copying psutil/_pssunos.py -> build/lib.linux-aarch64-cpython-310/psutil
42.44       copying psutil/_compat.py -> build/lib.linux-aarch64-cpython-310/psutil
42.44       copying psutil/_pslinux.py -> build/lib.linux-aarch64-cpython-310/psutil
42.44       copying psutil/_common.py -> build/lib.linux-aarch64-cpython-310/psutil
42.44       copying psutil/_pswindows.py -> build/lib.linux-aarch64-cpython-310/psutil
42.44       copying psutil/_psosx.py -> build/lib.linux-aarch64-cpython-310/psutil
42.44       creating build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_osx.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_connections.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/__init__.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_aix.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_system.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_posix.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_contracts.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_bsd.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_linux.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_memleaks.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_testutils.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_misc.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/runner.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_unicode.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_process.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/__main__.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_windows.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       copying psutil/tests/test_sunos.py -> build/lib.linux-aarch64-cpython-310/psutil/tests
42.44       warning: build_py: byte-compiling is disabled, skipping.
42.44
42.44       running build_ext
42.44       building 'psutil._psutil_linux' extension
42.44       creating build/temp.linux-aarch64-cpython-310
42.44       creating build/temp.linux-aarch64-cpython-310/psutil
42.44       gcc -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -DPSUTIL_POSIX=1 -DPSUTIL_SIZEOF_PID_T=4 -DPSUTIL_VERSION=595 -DPy_LIMITED_API=0x03060000 -DPSUTIL_ETHTOOL_MISSING_TYPES=1 -DPSUTIL_LINUX=1 -I/usr/local/include/python3.10 -c psutil/_psutil_common.c -o build/temp.linux-aarch64-cpython-310/psutil/_psutil_common.o
42.44       psutil could not be installed from sources because gcc is not installed. Try running:
42.44         sudo apt-get install gcc python3-dev
42.44       error: command 'gcc' failed: No such file or directory
42.44       [end of output]
42.44
42.44   note: This error originates from a subprocess, and is likely not a problem with pip.
42.44   ERROR: Failed building wheel for psutil
42.44 Successfully built python-docx pylatexenc auto-gpt-plugin-template vcrpy
42.44 Failed to build psutil
42.44 ERROR: Could not build wheels for psutil, which is required to install pyproject.toml-based projects
42.60
42.60 [notice] A new release of pip is available: 23.0.1 -> 23.2.1
42.60 [notice] To update, run: pip install --upgrade pip
------
failed to solve: process "/bin/sh -c pip install --no-cache-dir -r requirements.txt" did not complete successfully: exit code: 1

@netlify
Copy link

netlify bot commented Jul 26, 2023

Deploy Preview for auto-gpt-docs canceled.

Name Link
🔨 Latest commit b2f1350
🔍 Latest deploy log https://app.netlify.com/sites/auto-gpt-docs/deploys/64e7b8c0b81ab10008c6d83f

@codecov
Copy link

codecov bot commented Jul 26, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.39% 🎉

Comparison is base (efe9278) 50.78% compared to head (a0f60f4) 51.17%.
Report is 1 commits behind head on master.

❗ Current head a0f60f4 differs from pull request most recent head b2f1350. Consider uploading reports for the commit b2f1350 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5059      +/-   ##
==========================================
+ Coverage   50.78%   51.17%   +0.39%     
==========================================
  Files         128      116      -12     
  Lines        5502     4934     -568     
  Branches      755      663      -92     
==========================================
- Hits         2794     2525     -269     
+ Misses       2496     2215     -281     
+ Partials      212      194      -18     

see 68 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@lunarthegrey
Copy link

Have the same issue. If it gets updated with the base branch will this get merged?

@alvaromat
Copy link

Having the same issue on mac. This change fixed it.

@Pwuts Pwuts added this to the v0.4.8 milestone Aug 24, 2023
@Pwuts Pwuts self-assigned this Aug 24, 2023
@Pwuts Pwuts merged commit 3be3879 into Significant-Gravitas:master Aug 24, 2023
@Pwuts
Copy link
Member

Pwuts commented Aug 24, 2023

Thank you! :)

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

Successfully merging this pull request may close these issues.

4 participants