Open titanotom opened 1 year ago
What version are you running? 0.32.0, where we finally took the step to Python 3? How are you serving the web UI? You probably need to install a Python 3 capable WSGI server.
If you're using the Debian packages you should've gotten a notification regarding that during the upgrade.
nipapd and nipap-www is the newest version (0.31.2-1) and i already install libapache2-mod-wsgi-py3.
What a notification?the only notification i got when i ran apt upgrade was the option of configure randomized secret_key.
Okay, that's odd.. I presume you have restarted Apache? If you just start an interactive Python 3 interpreter, can you import nipapwww?
What distribution are you running NIPAP on?
Yes i have restarted apache and nipapd. How to import nipapwww?
I'm running on ubuntu 16.04
Just run python3
in a shell and then import nipapwww
.
Ubuntu 16.04 ships with Python 3.5, I haven't tested NIPAP with versions < 3.6. Automated tests are run on Ubuntu 20.04, I've tested manually on 18.04. Would you consider a dist upgrade?
This what i got when tried to import nipapwww on version 3.5 and 3.8
Python 3.5.2 (default, Jan 26 2021, 13:30:48)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nipapwww
Traceback (most recent call last):
File "
Python 3.8.6 (default, Dec 6 2020, 14:28:49)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
*>>> import nipapwww
Traceback (most recent call last):
File "
Original exception was:
Traceback (most recent call last):
File "
same over here...
import nipapwww Traceback (most recent call last): File "
", line 1, in ImportError: No module named nipapwww
running ubuntu 20.04.6
Getting the same type of error. Anyone got a fix for this on Ubuntu 20.04?
I got internal server error on nipap web UI after upgrade. This the log
[Wed Oct 25 17:20:30.716799 2023] [wsgi:error] Traceback (most recent call last): [Wed Oct 25 17:20:30.716823 2023] [wsgi:error] File "/etc/nipap/www/nipap-www.wsgi", line 7, in
[Wed Oct 25 17:20:30.716827 2023] [wsgi:error] from nipapwww import create_app
[Wed Oct 25 17:20:30.716837 2023] [wsgi:error] ImportError: No module named 'nipapwww'
[Wed Oct 25 17:20:30.859976 2023] [wsgi:error] mod_wsgi (pid=30011): Target WSGI script '/etc/nipap/www/nipap-www.wsgi' cannot be loaded as Python module., referer: https://ipam.te.net.id/
[Wed Oct 25 17:20:30.860010 2023] [wsgi:error] mod_wsgi (pid=30011): Exception occurred processing WSGI script '/etc/nipap/www/nipap-www.wsgi'., referer: https://ipam.te.net.id/
[Wed Oct 25 17:20:30.860062 2023] [wsgi:error] Traceback (most recent call last):, referer: https://ipam.te.net.id/
[Wed Oct 25 17:20:30.860079 2023] [wsgi:error] File "/etc/nipap/www/nipap-www.wsgi", line 7, in , referer: https://ipam.te.net.id/
[Wed Oct 25 17:20:30.860082 2023] [wsgi:error] from nipapwww import create_app, referer: https://ipam.te.net.id/
[Wed Oct 25 17:20:30.860092 2023] [wsgi:error] ImportError: No module named 'nipapwww', referer: https://ipam.te.net.id/
is it something wrong with nipapwww?