Package Details: python37 3.7.17-1

Git Clone URL: https://aur.archlinux.org/python37.git (read-only, click to copy)
Package Base: python37
Description: Major release 3.7 of the Python high-level programming language
Upstream URL: https://www.python.org/
Keywords: python python3
Licenses: custom
Provides: python
Submitter: 5long
Maintainer: greut (jrd)
Last Packager: greut
Votes: 32
Popularity: 0.24
First Submitted: 2019-11-14 21:23 (UTC)
Last Updated: 2023-06-14 07:53 (UTC)

Dependencies (16)

Required by (12552)

Sources (6)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 .. 10 Next › Last »

DMolt commented on 2020-09-10 07:59 (UTC)

Hi, I use python 3.7 for some projects with virtualenv and 3.8 for other and system. To install this I have to change --with-ensurepip with --without-ensurepip

Davide

greut commented on 2020-09-07 09:56 (UTC)

@surrealistic above in the logs, you should see why the _posixsubprocess module is not building successfully.

surrealistic commented on 2020-09-07 09:27 (UTC) (edited on 2020-09-07 09:31 (UTC) by surrealistic)

Hi! I'm having this issue with subprocess while tying to upgrade python37 and also after uninstalling it to try a clean installation of it.


gcc -pthread -c -fPIC -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -flto=4 -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Wno-cast-function-type -Werror=implicit-function-declaration -fprofile-generate  -I. -I./Include -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -fPIC -DPy_BUILD_CORE -o Modules/_math.o Modules/_math.c
LD_LIBRARY_PATH=/home/user/.cache/yay/python37/src/Python-3.7.9 CC='gcc -pthread' LDSHARED='gcc -pthread -shared -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=4 -fuse-linker-plugin -ffat-lto-objects -flto-partition=none -g -fprofile-generate' OPT='-DNDEBUG -g -fwrapv -O3 -Wall'  _TCLTK_INCLUDES='' _TCLTK_LIBS=''       ./python -E ./setup.py  build
Traceback (most recent call last):
  File "./setup.py", line 12, in <module>
    from distutils.core import Extension, setup
  File "/usr/lib/python3.7/site-packages/setuptools/_distutils/core.py", line 16, in <module>
    from distutils.dist import Distribution
  File "/usr/lib/python3.7/site-packages/setuptools/_distutils/dist.py", line 19, in <module>
    from distutils.util import check_environ, strtobool, rfc822_escape
  File "/usr/lib/python3.7/site-packages/setuptools/_distutils/util.py", line 14, in <module>
    from distutils.spawn import spawn
  File "/usr/lib/python3.7/site-packages/setuptools/_distutils/spawn.py", line 11, in <module>
    import subprocess
  File "/home/user/.cache/yay/python37/src/Python-3.7.9/Lib/subprocess.py", line 152, in <module>
    import _posixsubprocess
ModuleNotFoundError: No module named '_posixsubprocess'
make[3]: *** [Makefile:630: sharedmods] Error 1
make[3]: Leaving directory '/home/user/.cache/yay/python37/src/Python-3.7.9'
make[2]: *** [Makefile:523: build_all_generate_profile] Error 2
make[2]: Leaving directory '/home/user/.cache/yay/python37/src/Python-3.7.9'
make[1]: *** [Makefile:499: profile-gen-stamp] Error 2
make[1]: Leaving directory '/home/user/.cache/yay/python37/src/Python-3.7.9'
make: *** [Makefile:511: profile-run-stamp] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
error making: python37

It's like it can't find or recognize subprocess. I searched on Google about the error and I've tried to install subprocess32 with python3.7 -m pip install subprocess32 but it returns the same error. After all those attempts I decided to try a clean installation so I removed python3.7 to install it again instead of upgrading it, but it keeps returning the same error.

jrd commented on 2020-09-03 10:46 (UTC)

Thanks greut, and thanks 5long for initial package.

greut commented on 2020-09-02 19:43 (UTC)

@jrd I've taken the patch from the bug mentioned (https://bugs.python.org/issue41302) and added you as a co-maintainer.

GeorgP commented on 2020-09-02 08:18 (UTC)

You can click "Adopt Package" in "Package Actions" in the top right. Then it's yours. :D

jrd commented on 2020-09-01 12:11 (UTC)

If 5long don't/won't update the package, I could take over if that's possible (I don't know how to transfer AUR package owership…)

jrd commented on 2020-09-01 09:48 (UTC) (edited on 2020-09-01 10:11 (UTC) by jrd)

I made it compile and install with the following diff for PKGBUILD:

diff --git a/PKGBUILD b/PKGBUILD
index 20bd747..5cdcf4e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -47,11 +47,11 @@ prepare() {
   # Speed up LTO
   sed -i -e "s|-flto |-flto=4 |g" configure configure.ac

-  # Ensure that we are using the system copy of various libraries (expat, libffi, and libmpdec),
+  # Ensure that we are using the system copy of various libraries (expat, libffi),
   # rather than copies shipped in the tarball
   rm -r Modules/expat
   rm -r Modules/_ctypes/{darwin,libffi}*
-  rm -r Modules/_decimal/libmpdec
+  # Ensure using libmpdec in the tarball as the system one (2.5+) is too new for Python 3.7
 }

 build() {
@@ -69,9 +69,8 @@ build() {
               --with-system-expat \
               --with-dbmliborder=gdbm:ndbm \
               --with-system-ffi \
-              --with-system-libmpdec \
               --enable-loadable-sqlite-extensions \
-              --with-ensurepip
+              --with-ensurepip=install

   # Obtain next free server number for xvfb-run; this even works in a chroot environment.
   export servernum=99

This is because libmpec is now at version 2.5+ in Arch and this is not supported for python version prior to 3.8. So the one bundled within the tarball should be used.

The issue that let me understand the problem: https://bugs.python.org/issue41302

PRAGMA commented on 2020-08-28 19:07 (UTC)

I'm also having the same issue as jrd.

jrd commented on 2020-08-21 12:51 (UTC)

Build fails for me, this seems related to fakeroot. Probably an incompatibility between two LD_LIBRARY_PATH/LD_PRELOAD usages.

First weird messages:

Compiling '/home/cyrille/tmp/yaourt-tmp-cyrille/aur-python37/pkg/python37/usr/lib/python3.7/zipfile.py'...
PYTHONPATH=/home/cyrille/tmp/yaourt-tmp-cyrille/aur-python37/pkg/python37/usr/lib/python3.7 LD_LIBRARY_PATH=/home/cyrille/tmp/yaourt-tmp-cyrille/aur-python37/src/Python-3.7.8 \
    ./python -E -Wi /home/cyrille/tmp/yaourt-tmp-cyrille/aur-python37/pkg/python37/usr/lib/python3.7/compileall.py \
    -d /usr/lib/python3.7/site-packages -f \
    -x badsyntax /home/cyrille/tmp/yaourt-tmp-cyrille/aur-python37/pkg/python37/usr/lib/python3.7/site-packages
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.

And last messages before stopping build stage:

Generating grammar tables from /home/cyrille/tmp/yaourt-tmp-cyrille/aur-python37/pkg/python37/usr/lib/python3.7/lib2to3/PatternGrammar.txt
Writing grammar tables to /home/cyrille/tmp/yaourt-tmp-cyrille/aur-python37/pkg/python37/usr/lib/python3.7/lib2to3/PatternGrammar3.7.8.final.0.pickle
if test "xupgrade" != "xno"  ; then \
    case upgrade in \
        upgrade) ensurepip="--altinstall --upgrade" ;; \
        install|*) ensurepip="--altinstall" ;; \
    esac; \
    LD_LIBRARY_PATH=/home/cyrille/tmp/yaourt-tmp-cyrille/aur-python37/src/Python-3.7.8 ./python -E -m ensurepip \
        $ensurepip --root=/home/cyrille/tmp/yaourt-tmp-cyrille/aur-python37/pkg/python37/ ; \
fi
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Looking in links: /tmp/tmpb0r11wta
Processing /tmp/tmpb0r11wta/setuptools-47.1.0-py3-none-any.whl
Processing /tmp/tmpb0r11wta/pip-20.1.1-py2.py3-none-any.whl
Installing collected packages: setuptools, pip
  Attempting uninstall: setuptools
    Found existing installation: setuptools 41.2.0
    Uninstalling setuptools-41.2.0:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/bin/easy_install'
Consider using the `--user` option or check the permissions.

make: *** [Makefile:1152: altinstall] Error 1