siyuan icon indicating copy to clipboard operation
siyuan copied to clipboard

Problem with running webui-standalone.py

Open MartinEichner opened this issue 6 years ago • 4 comments

I have downloaded and unpacked "recoll-webui-master.zip" and I try to start the standalone version by running the command ./webui-standalone.py on a bash command line, but I receive the following output: Traceback (most recent call last): File "./webui-standalone.py", line 4, in import webui File "/home/eichner/Desktop/recoll-webui-master/webui.py", line 23, in import recoll ImportError: No module named recoll I have also tried adding the command line arguments "-a" and "-p", but that does not resolve the issue. What do I do wrong? System information: recoll 1.13.7 + Xapian 1.2.22 are running successfully on a machine with Linux Mint 18.3 (64bit) and Mate 1.18.0 (Linux Kernel 4.10.0-38-generic x86_64).

I have just seen that a similar issue was posted long ago. The solution seems to have been to remove and reinstall python. I have python version 2.7.12 installed on my system. I would rather not remove it because I am afraid that this may lead to unwanted side effects. Is there another way to fix this?

MartinEichner avatar Mar 07 '18 09:03 MartinEichner

sudo apt-get install python-recoll

Done ;)

kero99 avatar Mar 07 '18 12:03 kero99

Thank you. This solved my problem. At least, I no longer receive this error message. After sending the command, I get

:3:common/rclinit.cpp:308::Configuration directory: /home/eichner/.recoll Bottle server starting up (using WSGIRefServer())... Listening on http://localhost:8080/ Hit Ctrl-C to quit.

I expected that a user-interface would open next, but nothing happened for quite a long time. Do I need to channel the output into firefox somehow although this is the standalone version? Or is this a problem caused by a firewall?

MartinEichner avatar Mar 07 '18 13:03 MartinEichner

This is a web-based user interface so you need to open it in a browser (the name "standalone" refers to using a built-in http server rather than nginx or apache).

Go to http://localhost:8080 in your web browser.

Also, Recoll itself needs to be configured before you can use the webui.

koniu avatar Mar 07 '18 21:03 koniu

Thank you. This worked.

MartinEichner avatar Mar 07 '18 22:03 MartinEichner