You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to install lupa with pip install lupa fails on Python 3.9.10 on my M1 MacBook Air running macOS Monterey 12.0.1.
I am demonstrating the bug with a version of Python installed with Homebrew, but I have also been able to replicate this with a non-Homebrew Python 3.8 installation.
This bug completely obstructs my ability to use Lupa on my Mac.
jmkdev@Apple ~ % /opt/homebrew/bin/python3.9 -m pip install lupa
DEPRECATION: Configuring installation scheme with distutils config files is deprecated and will no longer work in the near future. If you are using a Homebrew or Linuxbrew Python, please see discussion at https://github.com/Homebrew/homebrew-core/issues/76621
Collecting lupa
Using cached lupa-1.12.tar.gz (275 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: lupa
Building wheel for lupa (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/setup.py'"'"'; __file__='"'"'/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/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/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-wheel-mgd5ry03
cwd: /private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/
Complete output (78 lines):
No local build of LuaJIT2 found in lupa directory
Checking for installed luajit library using pkg-config
Did not find luajit using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua5.4 library using pkg-config
Did not find lua5.4 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua-5.4 library using pkg-config
Did not find lua-5.4 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua54 library using pkg-config
Did not find lua54 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua library using pkg-config
Did not find lua using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua5.3 library using pkg-config
Did not find lua5.3 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua-5.3 library using pkg-config
Did not find lua-5.3 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua53 library using pkg-config
Did not find lua53 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua library using pkg-config
Did not find lua using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua5.2 library using pkg-config
Did not find lua5.2 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua-5.2 library using pkg-config
Did not find lua-5.2 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua52 library using pkg-config
Did not find lua52 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua library using pkg-config
Did not find lua using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua5.1 library using pkg-config
Did not find lua5.1 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua-5.1 library using pkg-config
Did not find lua-5.1 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua51 library using pkg-config
Did not find lua51 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua library using pkg-config
Did not find lua using pkg-config: /bin/sh: pkg-config: command not found
Using bundled Lua
building without Cython
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-12-arm64-3.9
creating build/lib.macosx-12-arm64-3.9/lupa
copying lupa/version.py -> build/lib.macosx-12-arm64-3.9/lupa
copying lupa/__init__.py -> build/lib.macosx-12-arm64-3.9/lupa
running build_clib
creating build/temp.macosx-12-arm64-3.9
creating build/temp.macosx-12-arm64-3.9/private
creating build/temp.macosx-12-arm64-3.9/private/var
creating build/temp.macosx-12-arm64-3.9/private/var/folders
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party/lua
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -DCYTHON_CLINE_IN_TRACEBACK=0 -I/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party/lua -c /private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party/lua/lapi.c -o build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party/lua/lapi.o
clang: error: no such file or directory: '/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party/lua/lapi.c'
clang: error: no input files
error: command '/usr/bin/clang' failed with exit code 1
----------------------------------------
ERROR: Failed building wheel for lupa
Running setup.py clean for lupa
Failed to build lupa
Installing collected packages: lupa
Running setup.py install for lupa ... error
ERROR: Command errored out with exit status 1:
command: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/setup.py'"'"'; __file__='"'"'/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/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/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-record-xn8rsjz2/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/include/python3.9/lupa
cwd: /private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/
Complete output (80 lines):
No local build of LuaJIT2 found in lupa directory
Checking for installed luajit library using pkg-config
Did not find luajit using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua5.4 library using pkg-config
Did not find lua5.4 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua-5.4 library using pkg-config
Did not find lua-5.4 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua54 library using pkg-config
Did not find lua54 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua library using pkg-config
Did not find lua using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua5.3 library using pkg-config
Did not find lua5.3 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua-5.3 library using pkg-config
Did not find lua-5.3 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua53 library using pkg-config
Did not find lua53 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua library using pkg-config
Did not find lua using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua5.2 library using pkg-config
Did not find lua5.2 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua-5.2 library using pkg-config
Did not find lua-5.2 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua52 library using pkg-config
Did not find lua52 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua library using pkg-config
Did not find lua using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua5.1 library using pkg-config
Did not find lua5.1 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua-5.1 library using pkg-config
Did not find lua-5.1 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua51 library using pkg-config
Did not find lua51 using pkg-config: /bin/sh: pkg-config: command not found
Checking for installed lua library using pkg-config
Did not find lua using pkg-config: /bin/sh: pkg-config: command not found
Using bundled Lua
building without Cython
running install
/opt/homebrew/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-12-arm64-3.9
creating build/lib.macosx-12-arm64-3.9/lupa
copying lupa/version.py -> build/lib.macosx-12-arm64-3.9/lupa
copying lupa/__init__.py -> build/lib.macosx-12-arm64-3.9/lupa
running build_clib
creating build/temp.macosx-12-arm64-3.9
creating build/temp.macosx-12-arm64-3.9/private
creating build/temp.macosx-12-arm64-3.9/private/var
creating build/temp.macosx-12-arm64-3.9/private/var/folders
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party
creating build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party/lua
clang -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX12.sdk -DCYTHON_CLINE_IN_TRACEBACK=0 -I/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party/lua -c /private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party/lua/lapi.c -o build/temp.macosx-12-arm64-3.9/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party/lua/lapi.o
clang: error: no such file or directory: '/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/third-party/lua/lapi.c'
clang: error: no input files
error: command '/usr/bin/clang' failed with exit code 1
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/homebrew/opt/python@3.9/bin/python3.9 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/setup.py'"'"'; __file__='"'"'/private/var/folders/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-install-fsf_e04t/lupa_8771228bf06543ae8fcb2102bfa8aeeb/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/7z/92br6wl13hj94xyj7v_3lb180000gn/T/pip-record-xn8rsjz2/install-record.txt --single-version-externally-managed --compile --install-headers /opt/homebrew/include/python3.9/lupa Check the logs for full command output.
WARNING: You are using pip version 21.3.1; however, version 22.0.3 is available.
You should consider upgrading via the '/opt/homebrew/opt/python@3.9/bin/python3.9 -m pip install --upgrade pip' command.
The text was updated successfully, but these errors were encountered:
Attempting to install lupa with
pip install lupa
fails on Python 3.9.10 on my M1 MacBook Air running macOS Monterey 12.0.1.I am demonstrating the bug with a version of Python installed with Homebrew, but I have also been able to replicate this with a non-Homebrew Python 3.8 installation.
This bug completely obstructs my ability to use Lupa on my Mac.
The text was updated successfully, but these errors were encountered: