buckket / twtxt

Decentralised, minimalist microblogging service for hackers.
http://twtxt.readthedocs.org/en/stable/
MIT License
1.91k stars 79 forks source link

Fix for #149 #159

Closed KenwoodFox closed 1 year ago

KenwoodFox commented 3 years ago

Though this does not solve the issue yet i'll keep experimenting to see what does.

This should eventually fix #149

KenwoodFox commented 3 years ago

Ok so changing the ver in setup didn't work, idk why I was so hopeful it would.

KenwoodFox commented 2 years ago

Its been a while so i went back and got the exact error.

❯ twtxt
/usr/lib/python3.10/site-packages/pkg_resources/__init__.py:116: PkgResourcesDeprecationWarning: 2.0.5-build-libtorrent-rasterbar-src-libtorrent-rasterbar-2.0.5-bindings-python 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 573, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 891, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 782, in resolve
    raise VersionConflict(dist, req).with_context(dependent_req)
pkg_resources.ContextualVersionConflict: (click 8.0.3 (/home/joe/.local/lib/python3.10/site-packages), Requirement.parse('click<7,>=6.7'), {'twtxt'})

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/twtxt", line 33, in <module>
    sys.exit(load_entry_point('twtxt==1.2.3', 'console_scripts', 'twtxt')())
  File "/usr/bin/twtxt", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.10/importlib/metadata/__init__.py", line 162, 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 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/twtxt/cli.py", line 20, in <module>
    from twtxt.config import Config
  File "/usr/lib/python3.10/site-packages/twtxt/config.py", line 17, in <module>
    from twtxt.models import Source
  File "/usr/lib/python3.10/site-packages/twtxt/models.py", line 13, in <module>
    import humanize
  File "/usr/lib/python3.10/site-packages/humanize/__init__.py", line 2, in <module>
    import pkg_resources
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3266, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3240, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3278, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 575, in _build_master
    return cls._build_from_requirements(__requires__)
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 588, in _build_from_requirements
    dists = ws.resolve(reqs, Environment())
  File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 777, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'click<7,>=6.7' distribution was not found and is required by twtxt

Ill double check to make sure this fix actually fixes the issue, then mark ready for review.

buckket commented 1 year ago

Just merged a PR which also bumps the click dependency. Thanks for your effort!