brat on WSL/Ubuntu18.04 (standalone) not working

73 views
Skip to first unread message

Mukund Parthasarathy

unread,
Jun 22, 2020, 3:55:53 PM6/22/20
to brat-users
Hello all-
 I'm trying to get standalone mode brat working. Running in to 'server crash' and 'severe error' messages, looking for some pointers (understand python3 support might still be WIP, is it best not to try with Python v3.x?). Any pointers or help is appreciated:

-Cloned the github repo
-ran install.sh -u, ensured 'work' and 'data' dir both have 777 (recursive) perms
-used sudo -u <uid> to start up standalone.py
-using python 3.8.2/Chrome latest 
-UI reports "server Crash" and 2 other 'server encountered a serious error' with id's traceable to local log files(?)
-although running in standalone mode, running troubleshooting.sh gives the following message:
   tools/troubleshooting.sh http://localhost:8001
Didn't receive json data when accessing "http://localhost:8001/ajax.cgi".
Have you perhaps forgotten to add a handler for CGI in your web server configuration?

-CLI console error message 
- Error Traceback (most recent call last):
  File "server/src/server.py", line 338, in serve
    return _safe_serve(params, client_ip, client_hostname, cookie_data)
  File "server/src/server.py", line 175, in _safe_serve
    from dispatch import dispatch
  File "server/src/dispatch.py", line 31, in <module>
    from norm import norm_get_data, norm_get_name, norm_search
  File "server/src/norm.py", line 12, in <module>
    from simstringdb import Simstring
  File "server/src/simstringdb.py", line 19, in <module>
    import simstringexec
  File "server/src/simstringexec.py", line 13, in <module>
    simstring_found = isfile(SIMSTRING_EXECUTABLE)
  File "/usr/lib/python3.8/genericpath.py", line 30, in isfile
    st = os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType message in the terminal when I try to reload the index page:

 



Goran Topic

unread,
Jun 23, 2020, 12:32:41 AM6/23/20
to brat-...@googlegroups.com
Oopsie, I guess I flubbed the default there, the error pops up when simstring is not set.
Should be fixed now; can you try to git pull and try again?

Goran

--

---
You received this message because you are subscribed to the Google Groups "brat-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brat-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/brat-users/84c6ef56-f53b-4b91-b2c6-5a39f637fe19o%40googlegroups.com.

Mukund Parthasarathy

unread,
Jun 23, 2020, 1:41:26 AM6/23/20
to brat-...@googlegroups.com
That fixed it! Thank you, Goran.

Regards,
--Mukund

You received this message because you are subscribed to a topic in the Google Groups "brat-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/brat-users/usLchu84Du4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to brat-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/brat-users/CAGMASUP3B%2B2H%3DpUQjog0MGb2T8smEWd%3D7EeECPOzwJKuOAzhrQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages