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

Not able to pull polyglot files #1

Open
rupesh-terase opened this issue Jul 27, 2019 · 7 comments
Open

Not able to pull polyglot files #1

rupesh-terase opened this issue Jul 27, 2019 · 7 comments

Comments

@rupesh-terase
Copy link

rupesh-terase commented Jul 27, 2019

polyglot download LANG:en
tellusererror POLYGLOT: main(): Can't open config file "polyglot.ini": No such file or directory

OR
polyglot
tellusererror POLYGLOT: pipex_open(): execvp(): ../nlpserver: Permission denied

I made polyglot.ini file in root directory and run command which give me following error

tellusererror POLYGLOT: pipex_open(): execvp(): ../nlpserver: Permission denied

polyglot.ini file

[PolyGlot]

EngineDir = .
EngineCommand = ../nlpserver

Book = false
BookFile = book.bin

Log = false
LogFile = nlpserver.log

Resign = true
ResignScore = 600

[Engine]

Write Debug Log = false
Write Search Log = false
Search Log Filename = SearchLog.txt
Book File = book.bin
Best Book Move = false
Contempt Factor = 0
Mobility (Midgame) = 100
Mobility (Endgame) = 100
Pawn Structure (Midgame) = 100
Pawn Structure (Endgame) = 100
Passed Pawns (Midgame) = 100
Passed Pawns (Endgame) = 100
Space = 100
King Safety = 100
Min Split Depth = 0
Threads = 1
Hash = 128
Ponder = true
OwnBook = false
MultiPV = 1
Skill Level = 20
Emergency Move Horizon = 40
Emergency Base Time = 200
Emergency Move Time = 70
Minimum Thinking Time = 20
Slow Mover = 100
UCI_Chess960 = false

Help plz!

@adna9
Copy link

adna9 commented Sep 22, 2019

facing same issue

@duke199
Copy link

duke199 commented Nov 13, 2019

Help me add 14 line in nlpserver.py you project:

app.config['JSON_AS_ASCII'] = False

The line will give the Server opportunity worked with any Languages.

@duke199
Copy link

duke199 commented Nov 13, 2019

polyglot download LANG:en
tellusererror POLYGLOT: main(): Can't open config file "polyglot.ini": No such file or directory

OR
polyglot
tellusererror POLYGLOT: pipex_open(): execvp(): ../nlpserver: Permission denied

I made polyglot.ini file in root directory and run command which give me following error

tellusererror POLYGLOT: pipex_open(): execvp(): ../nlpserver: Permission denied

polyglot.ini file

[PolyGlot]

EngineDir = .
EngineCommand = ../nlpserver

Book = false
BookFile = book.bin

Log = false
LogFile = nlpserver.log

Resign = true
ResignScore = 600

[Engine]

Write Debug Log = false
Write Search Log = false
Search Log Filename = SearchLog.txt
Book File = book.bin
Best Book Move = false
Contempt Factor = 0
Mobility (Midgame) = 100
Mobility (Endgame) = 100
Pawn Structure (Midgame) = 100
Pawn Structure (Endgame) = 100
Passed Pawns (Midgame) = 100
Passed Pawns (Endgame) = 100
Space = 100
King Safety = 100
Min Split Depth = 0
Threads = 1
Hash = 128
Ponder = true
OwnBook = false
MultiPV = 1
Skill Level = 20
Emergency Move Horizon = 40
Emergency Base Time = 200
Emergency Move Time = 70
Minimum Thinking Time = 20
Slow Mover = 100
UCI_Chess960 = false

Help plz!

I too can't do it.
But i find decision.

You need install pip3 and pip.
i.e.
python-pip
python3-pip

After you must do
pip install polyglot
pip3install polyglot

and only then

polyglot download LANG=en

Also try in Server LTS Ubuntu 18.04 (in Ubuntu 16.04 - don't worked ...):

git clone https://github.com/web64/nlpserver.git
cd nlpserver

apt install pkg-config
apt-get install -y libicu-dev python3-pip
apt-get install -y python-pip
apt-get install -y python-numpy
pip3 install pyicu
pip3 install numpy
pip3 install Flask
pip install polyglot
pip3 install polyglot
pip3 install morfessor
pip3 install langid
pip3 install newspaper3k
pip3 install pycld2
pip3 install gensim
pip3 install -U spacy
pip3 install readability-lxml
pip3 install BeautifulSoup4
pip3 install afinn
pip3 install textblob

polyglot download LANG:en
polyglot download LANG:ru

In the file nlpserver.py you must adding 14 line "app.config['JSON_AS_ASCII'] = False" and reboot you computer :)

@duke199
Copy link

duke199 commented Nov 13, 2019

Hello, developments!
The server is beautifull!
I would like to ask you to add term search in a text frome http, https.
Thank you!

@safciplak
Copy link

In the file nlpserver.py you must adding 14 line "app.config['JSON_AS_ASCII'] = False" and reboot you computer :)

Thank you so much, lots of love, I reboot the system. It'll be working fine now.

@ottsch
Copy link

ottsch commented Dec 22, 2019

Solution for me: Don't run sudo apt-get install polyglot, this is something else.

@ve2gmr
Copy link

ve2gmr commented Nov 20, 2020

Solution for me: Don't run sudo apt-get install polyglot, this is something else.

This installs a different polyglot library.

The documentation needs to be updated to specify: python3 -m polyglot download LANG:en

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

6 participants