install failed 3.8.2
mac Catalina 10.15.6 pip install --upgrade --no-cache accumulation-tree
Possibly related to: https://cmichel.io/fixing-cpp-compilation-bugs-for-the-mac-os-catalina-upgrade/
ERROR: Command errored out with exit status 1:
command: /Users/petercotton/virtual-envs/rediz/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g2/6p5lz9hn36vbnv165bk7yj7r0000gn/T/pip-install-40gbkare/accumulation-tree_d19174c82d2d4d04b65826db3569fbc1/setup.py'"'"'; __file__='"'"'/private/var/folders/g2/6p5lz9hn36vbnv165bk7yj7r0000gn/T/pip-install-40gbkare/accumulation-tree_d19174c82d2d4d04b65826db3569fbc1/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/g2/6p5lz9hn36vbnv165bk7yj7r0000gn/T/pip-record-ll6u0es9/install-record.txt --single-version-externally-managed --compile --install-headers /Users/petercotton/virtual-envs/rediz/include/site/python3.8/accumulation-tree
cwd: /private/var/folders/g2/6p5lz9hn36vbnv165bk7yj7r0000gn/T/pip-install-40gbkare/accumulation-tree_d19174c82d2d4d04b65826db3569fbc1/
Complete output (114 lines):
running install
running build
running build_py
creating build
creating build/lib.macosx-10.14.6-x86_64-3.8
creating build/lib.macosx-10.14.6-x86_64-3.8/accumulation_tree
copying accumulation_tree/treeslice.py -> build/lib.macosx-10.14.6-x86_64-3.8/accumulation_tree
copying accumulation_tree/__init__.py -> build/lib.macosx-10.14.6-x86_64-3.8/accumulation_tree
copying accumulation_tree/abctree.py -> build/lib.macosx-10.14.6-x86_64-3.8/accumulation_tree
running build_ext
skipping 'accumulation_tree/accumulation_tree.c' Cython extension (up-to-date)
building 'accumulation_tree.accumulation_tree' extension
creating build/temp.macosx-10.14.6-x86_64-3.8
creating build/temp.macosx-10.14.6-x86_64-3.8/accumulation_tree
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -iwithsysroot/System/Library/Frameworks/System.framework/PrivateHeaders -iwithsysroot/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/Headers -arch arm64 -arch x86_64 -I/usr/local/opt/[email protected]/include -I/Users/petercotton/virtual-envs/rediz/include -I/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8 -c accumulation_tree/accumulation_tree.c -o build/temp.macosx-10.14.6-x86_64-3.8/accumulation_tree/accumulation_tree.o
In file included from accumulation_tree/accumulation_tree.c:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/limits.h:63:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/cdefs.h:807:2: error: Unsupported architecture
#error Unsupported architecture
^
In file included from accumulation_tree/accumulation_tree.c:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:11:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/limits.h:21:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/limits.h:64:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/limits.h:8:2: error: architecture not supported
#error architecture not supported
^
In file included from accumulation_tree/accumulation_tree.c:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:33:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/_types.h:34:2: error: architecture not supported
#error architecture not supported
^
In file included from accumulation_tree/accumulation_tree.c:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:27:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:55:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_blkcnt_t; /* total blocks */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:56:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_blksize_t; /* preferred block size */
^
note: '__int128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:57:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_dev_t; /* dev_t */
^
note: '__int128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:60:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_gid_t; /* [???] process and group IDs */
^
note: '__uint128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:61:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_id_t; /* [XSI] pid_t, uid_t, or gid_t*/
^
note: '__uint128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:62:9: error: unknown type name '__uint64_t'
typedef __uint64_t __darwin_ino64_t; /* [???] Used for 64 bit inodes */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:68:9: error: unknown type name '__darwin_natural_t'
typedef __darwin_natural_t __darwin_mach_port_name_t; /* Used by mach */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:70:9: error: unknown type name '__uint16_t'; did you mean '__uint128_t'?
typedef __uint16_t __darwin_mode_t; /* [???] Some file attributes */
^
note: '__uint128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:71:9: error: unknown type name '__int64_t'
typedef __int64_t __darwin_off_t; /* [???] Used for file sizes */
^
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:72:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_pid_t; /* [???] process and group IDs */
^
note: '__int128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:73:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_sigset_t; /* [???] signal set */
^
note: '__uint128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:74:9: error: unknown type name '__int32_t'; did you mean '__int128_t'?
typedef __int32_t __darwin_suseconds_t; /* [???] microseconds */
^
note: '__int128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:75:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_uid_t; /* [???] user IDs */
^
note: '__uint128_t' declared here
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types.h:76:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_useconds_t; /* [???] microseconds */
^
note: '__uint128_t' declared here
In file included from accumulation_tree/accumulation_tree.c:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:71:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_types.h:43:9: error: unknown type name '__uint32_t'; did you mean '__uint128_t'?
typedef __uint32_t __darwin_wctype_t;
^
note: '__uint128_t' declared here
In file included from accumulation_tree/accumulation_tree.c:16:
In file included from /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/include/python3.8/Python.h:25:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/stdio.h:64:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/_stdio.h:75:
In file included from /Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/sys/_types/_va_list.h:31:
/Library/Developer/CommandLineTools/SDKs/MacOSX10.15.sdk/usr/include/machine/types.h:37:2: error: architecture not supported
#error architecture not supported
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
error: command 'clang' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/petercotton/virtual-envs/rediz/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/g2/6p5lz9hn36vbnv165bk7yj7r0000gn/T/pip-install-40gbkare/accumulation-tree_d19174c82d2d4d04b65826db3569fbc1/setup.py'"'"'; __file__='"'"'/private/var/folders/g2/6p5lz9hn36vbnv165bk7yj7r0000gn/T/pip-install-40gbkare/accumulation-tree_d19174c82d2d4d04b65826db3569fbc1/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/g2/6p5lz9hn36vbnv165bk7yj7r0000gn/T/pip-record-ll6u0es9/install-record.txt --single-version-externally-managed --compile --install-headers /Users/petercotton/virtual-envs/rediz/include/site/python3.8/accumulation-tree Check the logs for full command output.
Thanks for reporting @microprediction ! From
#error architecture not supported
am I right in assuming that this is on a Mac M1?
Actually, that's on the older Intel Core i3 on a mac mini. I do have an M1 I can test with if it helps.
Hello @tkluck,
Here is my install error on a Mac M1. Any solution or work around would be greatly appreciated.
Building wheels for collected packages: accumulation-tree
Building wheel for accumulation-tree (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [85 lines of output]
/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-11-x86_64-cpython-39
creating build/lib.macosx-11-x86_64-cpython-39/accumulation_tree
copying accumulation_tree/treeslice.py -> build/lib.macosx-11-x86_64-cpython-39/accumulation_tree
copying accumulation_tree/__init__.py -> build/lib.macosx-11-x86_64-cpython-39/accumulation_tree
copying accumulation_tree/abctree.py -> build/lib.macosx-11-x86_64-cpython-39/accumulation_tree
running build_ext
cythoning accumulation_tree/accumulation_tree.pyx to accumulation_tree/accumulation_tree.c
/private/var/folders/_m/d1xb29993hj1zlp611q4z9080000gn/T/pip-install-rupb2p1t/accumulation-tree_2ba2ec1bb77a420db05a415a886ba4ac/.eggs/Cython-0.29.30-py3.9.egg/Cython/Compiler/Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /private/var/folders/_m/d1xb29993hj1zlp611q4z9080000gn/T/pip-install-rupb2p1t/accumulation-tree_2ba2ec1bb77a420db05a415a886ba4ac/accumulation_tree/accumulation_tree.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
building 'accumulation_tree.accumulation_tree' extension
creating build/temp.macosx-11-x86_64-cpython-39
creating build/temp.macosx-11-x86_64-cpython-39/accumulation_tree
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Users/kj/Documents/GitHub/atom/env/include -I/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c accumulation_tree/accumulation_tree.c -o build/temp.macosx-11-x86_64-cpython-39/accumulation_tree/accumulation_tree.o
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/_m/d1xb29993hj1zlp611q4z9080000gn/T/pip-install-rupb2p1t/accumulation-tree_2ba2ec1bb77a420db05a415a886ba4ac/setup.py", line 4, in <module>
setup(
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 177, in setup
return run_commands(dist)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
dist.run_commands()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/command/build.py", line 24, in run
super().run()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/private/var/folders/_m/d1xb29993hj1zlp611q4z9080000gn/T/pip-install-rupb2p1t/accumulation-tree_2ba2ec1bb77a420db05a415a886ba4ac/.eggs/Cython-0.29.30-py3.9.egg/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/private/var/folders/_m/d1xb29993hj1zlp611q4z9080000gn/T/pip-install-rupb2p1t/accumulation-tree_2ba2ec1bb77a420db05a415a886ba4ac/.eggs/Cython-0.29.30-py3.9.egg/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 459, in build_extensions
self._build_extensions_serial()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 485, in _build_extensions_serial
self.build_extension(ext)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 540, in build_extension
objects = self.compiler.compile(
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 591, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/unixccompiler.py", line 178, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 980, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/spawn.py", line 57, in spawn
proc = subprocess.Popen(cmd, env=env)
File "/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1739, in _execute_child
env_list.append(k + b'=' + os.fsencode(v))
File "/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 810, in fsencode
filename = fspath(filename) # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not int
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for accumulation-tree
Running setup.py clean for accumulation-tree
Failed to build accumulation-tree
Installing collected packages: accumulation-tree, urllib3, tqdm, threadpoolctl, tdigest, six, pyparsing, pymorton, pillow, ordered-set, numpy, networkx, muid, kiwisolver, joblib, idna, future, fonttools, cycler, contextlib2, cloudpickle, charset-normalizer, certifi, backoff, scipy, schema, requests, python-dateutil, patsy, packaging, deepdiff, scikit-learn, pycoingecko, pandas, matplotlib, hyperopt, getjson, statsmodels, microconventions, copulas, microprediction
Running setup.py install for accumulation-tree ... error
error: subprocess-exited-with-error
× Running setup.py install for accumulation-tree did not run successfully.
│ exit code: 1
╰─> [87 lines of output]
/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
warnings.warn(
running install
/Users/kj/Documents/GitHub/atom/env/lib/python3.9/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.macosx-11-x86_64-cpython-39
creating build/lib.macosx-11-x86_64-cpython-39/accumulation_tree
copying accumulation_tree/treeslice.py -> build/lib.macosx-11-x86_64-cpython-39/accumulation_tree
copying accumulation_tree/__init__.py -> build/lib.macosx-11-x86_64-cpython-39/accumulation_tree
copying accumulation_tree/abctree.py -> build/lib.macosx-11-x86_64-cpython-39/accumulation_tree
running build_ext
skipping 'accumulation_tree/accumulation_tree.c' Cython extension (up-to-date)
building 'accumulation_tree.accumulation_tree' extension
creating build/temp.macosx-11-x86_64-cpython-39
creating build/temp.macosx-11-x86_64-cpython-39/accumulation_tree
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -I/usr/local/include -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -I/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include -I/Users/kj/Documents/GitHub/atom/env/include -I/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/include/python3.9 -c accumulation_tree/accumulation_tree.c -o build/temp.macosx-11-x86_64-cpython-39/accumulation_tree/accumulation_tree.o
Traceback (most recent call last):
File "<string>", line 2, in <module>
File "<pip-setuptools-caller>", line 34, in <module>
File "/private/var/folders/_m/d1xb29993hj1zlp611q4z9080000gn/T/pip-install-rupb2p1t/accumulation-tree_2ba2ec1bb77a420db05a415a886ba4ac/setup.py", line 4, in <module>
setup(
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 177, in setup
return run_commands(dist)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 193, in run_commands
dist.run_commands()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 968, in run_commands
self.run_command(cmd)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/command/install.py", line 68, in run
return orig.install.run(self)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/command/install.py", line 695, in run
self.run_command('build')
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/command/build.py", line 24, in run
super().run()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run
self.run_command(cmd_name)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 317, in run_command
self.distribution.run_command(command)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/dist.py", line 1217, in run_command
super().run_command(command)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
cmd_obj.run()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 79, in run
_build_ext.run(self)
File "/private/var/folders/_m/d1xb29993hj1zlp611q4z9080000gn/T/pip-install-rupb2p1t/accumulation-tree_2ba2ec1bb77a420db05a415a886ba4ac/.eggs/Cython-0.29.30-py3.9.egg/Cython/Distutils/old_build_ext.py", line 186, in run
_build_ext.build_ext.run(self)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 339, in run
self.build_extensions()
File "/private/var/folders/_m/d1xb29993hj1zlp611q4z9080000gn/T/pip-install-rupb2p1t/accumulation-tree_2ba2ec1bb77a420db05a415a886ba4ac/.eggs/Cython-0.29.30-py3.9.egg/Cython/Distutils/old_build_ext.py", line 195, in build_extensions
_build_ext.build_ext.build_extensions(self)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 459, in build_extensions
self._build_extensions_serial()
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 485, in _build_extensions_serial
self.build_extension(ext)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/command/build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/command/build_ext.py", line 540, in build_extension
objects = self.compiler.compile(
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 591, in compile
self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/unixccompiler.py", line 178, in _compile
self.spawn(compiler_so + cc_args + [src, '-o', obj] + extra_postargs)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 980, in spawn
spawn(cmd, dry_run=self.dry_run, **kwargs)
File "/Users/kj/Documents/GitHub/atom/env/lib/python3.9/site-packages/setuptools/_distutils/spawn.py", line 57, in spawn
proc = subprocess.Popen(cmd, env=env)
File "/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 947, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/subprocess.py", line 1739, in _execute_child
env_list.append(k + b'=' + os.fsencode(v))
File "/usr/local/Cellar/[email protected]/3.9.1_6/Frameworks/Python.framework/Versions/3.9/lib/python3.9/os.py", line 810, in fsencode
filename = fspath(filename) # Does type-checking of `filename`.
TypeError: expected str, bytes or os.PathLike object, not int
[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.
╰─> accumulation-tree
Kind Regards, KJ
accumulation-tree installation is also failing for me on Windows. I'm not sure how to resolve this.
Collecting accumulation-tree Using cached accumulation_tree-0.6.2.tar.gz (12 kB) Preparing metadata (setup.py) ... done Building wheels for collected packages: accumulation-tree Building wheel for accumulation-tree (setup.py) ... error error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully. │ exit code: 1 ╰─> [21 lines of output] running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.7 creating build\lib.win-amd64-3.7\accumulation_tree copying accumulation_tree\abctree.py -> build\lib.win-amd64-3.7\accumulation_tree copying accumulation_tree\treeslice.py -> build\lib.win-amd64-3.7\accumulation_tree copying accumulation_tree_init_.py -> build\lib.win-amd64-3.7\accumulation_tree running build_ext cythoning accumulation_tree/accumulation_tree.pyx to accumulation_tree\accumulation_tree.c c:\users\stmill\appdata\local\temp\pip-install-nrwrg9a2\accumulation-tree_16a1eeb4378245f6ae8bcc2caad9c5b9.eggs\cython-0.29.34-py3.7.egg\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\stmill\AppData\Local\Temp\pip-install-nrwrg9a2\accumulation-tree_16a1eeb4378245f6ae8bcc2caad9c5b9\accumulation_tree\accumulation_tree.pyx tree = Parsing.p_module(s, pxd, full_module_name) building 'accumulation_tree.accumulation_tree' extension creating build\temp.win-amd64-3.7 creating build\temp.win-amd64-3.7\Release creating build\temp.win-amd64-3.7\Release\accumulation_tree C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\stmill\dev_c\REPOS_c\python\envs\tm_venv\include -IC:\Users\stmill\AppData\Local\Programs\Python\Python37\include -IC:\Users\stmill\AppData\Local\Programs\Python\Python37\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\include" /Tcaccumulation_tree\accumulation_tree.c /Fobuild\temp.win-amd64-3.7\Release\accumulation_tree\accumulation_tree.obj accumulation_tree.c C:\Users\stmill\AppData\Local\Programs\Python\Python37\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.21.27702\bin\HostX86\x64\cl.exe' failed with exit status 2 [end of output]
I solved my issue by installing "Desktop development with C++" from "Visual Studio Build tools". The installer is available here: https://visualstudio.microsoft.com/visual-cpp-build-tools/
I installed the 2022 version and fixed the issue. However, I also noticed an update pending to the 2019 version that I already had installed. After verifying the fix I also applied that update and maybe updating the 2019 version would have been sufficient since the path to the .exe that failed indicates it was trying to use my existing 2019 version.