zeratax / matrix-registration

a token based matrix registration api
https://zeratax.github.io/matrix-registration/
MIT License
227 stars 41 forks source link

install error on Ubuntu 22.04 #95

Closed illspirit closed 2 years ago

illspirit commented 2 years ago

How did you install matrix-registration?

pip

What python version are you running?

No response

What version of matrix-registration are you running?

0.9.1

Your config.yml

No response

Your error log

Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: matrix-registration in ./.local/lib/python3.10/site-packages (0.9.1.post1)
Requirement already satisfied: flask-limiter>=1.1.0 in ./.local/lib/python3.10/site-packages (from matrix-registration) (2.0.1)
Requirement already satisfied: SQLAlchemy<1.4,>=1.3.13 in ./.local/lib/python3.10/site-packages (from matrix-registration) (1.3.24)
Requirement already satisfied: Flask-SQLAlchemy~=2.4.1 in ./.local/lib/python3.10/site-packages (from matrix-registration) (2.4.4)
Requirement already satisfied: appdirs~=1.4.3 in ./.local/lib/python3.10/site-packages (from matrix-registration) (1.4.4)
Requirement already satisfied: waitress~=1.4.4 in ./.local/lib/python3.10/site-packages (from matrix-registration) (1.4.4)
Requirement already satisfied: flask-cors~=3.0.7 in ./.local/lib/python3.10/site-packages (from matrix-registration) (3.0.10)
Requirement already satisfied: alembic>=1.3.2 in ./.local/lib/python3.10/site-packages (from matrix-registration) (1.7.7)
Requirement already satisfied: PyYAML~=5.1 in /usr/lib/python3/dist-packages (from matrix-registration) (5.4.1)
Requirement already satisfied: Flask~=1.1 in ./.local/lib/python3.10/site-packages (from matrix-registration) (1.1.4)
Requirement already satisfied: requests>=2.22 in /usr/lib/python3/dist-packages (from matrix-registration) (2.25.1)
Requirement already satisfied: WTForms~=2.1 in ./.local/lib/python3.10/site-packages (from matrix-registration) (2.3.3)
Requirement already satisfied: flask-httpauth>=3.3.0 in ./.local/lib/python3.10/site-packages (from matrix-registration) (4.6.0)
Requirement already satisfied: Mako in ./.local/lib/python3.10/site-packages (from alembic>=1.3.2->matrix-registration) (1.2.0)
Requirement already satisfied: Jinja2<3.0,>=2.10.1 in ./.local/lib/python3.10/site-packages (from Flask~=1.1->matrix-registration) (2.11.3)
Requirement already satisfied: itsdangerous<2.0,>=0.24 in ./.local/lib/python3.10/site-packages (from Flask~=1.1->matrix-registration) (1.1.0)
Requirement already satisfied: Werkzeug<2.0,>=0.15 in ./.local/lib/python3.10/site-packages (from Flask~=1.1->matrix-registration) (1.0.1)
Requirement already satisfied: click<8.0,>=5.1 in ./.local/lib/python3.10/site-packages (from Flask~=1.1->matrix-registration) (7.1.2)
Requirement already satisfied: Six in /usr/lib/python3/dist-packages (from flask-cors~=3.0.7->matrix-registration) (1.16.0)
Requirement already satisfied: limits in ./.local/lib/python3.10/site-packages (from flask-limiter>=1.1.0->matrix-registration) (2.6.1)
Requirement already satisfied: MarkupSafe in /usr/lib/python3/dist-packages (from WTForms~=2.1->matrix-registration) (2.0.1)
Requirement already satisfied: typing-extensions in ./.local/lib/python3.10/site-packages (from limits->flask-limiter>=1.1.0->matrix-registration) (4.2.0)
Requirement already satisfied: packaging<22,>=21 in ./.local/lib/python3.10/site-packages (from limits->flask-limiter>=1.1.0->matrix-registration) (21.3)
Requirement already satisfied: deprecated>=1.2 in ./.local/lib/python3.10/site-packages (from limits->flask-limiter>=1.1.0->matrix-registration) (1.2.13)
Requirement already satisfied: setuptools in /usr/lib/python3/dist-packages (from limits->flask-limiter>=1.1.0->matrix-registration) (59.6.0)
Requirement already satisfied: wrapt<2,>=1.10 in ./.local/lib/python3.10/site-packages (from deprecated>=1.2->limits->flask-limiter>=1.1.0->matrix-registration) (1.14.0)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in /usr/lib/python3/dist-packages (from packaging<22,>=21->limits->flask-limiter>=1.1.0->matrix-registration) (2.4.7)

and 

Traceback (most recent call last):
  File "/usr/local/bin/matrix-registration", line 5, in <module>
    from matrix_registration.app import cli
  File "/home/illspirit/.local/lib/python3.10/site-packages/matrix_registration/app.py", line 9, in <module>
    from flask_limiter.util import get_ipaddr
ImportError: cannot import name 'get_ipaddr' from 'flask_limiter.util' (/home/illspirit/.local/lib/python3.10/site-packages/flask_limiter/util.py)

Area of your issue?

installation

What happened

I didn't make it too far in the installation. What am I doing wrong here?

Steps to reproduce

No response

xelantro commented 2 years ago

Duplicate of #84

Hey there! This issue was caused by an update of flask_limiter and fixed. Unfortunately the project owner couln't update the pip image yet, so you will have clone the repo and run it directly with python for now.

Im leaving this open if you need further help, please close it when it works :)

illspirit commented 2 years ago

Thank you!