Skip to content

Instantly share code, notes, and snippets.

@jahway603
Last active November 10, 2022 21:27
Show Gist options
  • Save jahway603/1067d05c3d6e6fcf3b4f1ba3f63fe1a7 to your computer and use it in GitHub Desktop.
Save jahway603/1067d05c3d6e6fcf3b4f1ba3f63fe1a7 to your computer and use it in GitHub Desktop.
issue with maubot AUR package or is this an issue with the maubot code???
The [maubot AUR package](https://aur.archlinux.org/packages/maubot) built, but mbc will not work for whatever reason...
Unsure if this is an issue with the maubot AUR package or if this issue needs to be reported directly to the project as I am able to run & use mbc on other Linux distros.
When I run `mbc --help`:
```
disruptor ]$ mbc --help
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: master is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: git-archive.dev8b63d73a17 is an invalid version and will not be supported in a future release
warnings.warn(
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 581, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 800, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (charset-normalizer 3.0.0 (/usr/lib/python3.10/site-packages), Requirement.parse('charset-normalizer<3.0,>=2.0'), {'aiohttp'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/sbin/mbc", line 33, in <module>
sys.exit(load_entry_point('maubot==0.3.1', 'console_scripts', 'mbc')())
File "/sbin/mbc", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/maubot/__init__.py", line 2, in <module>
from .matrix import MaubotMatrixClient as Client, MaubotMessageEvent as MessageEvent
File "/usr/lib/python3.10/site-packages/maubot/matrix.py", line 24, in <module>
from mautrix.client import Client as MatrixClient, SyncStream
File "/usr/lib/python3.10/site-packages/mautrix/client/__init__.py", line 1, in <module>
from .api import ClientAPI
File "/usr/lib/python3.10/site-packages/mautrix/client/api/__init__.py", line 6, in <module>
from .client import ClientAPI
File "/usr/lib/python3.10/site-packages/mautrix/client/api/client.py", line 6, in <module>
from .authentication import ClientAuthenticationMethods
File "/usr/lib/python3.10/site-packages/mautrix/client/api/authentication.py", line 8, in <module>
from mautrix.api import Method, Path
File "/usr/lib/python3.10/site-packages/mautrix/api.py", line 19, in <module>
from aiohttp import ClientResponse, ClientSession, __version__ as aiohttp_version
File "/usr/lib/python3.10/site-packages/aiohttp/__init__.py", line 212, in <module>
from .worker import GunicornUVLoopWebWorker, GunicornWebWorker
File "/usr/lib/python3.10/site-packages/aiohttp/worker.py", line 11, in <module>
from gunicorn.config import AccessLogFormat as GunicornAccessLogFormat
File "/usr/lib/python3.10/site-packages/gunicorn/config.py", line 20, in <module>
from gunicorn import __version__, util
File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 25, in <module>
import pkg_resources
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3260, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 583, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'charset-normalizer<3.0,>=2.0' distribution was not found and is required by aiohttp
```
When I run `mbc build` to compile a maubot package:
```
disruptor ]$ systemctl stop maubot.service
[hygea@poseidon ~/dev/GITHUB/maubot-STUFF/disruptor ]$ mbc build
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: master is an invalid version and will not be supported in a future release
warnings.warn(
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:123: PkgResourcesDeprecationWarning: git-archive.dev8b63d73a17 is an invalid version and will not be supported in a future release
warnings.warn(
Traceback (most recent call last):
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 581, in _build_master
ws.require(__requires__)
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 909, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 800, in resolve
raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (charset-normalizer 3.0.0 (/usr/lib/python3.10/site-packages), Requirement.parse('charset-normalizer<3.0,>=2.0'), {'aiohttp'})
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/sbin/mbc", line 33, in <module>
sys.exit(load_entry_point('maubot==0.3.1', 'console_scripts', 'mbc')())
File "/sbin/mbc", line 25, in importlib_load_entry_point
return next(matches).load()
File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 171, in load
module = import_module(match.group('module'))
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "/usr/lib/python3.10/site-packages/maubot/__init__.py", line 2, in <module>
from .matrix import MaubotMatrixClient as Client, MaubotMessageEvent as MessageEvent
File "/usr/lib/python3.10/site-packages/maubot/matrix.py", line 24, in <module>
from mautrix.client import Client as MatrixClient, SyncStream
File "/usr/lib/python3.10/site-packages/mautrix/client/__init__.py", line 1, in <module>
from .api import ClientAPI
File "/usr/lib/python3.10/site-packages/mautrix/client/api/__init__.py", line 6, in <module>
from .client import ClientAPI
File "/usr/lib/python3.10/site-packages/mautrix/client/api/client.py", line 6, in <module>
from .authentication import ClientAuthenticationMethods
File "/usr/lib/python3.10/site-packages/mautrix/client/api/authentication.py", line 8, in <module>
from mautrix.api import Method, Path
File "/usr/lib/python3.10/site-packages/mautrix/api.py", line 19, in <module>
from aiohttp import ClientResponse, ClientSession, __version__ as aiohttp_version
File "/usr/lib/python3.10/site-packages/aiohttp/__init__.py", line 212, in <module>
from .worker import GunicornUVLoopWebWorker, GunicornWebWorker
File "/usr/lib/python3.10/site-packages/aiohttp/worker.py", line 11, in <module>
from gunicorn.config import AccessLogFormat as GunicornAccessLogFormat
File "/usr/lib/python3.10/site-packages/gunicorn/config.py", line 20, in <module>
from gunicorn import __version__, util
File "/usr/lib/python3.10/site-packages/gunicorn/util.py", line 25, in <module>
import pkg_resources
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3260, in <module>
def _initialize_master_working_set():
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3234, in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3272, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 583, in _build_master
return cls._build_from_requirements(__requires__)
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 596, in _build_from_requirements
dists = ws.resolve(reqs, Environment())
File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 795, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'charset-normalizer<3.0,>=2.0' distribution was not found and is required by aiohttp
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment