Hi all,
it is my second attempt with sonospy, after getting it to work on Windwos environment I’m making the next move to get it running under Linux on a QNAP NAS-TS-451A now,
[/share/Music/a-ha] # uname -a
Linux NAS-TS-451A 4.14.24-qnap #1 SMP Fri Feb 14 08:35:20 CST 2020 x86_64 GNU/Linux
running Python 2.7.5 (default, Feb 14 2020, 09:11:18).
Currently I'm failing on initial DB scan with the following errors:
[~/sonospy/sonospy-msrefactor5/sonospy] # ./scan.py -v -d Sonospy.db /share/Music/a-ha > Test.log
Traceback (most recent call last):
File "./gettags.py", line 46, in <module>
from movetags import empty_database
File "/root/sonospy/sonospy-msrefactor5/sonospy/movetags.py", line 36, in <module>
import errors
File "/root/sonospy/sonospy-msrefactor5/sonospy/errors.py", line 1, in <module>
import sys, cgitb
ImportError: No module named cgitb
From the posts in the group I checked the following possibilities:
Accessright to sonospy directory looks good to me:
[~/sonospy/sonospy-msrefactor5] # pwd
/root/sonospy/sonospy-msrefactor5
[~/sonospy/sonospy-msrefactor5] # ls -l| grep sonospy
drwxrwxrwx 16 admin administrators 1400 2020-12-01 19:29 sonospy/
Access rights to write to directory is also fine:
[~/sonospy/sonospy-msrefactor5/sonospy] # touch sonospy.db
[~/sonospy/sonospy-msrefactor5/sonospy] # ll *db
-rw-r--r-- 1 admin administrators 0 2020-12-01 19:51 sonospy.db
And the Language variable looks also fine:
[~/sonospy/sonospy-msrefactor5/sonospy] # echo $LANG
en_US.UTF-8
Any ideas would be greatly appreciated.
Thanks,
Jens
Hi,
It's complaining about not being able to find the cgitb module in the Python installation. That module is supplied with Python.
Can you try running python from the command line, and then running the import interactively please
python
import cgitb
Thanks, Mark.
--
You received this message because you are subscribed to the Google Groups "Sonospy Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonospy-deve...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonospy-devel/d52e5cb1-c5ea-4397-9300-30fd994013f4n%40googlegroups.com.
Ok, so Python can't find the module.
Can you run ls on the folder where Python is installed, something like /usr/lib64/python2.7 - there should be cgitb.py, along with lots of other modules, with appropriate perms.
This is a snip from the listing on my Linux machine:
-rw-r--r-- 1 root root 13089 Oct 14
10:35 CGIHTTPServer.py
-rw-r--r-- 2 root root 11018 Oct 14 10:36 CGIHTTPServer.pyc
-rw-r--r-- 2 root root 11018 Oct 14 10:36 CGIHTTPServer.pyo
-rwxr-xr-x 1 root root 35797 Oct 14 10:35 cgi.py
-rw-r--r-- 2 root root 33124 Oct 14 10:36 cgi.pyc
-rw-r--r-- 2 root root 33124 Oct 14 10:36 cgi.pyo
-rw-r--r-- 1 root root 12175 Oct 14 10:35 cgitb.py
-rw-r--r-- 2 root root 12138 Oct 14 10:36 cgitb.pyc
-rw-r--r-- 2 root root 12138 Oct 14 10:36 cgitb.pyo
-rw-r--r-- 1 root root 5419 Oct 14 10:35 chunk.py
-rw-r--r-- 2 root root 5602 Oct 14 10:36 chunk.pyc
-rw-r--r-- 2 root root 5602 Oct 14 10:36 chunk.pyo
To view this discussion on the web, visit https://groups.google.com/d/msgid/sonospy-devel/6be7f722-b1a5-4a0d-9a65-20ab71dcafb1n%40googlegroups.com.