errbotio / errbot

Errbot is a chatbot, a daemon that connects to your favorite chat service and bring your tools and some fun into the conversation.
http://errbot.io
GNU General Public License v3.0
3.08k stars 607 forks source link

problem installing errbot on Ubuntu Jammy Jellyfish 22.04 LTS in Oct 2023 #1662

Closed danhimalplanet closed 5 months ago

danhimalplanet commented 8 months ago

Describe the bug I am unable to run errbot

To Reproduce new install of Ubuntu Jammy Jellyfish 22.04 LTS I create and use a new Python 3.10.12 virtualenv:

$ python3 -m venv .venv
$ source .venv/bin/activate

I have ubuntu package python3-dev installed. I install the errbot pypi module:

$ pip install errbot

running errbot gives an error

$ errbot
Traceback (most recent call last):
  File "/home/ubuntu/clones/errbot-test/.venv/bin/errbot", line 5, in <module>
    from errbot.cli import main
  File "/home/ubuntu/clones/errbot-test/.venv/lib/python3.10/site-packages/errbot/__init__.py", line 19, in <module>
    from .core_plugins.wsview import WebView, route
  File "/home/ubuntu/clones/errbot-test/.venv/lib/python3.10/site-packages/errbot/core_plugins/__init__.py", line 1, in <module>
    from flask.app import Flask
  File "/home/ubuntu/clones/errbot-test/.venv/lib/python3.10/site-packages/flask/__init__.py", line 7, in <module>
    from .app import Flask as Flask
  File "/home/ubuntu/clones/errbot-test/.venv/lib/python3.10/site-packages/flask/app.py", line 28, in <module>
    from . import cli
  File "/home/ubuntu/clones/errbot-test/.venv/lib/python3.10/site-packages/flask/cli.py", line 18, in <module>
    from .helpers import get_debug_flag
  File "/home/ubuntu/clones/errbot-test/.venv/lib/python3.10/site-packages/flask/helpers.py", line 16, in <module>
    from werkzeug.urls import url_quote
ImportError: cannot import name 'url_quote' from 'werkzeug.urls' (/home/ubuntu/clones/errbot-test/.venv/lib/python3.10/site-packages/werkzeug/urls.py)

relevant part of the Traceback is probably:

ImportError: cannot import name 'url_quote' from 'werkzeug.urls' 

Environment (please complete the following information):

Additional context output of pip freeze pip_freeze.txt

lachiewalker commented 6 months ago

pip uninstall werkzeug -> pip install werkzeug==2.2.2

sijis commented 5 months ago

Do you have the same behavior with the latest release?

sijis commented 5 months ago

Closing. Unable to reproduce with latest version.