Package Details: python-rchitect 0.4.7-1

Git Clone URL: https://aur.archlinux.org/python-rchitect.git (read-only, click to copy)
Package Base: python-rchitect
Description: Minimal R API for Python
Upstream URL: https://github.com/randy3k/rchitect
Licenses: MIT
Submitter: mschu
Maintainer: mschu
Last Packager: mschu
Votes: 3
Popularity: 0.72
First Submitted: 2018-12-31 20:25 (UTC)
Last Updated: 2024-08-19 09:51 (UTC)

Latest Comments

1 2 Next › Last »

LeoMeinel commented on 2024-11-14 17:10 (UTC) (edited on 2024-11-14 17:29 (UTC) by LeoMeinel)

Hello,

First of all, thank you very much for maintaining this package!

Just to give you some context: This issue has probably been present for some time, since I removed radian a few months ago because of it. I sadly forgot to report this and numerous other build failures in the past.

Using paru and makepkg -si result in the same error.

The following error: /usr/bin/python: No module named pip suggests that you might have to add the following: makedepends=('python-pip'), which for me did resolve the build failure.

I'm not sure if this is the recommended way of packaging python packages, but it is a fix. It also seems like a similar issue has been reported in the past, but python-pip wasn't added to makedepends. I'm really not sure, why not, if it is clearly a make-dependency, but maybe it has been overlooked.

Build log (failure)
> $ makepkg -si
==> Making package: python-rchitect 0.4.7-1 (2024-11-14T17:52:06 CET)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Installing missing dependencies...
doas (<...>@<...>) password:
resolving dependencies...
looking for conflicting packages...

Packages (3) python-pyproject-hooks-1.2.0-1  python-build-1.2.2-1  python-installer-0.7.0-8
<...>
==> Validating source files with sha256sums...
    rchitect-0.4.7.tar.gz ... Passed
==> Extracting sources...
  -> Extracting rchitect-0.4.7.tar.gz with bsdtar
==> Starting build()...
/usr/lib/python3.12/site-packages/setuptools/__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
!!

        ********************************************************************************
        Requirements should be satisfied by a PEP 517 installer.
        If you are using pip, you can try `pip install --use-pep517`.
        ********************************************************************************

!!
  dist.fetch_build_eggs(dist.setup_requires)
/usr/bin/python: No module named pip
Traceback (most recent call last):
  <...>
subprocess.CalledProcessError: Command '['/usr/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpocfn8wqx', '--quiet', 'pytest-runner']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  <...>
distutils.errors.DistutilsError: Command '['/usr/bin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpocfn8wqx', '--quiet', 'pytest-runner']' returned non-zero exit status 1.
==> ERROR: A failure occurred in build().
    Aborting...

ishanarora commented on 2024-01-10 08:31 (UTC)

Needs:

makedepends=('python-setuptools')

Thanks!

khughitt commented on 2023-11-11 11:17 (UTC)

Switching the source to github is indeed enough:

source=(https://github.com/randy3k/$_name/archive/refs/tags/v$pkgver.tar.gz)

alexanderp commented on 2023-11-10 17:23 (UTC)

package doesn't build. this is blocking radian update

bonob commented on 2023-11-03 18:48 (UTC) (edited on 2023-11-03 18:52 (UTC) by bonob)

0.4.4-1 doesn't build, from what I see $_name is not defined in the PKGBUILD.

I tried to find the format for the source url on files.pythonhosted.org, but I don't know if the used format ([...]/p/python-rchitect/python-rchitect-[version].tar.gz I was assuming) is still available there, from the PyPI package page only a link with a hash is available I think.

Considering RFC "Sources for Python packaging" https://rfc.archlinux.page/0020-sources-for-python-packaging/, maybe it would make sense to use the source from github instead? (so https://github.com/randy3k/rchitect/archive/refs/tags/v0.4.4.tar.gz for this version.)

bonob commented on 2021-12-13 16:08 (UTC)

The dependency on python-multipledispatch has been removed in 0.2.3.

madmonarchist commented on 2021-09-18 03:06 (UTC)

I had the same error as @carlosal1015 but installing python-pip fixes it. Maybe add it to the dependencies? Thanks!

carlosal1015 commented on 2021-09-06 23:36 (UTC) (edited on 2021-12-06 13:15 (UTC) by carlosal1015)

Hi, I have the following error:

==> Making package: python-rchitect 0.3.34-1 (Mon 06 Dec 2021 08:14:16 AM -05)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found rchitect-0.3.34.tar.gz
==> Validating source files with sha256sums...
    rchitect-0.3.34.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting rchitect-0.3.34.tar.gz with bsdtar
==> Sources are ready.
==> Making package: python-rchitect 0.3.34-1 (Mon 06 Dec 2021 08:14:18 AM -05)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting build()...
WARNING: The wheel package is not available.
/usr/sbin/python: No module named pip
Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/setuptools/installer.py", line 75, in fetch_build_egg
    subprocess.check_call(cmd)
  File "/usr/lib/python3.9/subprocess.py", line 373, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['/usr/sbin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpk270mpat', '--quiet', 'pytest-runner']' returned non-zero exit status 1.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/tmp/makepkg/python-rchitect/src/rchitect-0.3.34/setup.py", line 32, in <module>
    setup(
  File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 152, in setup
    _install_setup_requires(attrs)
  File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 147, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 785, in fetch_build_eggs
    resolved_dists = pkg_resources.working_set.resolve(
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 766, in resolve
    dist = best[req.key] = env.best_match(
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1051, in best_match
    return self.obtain(req, installer)
  File "/usr/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1063, in obtain
    return installer(requirement)
  File "/usr/lib/python3.9/site-packages/setuptools/dist.py", line 844, in fetch_build_egg
    return fetch_build_egg(self, req)
  File "/usr/lib/python3.9/site-packages/setuptools/installer.py", line 77, in fetch_build_egg
    raise DistutilsError(str(e)) from e
distutils.errors.DistutilsError: Command '['/usr/sbin/python', '-m', 'pip', '--disable-pip-version-check', 'wheel', '--no-deps', '-w', '/tmp/tmpk270mpat', '--quiet', 'pytest-runner']' returned non-zero exit status 1.
==> ERROR: A failure occurred in build().
    Aborting...

mschu commented on 2021-01-05 20:24 (UTC)

I have removed python2 support. Please let me know if anyone needs it, then I can add another package

mvondomaros commented on 2020-11-10 21:44 (UTC)

@mschu Thanks for maintaining this actively!

Do you think you split this up into python3 (python-rchitect) and python2 (python2-rchitect) packages? This would comply with the AUR naming conventions for python packages and would not force users to install python2 if they don't want this. Thanks!