knadh / tg-archive

A tool for exporting Telegram group chats into static websites like mailing list archives.
MIT License
829 stars 121 forks source link

Cannot install on fedora, yaml module not found. #120

Closed molytov closed 8 months ago

molytov commented 9 months ago

I am trying to install this via pipx, and i get this following error output:

PIP STDOUT
----------
Collecting tg-archive
  Using cached tg-archive-1.1.3.tar.gz (28 kB)
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'error'

PIP STDERR
----------
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [8 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-gpj0gy96/tg-archive_a804bb8ed55148bbb30209760f5c6794/setup.py", line 5, in <module>
          from tgarchive import __version__
        File "/tmp/pip-install-gpj0gy96/tg-archive_a804bb8ed55148bbb30209760f5c6794/tgarchive/__init__.py", line 6, in <module>
          import yaml
      ModuleNotFoundError: No module named 'yaml'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

It says that I don't have the yaml module installed, even though I actually do have it.