Package Details: python-bson 0.5.10-2

Git Clone URL: https://aur.archlinux.org/python-bson.git (read-only, click to copy)
Package Base: python-bson
Description: BSON codec for Python
Upstream URL: https://github.com/py-bson/bson
Licenses: BSD
Conflicts: python-pymongo
Submitter: MCMic
Maintainer: acxz
Last Packager: acxz
Votes: 2
Popularity: 0.000000
First Submitted: 2019-08-31 21:48 (UTC)
Last Updated: 2022-04-18 12:33 (UTC)

Latest Comments

viper2642 commented on 2026-03-31 07:44 (UTC)

The following patch seems to fix the issue:

diff -ura package.orig/bson-0.5.10/setup.py package.new/bson-0.5.10/setup.py
--- package.orig/bson-0.5.10/setup.py   2020-05-26 13:13:23.000000000 +0200
+++ package.new/bson-0.5.10/setup.py    2026-03-31 09:38:30.858668624 +0200
@@ -4,7 +4,7 @@
 # Copyright (c) 2015, Ayun Park. All rights reserved.
 # For licensing, see LICENSE file included in the package.
 import sys
-import pkgutil
+import importlib.util
 from setuptools import setup
 from setuptools.command.install import install

@@ -13,7 +13,7 @@

     @staticmethod
     def check_pymongo():
-        if pkgutil.find_loader('pymongo'):
+        if importlib.util.find_spec('pymongo'):
             return True
         return False

liuyun commented on 2026-03-30 02:13 (UTC) (edited on 2026-03-30 02:18 (UTC) by liuyun)

The following error was encountered

running install_scripts Traceback (most recent call last): File "/home/***/aur/python-bson/src/bson-0.5.10/setup.py", line 26, in <module>\ setup( ~~~~~^ name="bson", ^^^^^^^^^^^^ ...<19 lines>... cmdclass={'install': NewInstall} ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ) ^ File "/usr/lib/python3.14/site-packages/setuptools/__init__.py", line 117, in setup return distutils.core.setup(**attrs) # type: ignore[return-value] ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib/python3.14/site-packages/setuptools/_distutils/core.py", line 186, in setup return run_commands(dist) File "/usr/lib/python3.14/site-packages/setuptools/_distutils/core.py", line 202, in run_commands dist.run_commands() ~~~~~~~~~~~~~~~~~^^ File "/usr/lib/python3.14/site-packages/setuptools/_distutils/dist.py", line 1000, in run_commands self.run_command(cmd) ~~~~~~~~~~~~~~~~^^^^^ File "/usr/lib/python3.14/site-packages/setuptools/dist.py", line 1107, in run_command super().run_command(command) ~~~~~~~~~~~~~~~~~~~^^^^^^^^^ File "/usr/lib/python3.14/site-packages/setuptools/_distutils/dist.py", line 1019, in run_command cmd_obj.run() ~~~~~~~~~~~^^ File "/home/liuy8/aur/python-bson/src/bson-0.5.10/setup.py", line 22, in run if self.check_pymongo(): ~~~~~~~~~~~~~~~~~~^^ File "/home/liuy8/aur/python-bson/src/bson-0.5.10/setup.py", line 16, in check_pymongo if pkgutil.find_loader('pymongo'): ^^^^^^^^^^^^^^^^^^^ AttributeError: module 'pkgutil' has no attribute 'find_loader' ==> ERROR: A failure occurred in package(). Aborting...

acxz commented on 2021-06-15 19:23 (UTC)

Development is on Github: https://github.com/acxz/pkgbuilds Please open issues and PRs there instead of commenting.

dampkwab commented on 2021-01-04 06:13 (UTC) (edited on 2021-01-04 06:14 (UTC) by dampkwab)

This package seems to have file conflicts [1] with the community/python-pymongo package from the core repos [2].

Not sure what the correct resolution would be - maybe adding python-bson to the python-pymongo package's provides?

[1] https://pastebin.com/7S5ec4Yz
[2] https://archlinux.org/packages/community/x86_64/python-pymongo/