Onionshare error

Hello when I try to launch onionshare-gui I get this error :

OnionShare 2.2 | https://onionshare.org/
Traceback (most recent call last):
  File "/usr/bin/onionshare-gui", line 22, in <module>
    onionshare_gui.main()
  File "/usr/lib/python3/dist-packages/onionshare_gui/__init__.py", line 142, in main
    gui = OnionShareGui(common, onion, qtapp, app, filenames, config, local_only)
  File "/usr/lib/python3/dist-packages/onionshare_gui/onionshare_gui.py", line 172, in __init__
    self.share_mode.init()
  File "/usr/lib/python3/dist-packages/onionshare_gui/mode/share_mode/__init__.py", line 48, in init
    self.web = Web(self.common, True, "share")
  File "/usr/lib/python3/dist-packages/onionshare/web/web.py", line 77, in __init__
    self.generate_static_url_path()
  File "/usr/lib/python3/dist-packages/onionshare/web/web.py", line 166, in generate_static_url_path
    self.app.add_url_rule(
  File "/home/lefaucheur/.local/lib/python3.9/site-packages/flask/scaffold.py", line 57, in wrapper_func
    return f(self, *args, **kwargs)
  File "/home/lefaucheur/.local/lib/python3.9/site-packages/flask/app.py", line 1090, in add_url_rule
    raise AssertionError(
AssertionError: View function mapping is overwriting an existing endpoint function: static

did someone know how to fix this ?

I use the terminal version, its just;

onionshare
OnionShare 2.2 | https://onionshare.org/
usage: onionshare [-h] [--local-only] [--stay-open] [--auto-start-timer <int>]
                  [--auto-stop-timer <int>] [--connect-timeout <int>]
                  [--stealth] [--receive] [--website] [--config config] [-v]
                  [filename ...]

positional arguments:
  filename                  List of files or folders to share

optional arguments:
  -h, --help                show this help message and exit
  --local-only              Don't use Tor (only for development)
  --stay-open               Continue sharing after files have been sent
  --auto-start-timer <int>  Schedule this share to start N seconds from now
  --auto-stop-timer <int>   Stop sharing after a given amount of seconds
  --connect-timeout <int>   Give up connecting to Tor after a given amount of
                            seconds (default: 120)
  --stealth                 Use client authorization (advanced)
  --receive                 Receive shares instead of sending them
  --website                 Publish a static website
  --config config           Custom JSON config file location (optional)
  -v, --verbose             Log OnionShare errors to stdout, and web errors to
                            disk

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.