Hello guys need help,
i"m trying to create another admin user by typing: “pi-manage admin add admin2 -e admin2@MyDom.com”
Then i get this error:
**Traceback (most recent call last):**
** File “/usr/bin/pi-manage”, line 58, in **
** import gnupg**
** File “/opt/privacyidea/local/lib/python2.7/site-packages/gnupg.py”, line 46, in **
** import logging**
** File “/usr/lib/python2.7/logging/init.py”, line 26, in **
** import sys, os, time, cStringIO, traceback, warnings, weakref, collections**
** File “/usr/lib/python2.7/weakref.py”, line 14, in **
** from _weakref import (**
** ImportError: cannot import name _remove_dead_weakref**
This happen after i upgraded to PI v3.0
I assume you are running ubuntu? Please add this information in the future.
From version 2.X to 3.X in privacyIDEA on Ubuntu packages we changed the install mechanism.
While with 2.X privacyIDEA was installed directly into the system, with privacyIDEA 3.X everything is within a vritualenv in /opt/privacyidea.
However, the pi-manage should be linked. Probably you shell has some older pathes cached.
Restart your shell or start /opt/privacyidea/bin/pi-manage.
Thanks for your replay,
Yes i have ubuntu 18.04, i upgraded from 16.04
I clean up old packages, and i found pi-manage like you mention.
I made upgrade to PI 3.1.1 from perivies ver PI 2.X
The new version works fine
I realize another problem.
My NPS 2012 not authenticate with PI 3.1.1.
Freeradius “clients.conf” is back to default.