Package Details: python-noiseprotocol-git 0.3.1.r0.g7337544-2

Git Clone URL: https://aur.archlinux.org/python-noiseprotocol-git.git (read-only, click to copy)
Package Base: python-noiseprotocol-git
Description: A Python implementation of Noise Protocol Framework
Upstream URL: https://github.com/plizonczyk/noiseprotocol
Licenses: MIT
Submitter: pizzaman
Maintainer: pizzaman
Last Packager: pizzaman
Votes: 4
Popularity: 0.007195
First Submitted: 2020-11-15 08:05 (UTC)
Last Updated: 2023-10-22 05:14 (UTC)

Dependencies (12)

Sources (1)

Latest Comments

pizzaman commented on 2023-10-22 05:14 (UTC)

@remspoor This happens ONLY if you have https://archlinux.org/packages/extra/any/python-pytest-aiohttp/ installed. Added fix.

pizzaman commented on 2023-10-22 04:47 (UTC)

@gustl64 @Count042 Managed to reproduce your error. This ONLY happens if you have the package https://archlinux.org/packages/extra/any/python-pypandoc/ currently installed. Added fix.

remspoor commented on 2023-10-20 16:00 (UTC) (edited on 2023-10-20 16:01 (UTC) by remspoor)

I get this error:

  File "/usr/lib/python3.11/site-packages/pytest_aiohttp/plugin.py", line 6, in <module>
    import pytest_asyncio
ModuleNotFoundError: No module named 'pytest_asyncio'
==> ERROR: A failure occurred in check().
    Aborting...
 -> error making: python-noiseprotocol-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
python-noiseprotocol-git - exit status 4

I fixed it by adding 'python-pytest-asyncio' to makedepends

-makedepends=('python-setuptools' 'python-pytest' 'git')
+makedepends=('python-setuptools' 'python-pytest' 'python-pytest-asyncio' 'git')

Count042 commented on 2023-10-10 15:02 (UTC) (edited on 2023-10-10 15:03 (UTC) by Count042)

I am also experiencing this issue.

@pizzaman I'm not sure how you are unable to replicate.

Pypandoc is at version 1.11 in the repos:

extra/python-pypandoc 1.11-2

And convert was removed from pypandoc in version 1.8.

Might be worthwhile to add the sed command offered by gustl64 to the PKGBUILD

gustl64 commented on 2023-08-25 08:02 (UTC) (edited on 2023-08-25 08:03 (UTC) by gustl64)

   long_description = pypandoc.convert('README.md', 'rst')
                      ^^^^^^^^^^^^^^^^
AttributeError: module 'pypandoc' has no attribute 'convert'

--> newer pypandoc version don't provide convert any more -- quick fix:

sed -i "s%ImportError%ImportError,AttributeError%"  src/noiseprotocol/setup.py

pizzaman commented on 2023-08-24 04:08 (UTC)

@Kernald Thanks for the comment. I can't reproduce, builds fine in chroot for me, although for usage and tests python-cryptography was missing from deps.

On regards to your linked dev_requirements.txt on Readme it says that "Additional packages that may be useful during development are contained in dev_requirements.txt." thus maybe for development and contribution users can install those packages themselves.

Kernald commented on 2023-08-03 22:22 (UTC) (edited on 2023-08-13 04:37 (UTC) by Kernald)

python-pypandoc (and maybe more, see here should be added to makedepends. It fails to build as-is in a chroot.

Edit: it's more complicated than that. https://stackoverflow.com/q/74745548