Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python standalone.py doesn't work (Linux)? #1345

Open
GloriaComandini opened this issue Mar 25, 2020 · 5 comments
Open

python standalone.py doesn't work (Linux)? #1345

GloriaComandini opened this issue Mar 25, 2020 · 5 comments

Comments

@GloriaComandini
Copy link

In order to use brat with a standalone server, I'm following the instruction on quick start installation.

I did ./install.sh -u and I've got the usual request to enter a username, pw and email, but then there also is: "WARNING: failed to determine APACHE group"

Then, I wrote the next passage: python standalone.py. The result is:
"Comando <> non trovato, ma può essere installato con:
sudo apt install python3 # version 3.7.5-1, or
sudo apt install python # version 2.7.17-1
sudo apt install python-minimal # version 2.7.17-1
You also have python3 installed, you can run 'python3' instead."

So, I run: python3 standalone.py. But the results are:
"File "standalone.py", line 257
except SystemExit, sts:
^
SyntaxError: invalid syntax"

I'm trying to install Brat on Linux. What should I do?

@Leothi
Copy link

Leothi commented Mar 30, 2020

that's a problem with your python version. you gotta run in with python 2, not 3.
python2 standalone.py

@EBoiSha
Copy link

EBoiSha commented Apr 22, 2022

Support for python3 planned?

@tobiasoleary
Copy link

The latest version on github run on python3.

-Tobias

@EBoiSha
Copy link

EBoiSha commented Apr 25, 2022

Where is that version? Could you please point me to it? Thanks!

@micahcochran
Copy link

Where is that version? Could you please point me to it? Thanks!

In order to install the version from the repository for Python 3.x:

Install git.

Run:

git clone https://github.com/nlplab/brat.git

Then, follow the website's installation instructions for brat.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants