Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installing on Bullseye throws errors #2

Open
axlgit opened this issue May 9, 2022 · 2 comments
Open

Installing on Bullseye throws errors #2

axlgit opened this issue May 9, 2022 · 2 comments

Comments

@axlgit
Copy link

axlgit commented May 9, 2022

  1. While trying to install Django-FreeRadius-Manager on Debian 11/bullseye I got these errors
amac@django-test:~/django_projects/locallibrary$ sudo apt install python3 python3-dev libmariadbclient-dev python3-pip
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package libmariadbclient-dev is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  libmariadb-dev-compat libmariadb-dev

E: Package 'libmariadbclient-dev' has no installation candidate

Maybe it's just a matter of updating the doc to make installation more straight/forward.
The command

apt/get install libmariadb-dev-compat libmariadb-dev

works perfectly.

(env) root@django-test:/opt/django-freeradius-manager/freerad_manager# sudo mysql -u root -e "CREATE DATABASE IF NOT EXISTS radius; GRANT ALL ON radius.* TO radius@'%' IDENTIFIED BY '$RADIUS_PWD'; \
flush privileges;"
ERROR 1133 (28000) at line 1: Can't find any matching row in the user table

Launching mysql on its own and issueing each single command at time works.

(env) root@django-test:/opt/django-freeradius-manager/freerad_manager# ./manage.py migrate
Traceback (most recent call last):
[skipped]
ImportError: cannot import name 'encodestring' from 'base64' (/usr/lib/python3.9/base64.py)

Found the solution here

Replace any occurence of "encodestring" with "encodebytes" in /opt/django-freeradius-manager/freerad_manager/django_freeradius/models.py

@peppelinux
Copy link
Member

Thankyou, docker would be the answer

@peppelinux
Copy link
Member

Well, It seems a problem with your python environment

Try virtualenv

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants