harpoon icon indicating copy to clipboard operation
harpoon copied to clipboard

Telethon issue running on MacOS

Open mbower opened this issue 7 years ago • 3 comments

I'm having an issue getting harpoon to run on MacOS. It worked previously, but python was upgraded and broke something.

OS version: 10.13.5 Python: 3.7.0

I get the following trying to run harpoon config

Traceback (most recent call last):
  File "/usr/local/bin/harpoon", line 11, in <module>
    load_entry_point('harpoon==0.1.1', 'console_scripts', 'harpoon')()
  File "/usr/local/lib/python3.7/site-packages/harpoon/main.py", line 31, in main
    plugins = init_plugins()
  File "/usr/local/lib/python3.7/site-packages/harpoon/main.py", line 18, in init_plugins
    mod = __import__(plugin)
  File "/usr/local/lib/python3.7/site-packages/harpoon/commands/telegram.py", line 12, in <module>
    from telethon.errors.rpc_error_list import ChatAdminRequiredError
ModuleNotFoundError: No module named 'telethon.errors.rpc_error_list'

Telethon version: 1.0.2

mbower avatar Jul 06 '18 18:07 mbower

That's very likely a bug with the v1 of Telethon (which has a very active development), I need to have a look at the v1 API to fix that

Te-k avatar Jul 06 '18 22:07 Te-k

Getting an identical error here

Timbosec avatar Jul 24 '18 05:07 Timbosec

The current harpoon version works with Telethon 0.18.3.

I have updated the requirements to force the usage of this version. You can also install it manually with pip install Telethon==0.18.3

Te-k avatar Aug 31 '18 10:08 Te-k