Я сохраняю успешно выполненные операции merkletools в обычных скриптах на python. Но при работе со скриптами CGI я не могу импортировать библиотеку merkletools, используя from merkletools import MerkleTools
. Есть ли какое-то решение для этого?
Я работаю на сервере apache2. Журнал ошибок apache2 выглядит следующим образом
[Tue Oct 30 17:16:13.309058 2018] [cgi:error] [pid 23964:tid 139710529734400] [client 192.168.2.91:51042] AH01215: Traceback (most recent call last):: /var/www/cgi-bin/file.py, referer: http://192.168.2.91/
[Tue Oct 30 17:16:13.309199 2018] [cgi:error] [pid 23964:tid 139710529734400] [client 192.168.2.91:51042] AH01215: File "/var/www/cgi-bin/file.py", line 2, in <module>: /var/www/cgi-bin/file.py, referer: http://192.168.2.91/
[Tue Oct 30 17:16:13.309254 2018] [cgi:error] [pid 23964:tid 139710529734400] [client 192.168.2.91:51042] AH01215: : /var/www/cgi-bin/file.py, referer: http://192.168.2.91/
[Tue Oct 30 17:16:13.309299 2018] [cgi:error] [pid 23964:tid 139710529734400] [client 192.168.2.91:51042] AH01215: from merkletools import MerkleTools: /var/www/cgi-bin/file.py, referer: http://192.168.2.91/
[Tue Oct 30 17:16:13.309345 2018] [cgi:error] [pid 23964:tid 139710529734400] [client 192.168.2.91:51042] AH01215: ImportError: /var/www/cgi-bin/file.py, referer: http://192.168.2.91/
[Tue Oct 30 17:16:13.309386 2018] [cgi:error] [pid 23964:tid 139710529734400] [client 192.168.2.91:51042] AH01215: : : /var/www/cgi-bin/file.py, referer: http://192.168.2.91/
[Tue Oct 30 17:16:13.309428 2018] [cgi:error] [pid 23964:tid 139710529734400] [client 192.168.2.91:51042] AH01215: No module named merkletools: /var/www/cgi-bin/file.py, referer: http://192.168.2.91/
[Tue Oct 30 17:16:13.309449 2018] [cgi:error] [pid 23964:tid 139710529734400] [client 192.168.2.91:51042] AH01215: : /var/www/cgi-bin/file.py, referer: http://192.168.2.91/
[Tue Oct 30 17:16:13.311719 2018] [cgi:error] [pid 23964:tid 139710529734400] [client 192.168.2.91:51042] End of script output before headers: file.py, referer: http://192.168.2.91/