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

Cannot install Lupa on Python 3.9.10, M1 MacBook Air #205

Closed
jmkd3v opened this issue Mar 1, 2022 · 2 comments
Closed

Cannot install Lupa on Python 3.9.10, M1 MacBook Air #205

jmkd3v opened this issue Mar 1, 2022 · 2 comments

Comments

@jmkd3v
Copy link

jmkd3v commented Mar 1, 2022

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.
@jmkd3v
Copy link
Author

jmkd3v commented Mar 2, 2022

I uninstalled and reinstalled Lua with Homebrew and it solved my problem.

@jmkd3v jmkd3v closed this as completed Mar 2, 2022
@scoder
Copy link
Owner

scoder commented Aug 3, 2022

Duplicate of #191

@scoder scoder marked this as a duplicate of #191 Aug 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants