vfox icon indicating copy to clipboard operation
vfox copied to clipboard

[BUG]: Unable to install Python

Open trymeouteh opened this issue 9 months ago • 3 comments

Version The version you are currently using OS Linux Mint 22

Describe the bug Unable to install any version of Python using vfox

Screenshots[optional] The terminal output after selecting the version of Python to install...

Preinstalling [email protected]...
Cloning into '/home/testing/.version-fox/cache/python/v-3.13.2/pyenv'...
remote: Enumerating objects: 1347, done.
remote: Counting objects: 100% (1347/1347), done.
remote: Compressing objects: 100% (721/721), done.
remote: Total 1347 (delta 808), reused 788 (delta 493), pack-reused 0 (from 0)
Receiving objects: 100% (1347/1347), 1.14 MiB | 562.00 KiB/s, done.
Resolving deltas: 100% (808/808), done.
Building python ...
Downloading Python-3.13.2.tar.xz...
-> https://www.python.org/ftp/python/3.13.2/Python-3.13.2.tar.xz
Installing Python-3.13.2...

BUILD FAILED (Linuxmint 22 using python-build 20180424)

Inspect or clean up the working tree at /tmp/python-build.20250211204137.2310
Results logged to /tmp/python-build.20250211204137.2310.log

Last 10 log lines:
  File "/tmp/python-build.20250211204137.2310/Python-3.13.2/Lib/ensurepip/__init__.py", line 172, in _bootstrap
    return _run_pip([*args, "pip"], [os.fsdecode(tmp_wheel_path)])
  File "/tmp/python-build.20250211204137.2310/Python-3.13.2/Lib/ensurepip/__init__.py", line 87, in _run_pip
    return subprocess.run(cmd, check=True).returncode
           ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
  File "/tmp/python-build.20250211204137.2310/Python-3.13.2/Lib/subprocess.py", line 579, in run
    raise CalledProcessError(retcode, process.args,
                             output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '['/tmp/python-build.20250211204137.2310/Python-3.13.2/python', '-W', 'ignore::DeprecationWarning', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmp2nxd23a3/pip-24.3.1-py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmp2nxd23a3\', \'--root\', \'/\', \'--upgrade\', \'pip\']\nrunpy.run_module("pip", run_name="__main__", alter_sys=True)\n']' returned non-zero exit status 1.
make: *** [Makefile:2249: install] Error 1
plugin [PostInstall] method error: /home/testing/.version-fox/plugin/python/lib/util.lua:234: python build failed
stack traceback:
	[G]: in function 'error'
	/home/testing/.version-fox/plugin/python/lib/util.lua:234: in main chunk
	(tailcall): ?
	[G]: ?

trymeouteh avatar Feb 12 '25 03:02 trymeouteh

Could you share the log file to us:

/tmp/python-build.20250211204137.2310.log

bytemain avatar Feb 13 '25 03:02 bytemain

https://privatebin.net/?6ab06f31eff991df#D5sdZQ9ots289aDR5waNLF9Y2dzUZn5pakr5xV3aq4um

trymeouteh avatar Mar 01 '25 02:03 trymeouteh

we will ship a python plugin that directly download the prebuilt binary soon.

bytemain avatar Mar 04 '25 02:03 bytemain

sudo apt update; sudo apt install build-essential libssl-dev zlib1g-dev
libbz2-dev libreadline-dev libsqlite3-dev curl git
libncursesw5-dev xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev

vatebur avatar May 12 '25 09:05 vatebur

I discovered uv which is a powerful command line tool for when working with Python and it includes...

  • Managing multiple Python versions
  • Python packages (From PIP or Git repos)

I just use uv for managing Python versions over vfox

trymeouteh avatar May 24 '25 20:05 trymeouteh