aahnik / tgcf

The ultimate tool to automate custom telegram message forwarding. Live-syncer, Auto-poster, backup-bot, cloner, chat-forwarder, duplicator, ... Call it whatever you like! tgcf can fulfill your custom needs.
https://github.com/aahnik/tgcf/wiki
MIT License
1.38k stars 811 forks source link

"tgcf-web" command gives this error on Mac #594

Open manjulsigdel opened 7 months ago

manjulsigdel commented 7 months ago

Traceback (most recent call last): File "/Users/manjulsigdel/Projects/my-tgcf/.venv/bin/tgcf-web", line 8, in sys.exit(main()) ^^^^^^ File "/Users/manjulsigdel/Projects/my-tgcf/.venv/lib/python3.12/site-packages/tgcf/web_ui/run.py", line 8, in main package_dir = resources.path(package=wu, resource="").enter() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/resources/_legacy.py", line 25, in wrapper return func(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/resources/_legacy.py", line 120, in path return _common.as_file(_common.files(package) / normalize_path(resource))


  File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/resources/abc.py", line 133, in __truediv__
    return self.joinpath(child)
           ^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/resources/readers.py", line 92, in joinpath
    return super().joinpath(*descendants)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/homebrew/Cellar/python@3.12/3.12.3/Frameworks/Python.framework/Versions/3.12/lib/python3.12/importlib/resources/abc.py", line 117, in joinpath
    target = next(names)
             ^^^^^^^^^^^
StopIteration

**How to reproduce**
Just installed following Readme

python version 3.12.3
pip version 24.0
Macbook Air M1 Chip
a-dev1 commented 6 months ago

I am also facing the same issue on Mac.

a-dev1 commented 6 months ago

@aahnik @nmaiti @MobCode100 @FloPinguin @Matt3oV , I guess most of the mac users are facing the same issue, please look into the matter as soon as possible.

dymbox commented 6 months ago

Same here, python3.12, neither downloaded .pkg, nor brew installed works

shaotingchang commented 6 months ago

In the same boat over here. Any help would be greatly appreciated!

EverLife0-0 commented 3 months ago

same here: mac m1, windows 10. both have python 3.12

nmaiti commented 3 months ago

please use docker based deployments, for compatibility issues