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

Python-3.8.10 update fails during Compile/Install step? #134

Open
ermo opened this issue May 12, 2021 · 0 comments
Open

Python-3.8.10 update fails during Compile/Install step? #134

ermo opened this issue May 12, 2021 · 0 comments

Comments

@ermo
Copy link
Contributor

ermo commented May 12, 2021

I saw the same thing happening with Python-3.8.6 when I tried to update to that version:

Compiling '/usr/lib/python3.8/turtle.py'...
Listing '/usr/lib/python3.8/site-packages'...
PYTHONPATH=/usr/lib/python3.8 LD_LIBRARY_PATH=/Data/Compile/Sources/Python-3.8.10:/System/Index/lib64:/System/Index/lib \
	./python -E -Wi /usr/lib/python3.8/compileall.py \
	-j0 -d /usr/lib/python3.8/site-packages -f \
	-x badsyntax /usr/lib/python3.8/site-packages
Listing '/usr/lib/python3.8/site-packages'...
Compiling '/usr/lib/python3.8/site-packages/Corrections.py'...
*** FileExistsError: /usr/lib/python3.8/site-packages/__pycache__/Corrections.cpython-38.pyc is a symlink and will be changed into a regular file if import writes a byte-compiled file to it
Compiling '/usr/lib/python3.8/site-packages/UseFlags.py'...
*** FileExistsError: /usr/lib/python3.8/site-packages/__pycache__/UseFlags.cpython-38.pyc is a symlink and will be changed into a regular file if import writes a byte-compiled file to it
Compiling '/usr/lib/python3.8/site-packages/DescribeProgram.py'...
*** FileExistsError: /usr/lib/python3.8/site-packages/__pycache__/DescribeProgram.cpython-38.pyc is a symlink and will be changed into a regular file if import writes a byte-compiled file to it
Compiling '/usr/lib/python3.8/site-packages/GuessLatest.py'...
*** FileExistsError: /usr/lib/python3.8/site-packages/__pycache__/GuessLatest.cpython-38.pyc is a symlink and will be changed into a regular file if import writes a byte-compiled file to it
Compiling '/usr/lib/python3.8/site-packages/easy_install.py'...
*** FileExistsError: /usr/lib/python3.8/site-packages/__pycache__/easy_install.cpython-38.pyc is a symlink and will be changed into a regular file if import writes a byte-compiled file to it
Compiling '/usr/lib/python3.8/site-packages/CheckDependencies.py'...
*** FileExistsError: /usr/lib/python3.8/site-packages/__pycache__/CheckDependencies.cpython-38.pyc is a symlink and will be changed into a regular file if import writes a byte-compiled file to it
Compiling '/usr/lib/python3.8/site-packages/GuessProgramCase.py'...
*** FileExistsError: /usr/lib/python3.8/site-packages/__pycache__/GuessProgramCase.cpython-38.pyc is a symlink and will be changed into a regular file if import writes a byte-compiled file to it
Compiling '/usr/lib/python3.8/site-packages/Alien.py'...
*** FileExistsError: /usr/lib/python3.8/site-packages/__pycache__/Alien.cpython-38.pyc is a symlink and will be changed into a regular file if import writes a byte-compiled file to it
Compiling '/usr/lib/python3.8/site-packages/PythonUtils.py'...
*** FileExistsError: /usr/lib/python3.8/site-packages/__pycache__/PythonUtils.cpython-38.pyc is a symlink and will be changed into a regular file if import writes a byte-compiled file to it
Compiling '/usr/lib/python3.8/site-packages/FindPackage.py'...
*** FileExistsError: /usr/lib/python3.8/site-packages/__pycache__/FindPackage.cpython-38.pyc is a symlink and will be changed into a regular file if import writes a byte-compiled file to it
Compiling '/usr/lib/python3.8/site-packages/GetAvailable.py'...
*** FileExistsError: /usr/lib/python3.8/site-packages/__pycache__/GetAvailable.cpython-38.pyc is a symlink and will be changed into a regular file if import writes a byte-compiled file to it
make: [Makefile:1440: libinstall] Error 1 (ignored)
PYTHONPATH=/usr/lib/python3.8 LD_LIBRARY_PATH=/Data/Compile/Sources/Python-3.8.10:/System/Index/lib64:/System/Index/lib \
	./python -E -Wi -O /usr/lib/python3.8/compileall.py \
	-j0 -d /usr/lib/python3.8/site-packages -f \
	-x badsyntax /usr/lib/python3.8/site-packages
Listing '/usr/lib/python3.8/site-packages'...
Compiling '/usr/lib/python3.8/site-packages/FindPackage.py'...
Compiling '/usr/lib/python3.8/site-packages/easy_install.py'...
Compiling '/usr/lib/python3.8/site-packages/Alien.py'...
Compiling '/usr/lib/python3.8/site-packages/PythonUtils.py'...
Compiling '/usr/lib/python3.8/site-packages/CheckDependencies.py'...
Compiling '/usr/lib/python3.8/site-packages/DescribeProgram.py'...
Compiling '/usr/lib/python3.8/site-packages/UseFlags.py'...
Compiling '/usr/lib/python3.8/site-packages/GuessProgramCase.py'...
Compiling '/usr/lib/python3.8/site-packages/Corrections.py'...
Compiling '/usr/lib/python3.8/site-packages/GuessLatest.py'...
Compiling '/usr/lib/python3.8/site-packages/GetAvailable.py'...
PYTHONPATH=/usr/lib/python3.8 LD_LIBRARY_PATH=/Data/Compile/Sources/Python-3.8.10:/System/Index/lib64:/System/Index/lib \
	./python -E -Wi -OO /usr/lib/python3.8/compileall.py \
	-j0 -d /usr/lib/python3.8/site-packages -f \
	-x badsyntax /usr/lib/python3.8/site-packages
Listing '/usr/lib/python3.8/site-packages'...
Compiling '/usr/lib/python3.8/site-packages/DescribeProgram.py'...
Compiling '/usr/lib/python3.8/site-packages/GetAvailable.py'...
Compiling '/usr/lib/python3.8/site-packages/easy_install.py'...
Compiling '/usr/lib/python3.8/site-packages/GuessLatest.py'...
Compiling '/usr/lib/python3.8/site-packages/GuessProgramCase.py'...
Compiling '/usr/lib/python3.8/site-packages/CheckDependencies.py'...
Compiling '/usr/lib/python3.8/site-packages/Alien.py'...
Compiling '/usr/lib/python3.8/site-packages/PythonUtils.py'...
Compiling '/usr/lib/python3.8/site-packages/FindPackage.py'...
Compiling '/usr/lib/python3.8/site-packages/Corrections.py'...
Compiling '/usr/lib/python3.8/site-packages/UseFlags.py'...
PYTHONPATH=/usr/lib/python3.8 LD_LIBRARY_PATH=/Data/Compile/Sources/Python-3.8.10:/System/Index/lib64:/System/Index/lib \
	./python -E -m lib2to3.pgen2.driver /usr/lib/python3.8/lib2to3/Grammar.txt
Generating grammar tables from /usr/lib/python3.8/lib2to3/Grammar.txt
Writing grammar tables to /usr/lib/python3.8/lib2to3/Grammar3.8.10.final.0.pickle
PYTHONPATH=/usr/lib/python3.8 LD_LIBRARY_PATH=/Data/Compile/Sources/Python-3.8.10:/System/Index/lib64:/System/Index/lib \
	./python -E -m lib2to3.pgen2.driver /usr/lib/python3.8/lib2to3/PatternGrammar.txt
Generating grammar tables from /usr/lib/python3.8/lib2to3/PatternGrammar.txt
Writing grammar tables to /usr/lib/python3.8/lib2to3/PatternGrammar3.8.10.final.0.pickle
if test "xupgrade" != "xno"  ; then \
	case upgrade in \
		upgrade) ensurepip="--upgrade" ;; \
		install|*) ensurepip="" ;; \
	esac; \
	LD_LIBRARY_PATH=/Data/Compile/Sources/Python-3.8.10:/System/Index/lib64:/System/Index/lib ./python -E -m ensurepip \
		$ensurepip --root=/ ; \
fi
Looking in links: /tmp/tmp94exrsyf
Requirement already satisfied: setuptools in /System/Index/lib/python3.8/site-packages (49.2.1)
Processing /Data/Variable/tmp/tmp94exrsyf/setuptools-56.0.0-py3-none-any.whl
Requirement already satisfied: pip in /System/Index/lib/python3.8/site-packages (20.2.1)
Processing /Data/Variable/tmp/tmp94exrsyf/pip-21.1.1-py3-none-any.whl
Installing collected packages: setuptools, pip
  Attempting uninstall: setuptools
    Found existing installation: setuptools 49.2.1
    Uninstalling setuptools-49.2.1:
      Successfully uninstalled setuptools-49.2.1
  Rolling back uninstall of setuptools
  Moving to /Programs/Python/3.8.6/lib/python3.8/site-packages/pkg_resources/
   from /Programs/Python/3.8.6/lib/python3.8/site-packages/~kg_resources
  Moving to /Programs/Python/3.8.6/lib/python3.8/site-packages/setuptools-49.2.1.dist-info/
   from /Programs/Python/3.8.6/lib/python3.8/site-packages/~etuptools-49.2.1.dist-info
  Moving to /Programs/Python/3.8.6/lib/python3.8/site-packages/setuptools/
   from /Programs/Python/3.8.6/lib/python3.8/site-packages/~etuptools
  Moving to /System/Index/bin/easy_install-3.8
   from /Data/Variable/tmp/pip-uninstall-5oz5ivw9/easy_install-3.8
  Moving to /System/Index/lib/python3.8/site-packages/__pycache__/easy_install.cpython-38.pyc
   from /Data/Variable/tmp/pip-uninstall-riu53daq/easy_install.cpython-38.pyc
  Moving to /System/Index/lib/python3.8/site-packages/easy_install.py
   from /Data/Variable/tmp/pip-uninstall-nv1013dx/easy_install.py
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/usr/lib/python3.8/site-packages/pkg_resources/__init__.py'

Traceback (most recent call last):
  File "/Data/Compile/Sources/Python-3.8.10/Lib/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/Data/Compile/Sources/Python-3.8.10/Lib/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/Data/Compile/Sources/Python-3.8.10/Lib/ensurepip/__main__.py", line 5, in <module>
    sys.exit(ensurepip._main())
  File "/Data/Compile/Sources/Python-3.8.10/Lib/ensurepip/__init__.py", line 206, in _main
    return _bootstrap(
  File "/Data/Compile/Sources/Python-3.8.10/Lib/ensurepip/__init__.py", line 125, in _bootstrap
    return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
  File "/Data/Compile/Sources/Python-3.8.10/Lib/ensurepip/__init__.py", line 34, in _run_pip
    return subprocess.run([sys.executable, "-c", code], check=True).returncode
  File "/Data/Compile/Sources/Python-3.8.10/Lib/subprocess.py", line 516, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/Data/Compile/Sources/Python-3.8.10/python', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmp94exrsyf/setuptools-56.0.0-py3-none-any.whl\', \'/tmp/tmp94exrsyf/pip-21.1.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmp94exrsyf\', \'--root\', \'/\', \'--upgrade\', \'setuptools\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [Makefile:1198: install] Error 1
UnionSandbox: Cleaning up.
UnionSandbox: Moving entries to: /Programs/Python/3.8.10/.SandboxInstall_Root
Compile: Installation was moved to /Programs/Python/3.8.10-failed
Compile: Python 3.8.10 - Installation step failed.
ermo@mrwing master /Data/Compile/Recipes]
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

3 participants