Skip to content

pip install gcc related errors #31

@joeflack4

Description

@joeflack4

Description

It seems like OrderedSet is not able to be installed successfully in either my local environment, or the server environment. It looks like this may be because of various kinds of gcc dependency issues.

Server error

Short error
unable to execute 'gcc': No such file or directory

Long error

[docker@ip-172-31-44-92 testEnv]$ python3 -m pip install orderedset
Collecting orderedset
  Downloading https://files.pythonhosted.org/packages/1d/b0/d85c1893d227ed20f2e446e16006aeab7ca698e721f7c607b647894efc63/orderedset-2.0.3.tar.gz (101kB)
    100% |████████████████████████████████| 102kB 4.1MB/s
Installing collected packages: orderedset
  Running setup.py install for orderedset ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xynelq68/orderedset/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-5ct6petu-record/install-record.txt --single-version-externally-managed --compile:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.7
    creating build/lib.linux-x86_64-3.7/orderedset
    copying lib/orderedset/__init__.py -> build/lib.linux-x86_64-3.7/orderedset
    running build_ext
    building 'orderedset._orderedset' extension
    creating build/temp.linux-x86_64-3.7
    creating build/temp.linux-x86_64-3.7/lib
    creating build/temp.linux-x86_64-3.7/lib/orderedset
    gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.7m -c lib/orderedset/_orderedset.c -o build/temp.linux-x86_64-3.7/lib/orderedset/_orderedset.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-xynelq68/orderedset/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-5ct6petu-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-xynelq68/orderedset/
[docker@ip-172-31-44-92 testEnv]$

Local errors (Python 3.9)

Short error
[pipenv.exceptions.InstallError]: /usr/local/Cellar/gcc@6/6.5.0_2/lib/gcc/6/gcc/x86_64-apple-darwin17.7.0/6.5.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory

Long error

pipenv install --dev
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Pipfile.lock (dd1d2d) out of date, updating to (306567)...
Locking [dev-packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✔ Success!
Updated Pipfile.lock (306567)!
Installing dependencies from Pipfile.lock (306567)...
WARNING: Ignoring invalid distribution -dna (/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -dna (/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages)
Collecting pluggy==1.0.0.dev0
  Using cached pluggy-1.0.0.dev0-py2.py3-none-any.whl (17 kB)
Installing collected packages: pluggy
Successfully installed pluggy-1.0.0.dev0
Collecting pytest==6.2.4
  Using cached pytest-6.2.4-py3-none-any.whl (280 kB)
Installing collected packages: pytest
WARNING: Ignoring invalid distribution -ython-dateutil (/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages)
Successfully installed pytest-6.2.4
WARNING: Ignoring invalid distribution -equests (/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -equests (/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages)
Collecting toml==0.10.2
  Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
Installing collected packages: toml
Successfully installed toml-0.10.2
Collecting fastjsonschema==2.15.1
  Using cached fastjsonschema-2.15.1-py3-none-any.whl (21 kB)
Installing collected packages: fastjsonschema
WARNING: Ignoring invalid distribution -astapi (/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages)
Successfully installed fastjsonschema-2.15.1
WARNING: Ignoring invalid distribution -astapi (/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages)
WARNING: Ignoring invalid distribution -astapi (/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages)
Collecting graphviz==0.17
  Using cached graphviz-0.17-py3-none-any.whl (18 kB)
Installing collected packages: graphviz
  Attempting uninstall: graphviz
    WARNING: Ignoring invalid distribution -astapi (/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages)
    Found existing installation: graphviz 0.16
    Uninstalling graphviz-0.16:
      Successfully uninstalled graphviz-0.16
Successfully installed graphviz-0.17
Collecting networkx==2.6rc2▉▉▉▉▉▉▉▉▉▉▉▉ 31/36 — 00:00:01
  Using cached networkx-2.6rc2-py3-none-any.whl (1.9 MB)
Installing collected packages: networkx
WARNING: Ignoring invalid distribution -illow (/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages)
Successfully installed networkx-2.6rc2
An error occurred while installing orderedset==2.0.3 --hash=sha256:b2f5ccfb5a86e7b3b3ddf18b29779cc18b24653abf9d6da4bebecf33780a6e29! Will try again.
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 36/36 — 00:00:24
Installing initially failed dependencies...
[InstallError]:   File "/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages/pipenv/cli/command.py", line 233, in install
[InstallError]:       retcode = do_install(
[InstallError]:   File "/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages/pipenv/core.py", line 2052, in do_install
[InstallError]:       do_init(
[InstallError]:   File "/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages/pipenv/core.py", line 1304, in do_init
[InstallError]:       do_install_dependencies(
[InstallError]:   File "/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages/pipenv/core.py", line 899, in do_install_dependencies
[InstallError]:       batch_install(
[InstallError]:   File "/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages/pipenv/core.py", line 796, in batch_install
[InstallError]:       _cleanup_procs(procs, failed_deps_queue, retry=retry)
[InstallError]:   File "/Users/joeflack4/virtualenvs/ccdh-terminology-service/lib/python3.9/site-packages/pipenv/core.py", line 703, in _cleanup_procs
[InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: Collecting orderedset==2.0.3
[pipenv.exceptions.InstallError]:   Using cached orderedset-2.0.3.tar.gz (101 kB)
[pipenv.exceptions.InstallError]: Building wheels for collected packages: orderedset
[pipenv.exceptions.InstallError]:   Building wheel for orderedset (setup.py): started
[pipenv.exceptions.InstallError]:   Building wheel for orderedset (setup.py): finished with status 'error'
[pipenv.exceptions.InstallError]:   ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]:    command: /Users/joeflack4/virtualenvs/ccdh-terminology-service/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-1kj3xkg_/orderedset_e5f3b1e0909f4546bed29781911ee2e8/setup.py'"'"'; __file__='"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-1kj3xkg_/orderedset_e5f3b1e0909f4546bed29781911ee2e8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-wheel-j9pqof33
[pipenv.exceptions.InstallError]:        cwd: /private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-1kj3xkg_/orderedset_e5f3b1e0909f4546bed29781911ee2e8/
[pipenv.exceptions.InstallError]:   Complete output (25 lines):
[pipenv.exceptions.InstallError]:   running bdist_wheel
[pipenv.exceptions.InstallError]:   The [wheel] section is deprecated. Use [bdist_wheel] instead.
[pipenv.exceptions.InstallError]:   running build
[pipenv.exceptions.InstallError]:   running build_py
[pipenv.exceptions.InstallError]:   creating build
[pipenv.exceptions.InstallError]:   creating build/lib.macosx-10.9-x86_64-3.9
[pipenv.exceptions.InstallError]:   creating build/lib.macosx-10.9-x86_64-3.9/orderedset
[pipenv.exceptions.InstallError]:   copying lib/orderedset/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/orderedset
[pipenv.exceptions.InstallError]:   warning: build_py: byte-compiling is disabled, skipping.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:   running build_ext
[pipenv.exceptions.InstallError]:   building 'orderedset._orderedset' extension
[pipenv.exceptions.InstallError]:   creating build/temp.macosx-10.9-x86_64-3.9
[pipenv.exceptions.InstallError]:   creating build/temp.macosx-10.9-x86_64-3.9/lib
[pipenv.exceptions.InstallError]:   creating build/temp.macosx-10.9-x86_64-3.9/lib/orderedset
[pipenv.exceptions.InstallError]:   /usr/local/bin/gcc-6 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Users/joeflack4/virtualenvs/ccdh-terminology-service/include -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c lib/orderedset/_orderedset.c -o build/temp.macosx-10.9-x86_64-3.9/lib/orderedset/_orderedset.o
[pipenv.exceptions.InstallError]:   In file included from /usr/local/Cellar/gcc@6/6.5.0_2/lib/gcc/6/gcc/x86_64-apple-darwin17.7.0/6.5.0/include-fixed/syslimits.h:7:0,
[pipenv.exceptions.InstallError]:                    from /usr/local/Cellar/gcc@6/6.5.0_2/lib/gcc/6/gcc/x86_64-apple-darwin17.7.0/6.5.0/include-fixed/limits.h:34,
[pipenv.exceptions.InstallError]:                    from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:11,
[pipenv.exceptions.InstallError]:                    from lib/orderedset/_orderedset.c:17:
[pipenv.exceptions.InstallError]:   /usr/local/Cellar/gcc@6/6.5.0_2/lib/gcc/6/gcc/x86_64-apple-darwin17.7.0/6.5.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
[pipenv.exceptions.InstallError]:    #include_next <limits.h>  /* recurse down to the real one */
[pipenv.exceptions.InstallError]:                                                                ^
[pipenv.exceptions.InstallError]:   compilation terminated.
[pipenv.exceptions.InstallError]:   error: command '/usr/local/bin/gcc-6' failed with exit code 1
[pipenv.exceptions.InstallError]:   ----------------------------------------
[pipenv.exceptions.InstallError]:   ERROR: Failed building wheel for orderedset
[pipenv.exceptions.InstallError]:   Running setup.py clean for orderedset
[pipenv.exceptions.InstallError]: Failed to build orderedset
[pipenv.exceptions.InstallError]: Installing collected packages: orderedset
[pipenv.exceptions.InstallError]:     Running setup.py install for orderedset: started
[pipenv.exceptions.InstallError]:     Running setup.py install for orderedset: finished with status 'error'
[pipenv.exceptions.InstallError]:     ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]:      command: /Users/joeflack4/virtualenvs/ccdh-terminology-service/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-1kj3xkg_/orderedset_e5f3b1e0909f4546bed29781911ee2e8/setup.py'"'"'; __file__='"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-1kj3xkg_/orderedset_e5f3b1e0909f4546bed29781911ee2e8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-record-v1356qvt/install-record.txt --single-version-externally-managed --compile --install-headers /Users/joeflack4/virtualenvs/ccdh-terminology-service/include/site/python3.9/orderedset
[pipenv.exceptions.InstallError]:          cwd: /private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-1kj3xkg_/orderedset_e5f3b1e0909f4546bed29781911ee2e8/
[pipenv.exceptions.InstallError]:     Complete output (24 lines):
[pipenv.exceptions.InstallError]:     running install
[pipenv.exceptions.InstallError]:     running build
[pipenv.exceptions.InstallError]:     running build_py
[pipenv.exceptions.InstallError]:     creating build
[pipenv.exceptions.InstallError]:     creating build/lib.macosx-10.9-x86_64-3.9
[pipenv.exceptions.InstallError]:     creating build/lib.macosx-10.9-x86_64-3.9/orderedset
[pipenv.exceptions.InstallError]:     copying lib/orderedset/__init__.py -> build/lib.macosx-10.9-x86_64-3.9/orderedset
[pipenv.exceptions.InstallError]:     warning: build_py: byte-compiling is disabled, skipping.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:     running build_ext
[pipenv.exceptions.InstallError]:     building 'orderedset._orderedset' extension
[pipenv.exceptions.InstallError]:     creating build/temp.macosx-10.9-x86_64-3.9
[pipenv.exceptions.InstallError]:     creating build/temp.macosx-10.9-x86_64-3.9/lib
[pipenv.exceptions.InstallError]:     creating build/temp.macosx-10.9-x86_64-3.9/lib/orderedset
[pipenv.exceptions.InstallError]:     /usr/local/bin/gcc-6 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/Users/joeflack4/virtualenvs/ccdh-terminology-service/include -I/Library/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c lib/orderedset/_orderedset.c -o build/temp.macosx-10.9-x86_64-3.9/lib/orderedset/_orderedset.o
[pipenv.exceptions.InstallError]:     In file included from /usr/local/Cellar/gcc@6/6.5.0_2/lib/gcc/6/gcc/x86_64-apple-darwin17.7.0/6.5.0/include-fixed/syslimits.h:7:0,
[pipenv.exceptions.InstallError]:                      from /usr/local/Cellar/gcc@6/6.5.0_2/lib/gcc/6/gcc/x86_64-apple-darwin17.7.0/6.5.0/include-fixed/limits.h:34,
[pipenv.exceptions.InstallError]:                      from /Library/Frameworks/Python.framework/Versions/3.9/include/python3.9/Python.h:11,
[pipenv.exceptions.InstallError]:                      from lib/orderedset/_orderedset.c:17:
[pipenv.exceptions.InstallError]:     /usr/local/Cellar/gcc@6/6.5.0_2/lib/gcc/6/gcc/x86_64-apple-darwin17.7.0/6.5.0/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
[pipenv.exceptions.InstallError]:      #include_next <limits.h>  /* recurse down to the real one */
[pipenv.exceptions.InstallError]:                                                                  ^
[pipenv.exceptions.InstallError]:     compilation terminated.
[pipenv.exceptions.InstallError]:     error: command '/usr/local/bin/gcc-6' failed with exit code 1
[pipenv.exceptions.InstallError]:     ----------------------------------------
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1: /Users/joeflack4/virtualenvs/ccdh-terminology-service/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-1kj3xkg_/orderedset_e5f3b1e0909f4546bed29781911ee2e8/setup.py'"'"'; __file__='"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-1kj3xkg_/orderedset_e5f3b1e0909f4546bed29781911ee2e8/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-record-v1356qvt/install-record.txt --single-version-externally-managed --compile --install-headers /Users/joeflack4/virtualenvs/ccdh-terminology-service/include/site/python3.9/orderedset Check the logs for full command output.
ERROR: Couldn't install package: orderedset
 Package installation failed...

Local errors (Python 3.8.10)

Short error
[pipenv.exceptions.InstallError]: gcc-6: error: this compiler does not support arm64

Long error

(ccdh-terminology-service-3.8) pipenv sync
Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Installing dependencies from Pipfile.lock (dd1d2d)...
An error occurred while installing orderedset==2.0.3 --hash=sha256:b2f5ccfb5a86e7b3b3ddf18b29779cc18b24653abf9d6da4bebecf33780a6e29! Will try again.
An error occurred while installing -e git+ssh://git@github.com/HOT-Ecosystem/tccm-api.git@f1f6814d4b13c96f087d979c53c7793d497bc142#egg=tccm-api! Will try again.
An error occurred while installing -e git+ssh://git@github.com/HOT-Ecosystem/tccm-model.git@45fd80f702e27f778f0a2612624b168efacf1ad7#egg=tccm-model! Will try again.
  🐍   ▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉▉ 113/113 — 00:01:08
Installing initially failed dependencies...
[InstallError]:   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pipenv/cli/command.py", line 696, in sync
[InstallError]:       system=state.system
[InstallError]:   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pipenv/core.py", line 2892, in do_sync
[InstallError]:       system=system,
[InstallError]:   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pipenv/core.py", line 1312, in do_init
[InstallError]:       pypi_mirror=pypi_mirror,
[InstallError]:   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pipenv/core.py", line 900, in do_install_dependencies
[InstallError]:       retry_list, procs, failed_deps_queue, requirements_dir, **install_kwargs
[InstallError]:   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pipenv/core.py", line 796, in batch_install
[InstallError]:       _cleanup_procs(procs, failed_deps_queue, retry=retry)
[InstallError]:   File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/pipenv/core.py", line 703, in _cleanup_procs
[InstallError]:       raise exceptions.InstallError(c.dep.name, extra=err_lines)
[pipenv.exceptions.InstallError]: Collecting orderedset==2.0.3
[pipenv.exceptions.InstallError]:   Using cached orderedset-2.0.3.tar.gz (101 kB)
[pipenv.exceptions.InstallError]: Building wheels for collected packages: orderedset
[pipenv.exceptions.InstallError]:   Building wheel for orderedset (setup.py): started
[pipenv.exceptions.InstallError]:   Building wheel for orderedset (setup.py): finished with status 'error'
[pipenv.exceptions.InstallError]:   ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]:    command: /Users/joeflack4/virtualenvs/ccdh-terminology-service-3.8/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-3z8wx78x/orderedset_e9d54768e2504e649876c996c1a73597/setup.py'"'"'; __file__='"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-3z8wx78x/orderedset_e9d54768e2504e649876c996c1a73597/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-wheel-9mnlfoak
[pipenv.exceptions.InstallError]:        cwd: /private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-3z8wx78x/orderedset_e9d54768e2504e649876c996c1a73597/
[pipenv.exceptions.InstallError]:   Complete output (18 lines):
[pipenv.exceptions.InstallError]:   running bdist_wheel
[pipenv.exceptions.InstallError]:   The [wheel] section is deprecated. Use [bdist_wheel] instead.
[pipenv.exceptions.InstallError]:   running build
[pipenv.exceptions.InstallError]:   running build_py
[pipenv.exceptions.InstallError]:   creating build
[pipenv.exceptions.InstallError]:   creating build/lib.macosx-11-universal2-3.8
[pipenv.exceptions.InstallError]:   creating build/lib.macosx-11-universal2-3.8/orderedset
[pipenv.exceptions.InstallError]:   copying lib/orderedset/__init__.py -> build/lib.macosx-11-universal2-3.8/orderedset
[pipenv.exceptions.InstallError]:   warning: build_py: byte-compiling is disabled, skipping.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:   running build_ext
[pipenv.exceptions.InstallError]:   building 'orderedset._orderedset' extension
[pipenv.exceptions.InstallError]:   creating build/temp.macosx-11-universal2-3.8
[pipenv.exceptions.InstallError]:   creating build/temp.macosx-11-universal2-3.8/lib
[pipenv.exceptions.InstallError]:   creating build/temp.macosx-11-universal2-3.8/lib/orderedset
[pipenv.exceptions.InstallError]:   /usr/local/bin/gcc-6 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/joeflack4/virtualenvs/ccdh-terminology-service-3.8/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c lib/orderedset/_orderedset.c -o build/temp.macosx-11-universal2-3.8/lib/orderedset/_orderedset.o
[pipenv.exceptions.InstallError]:   gcc-6: error: this compiler does not support arm64
[pipenv.exceptions.InstallError]:   error: command '/usr/local/bin/gcc-6' failed with exit status 1
[pipenv.exceptions.InstallError]:   ----------------------------------------
[pipenv.exceptions.InstallError]:   ERROR: Failed building wheel for orderedset
[pipenv.exceptions.InstallError]:   Running setup.py clean for orderedset
[pipenv.exceptions.InstallError]: Failed to build orderedset
[pipenv.exceptions.InstallError]: Installing collected packages: orderedset
[pipenv.exceptions.InstallError]:     Running setup.py install for orderedset: started
[pipenv.exceptions.InstallError]:     Running setup.py install for orderedset: finished with status 'error'
[pipenv.exceptions.InstallError]:     ERROR: Command errored out with exit status 1:
[pipenv.exceptions.InstallError]:      command: /Users/joeflack4/virtualenvs/ccdh-terminology-service-3.8/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-3z8wx78x/orderedset_e9d54768e2504e649876c996c1a73597/setup.py'"'"'; __file__='"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-3z8wx78x/orderedset_e9d54768e2504e649876c996c1a73597/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-record-l4xz0zag/install-record.txt --single-version-externally-managed --compile --install-headers /Users/joeflack4/virtualenvs/ccdh-terminology-service-3.8/include/site/python3.8/orderedset
[pipenv.exceptions.InstallError]:          cwd: /private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-3z8wx78x/orderedset_e9d54768e2504e649876c996c1a73597/
[pipenv.exceptions.InstallError]:     Complete output (17 lines):
[pipenv.exceptions.InstallError]:     running install
[pipenv.exceptions.InstallError]:     running build
[pipenv.exceptions.InstallError]:     running build_py
[pipenv.exceptions.InstallError]:     creating build
[pipenv.exceptions.InstallError]:     creating build/lib.macosx-11-universal2-3.8
[pipenv.exceptions.InstallError]:     creating build/lib.macosx-11-universal2-3.8/orderedset
[pipenv.exceptions.InstallError]:     copying lib/orderedset/__init__.py -> build/lib.macosx-11-universal2-3.8/orderedset
[pipenv.exceptions.InstallError]:     warning: build_py: byte-compiling is disabled, skipping.
[pipenv.exceptions.InstallError]:
[pipenv.exceptions.InstallError]:     running build_ext
[pipenv.exceptions.InstallError]:     building 'orderedset._orderedset' extension
[pipenv.exceptions.InstallError]:     creating build/temp.macosx-11-universal2-3.8
[pipenv.exceptions.InstallError]:     creating build/temp.macosx-11-universal2-3.8/lib
[pipenv.exceptions.InstallError]:     creating build/temp.macosx-11-universal2-3.8/lib/orderedset
[pipenv.exceptions.InstallError]:     /usr/local/bin/gcc-6 -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch arm64 -arch x86_64 -g -I/Users/joeflack4/virtualenvs/ccdh-terminology-service-3.8/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c lib/orderedset/_orderedset.c -o build/temp.macosx-11-universal2-3.8/lib/orderedset/_orderedset.o
[pipenv.exceptions.InstallError]:     gcc-6: error: this compiler does not support arm64
[pipenv.exceptions.InstallError]:     error: command '/usr/local/bin/gcc-6' failed with exit status 1
[pipenv.exceptions.InstallError]:     ----------------------------------------
[pipenv.exceptions.InstallError]: ERROR: Command errored out with exit status 1: /Users/joeflack4/virtualenvs/ccdh-terminology-service-3.8/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-3z8wx78x/orderedset_e9d54768e2504e649876c996c1a73597/setup.py'"'"'; __file__='"'"'/private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-install-3z8wx78x/orderedset_e9d54768e2504e649876c996c1a73597/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/_0/hsvm3gjx1q7br2grg3gx901c0000gn/T/pip-record-l4xz0zag/install-record.txt --single-version-externally-managed --compile --install-headers /Users/joeflack4/virtualenvs/ccdh-terminology-service-3.8/include/site/python3.8/orderedset Check the logs for full command output.
ERROR: Couldn't install package: orderedset
 Package installation failed...

Things I've tried

  1. Trying to install directly from the pipenv lockfile using version 2.0.3.
  2. Tried local environment using both python 3.8 and 3.9.

Ideas

Idea 1: Post a GH issue on OrderedSet repo

I could post a GitHub issue and have them take a look at it.

I'm not sure, but this may be related to similar C compiler related issues previously fixed: #27

It may just be that they have rigid requirements for GCC setup. But hopefully this is something that they can maintain/fix, as opposed to anyone who wants to use this dependency.

Issue mirrors

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions