Annotald / annotald

A program for annotation in the Penn Treebank format
GNU General Public License v3.0
8 stars 3 forks source link

Installation error #96

Open catarinamagro opened 4 years ago

catarinamagro commented 4 years ago

I just installed Annotald on a new MacBook Pro, but I can't make it work. The relevant data is as follows:

operating system: macOS Mojave 10.14.6 python version (pre-installed): 2.7.10 pip command: 6.1.1 from /Library/Python/2.7/site-packages annotald: installed to /usr/local/bin error message: 

MacBook-Pro-de-informatica:bin cmagro$ annotald /Users/cmagro/Documents/CLUL/anotacao/textos_ps/xix/CARDS0001.psd  Traceback (most recent call last):   File "/usr/local/bin/annotald", line 14, in     import annotald.treedrawing   File "/Library/Python/2.7/site-packages/annotald/treedrawing.py", line 39, in     import cherrypy   File "/Library/Python/2.7/site-packages/cherrypy/init.py", line 66, in     from ._cperror import (   File "/Library/Python/2.7/site-packages/cherrypy/_cperror.py", line 123, in     import urllib.parse ImportError: No module named parse

Could anyone help me?

aecay commented 4 years ago

Please enter the following commands:

sudo pip uninstll cherrypy
sudo pip install "cherrypy<18"

And try annotald again. This should fix your problem, but please let me know if it does not.

catarinamagro commented 4 years ago

Thank you for your prompt answer. Now I get a different error message:

Traceback (most recent call last): File "/usr/local/bin/annotald", line 14, in import annotald.treedrawing File "/Library/Python/2.7/site-packages/annotald/treedrawing.py", line 39, in import cherrypy File "/Library/Python/2.7/site-packages/cherrypy/init.py", line 66, in from ._cperror import ( File "/Library/Python/2.7/site-packages/cherrypy/_cperror.py", line 129, in from more_itertools import always_iterable File "/Library/Python/2.7/site-packages/more_itertools/init.py", line 1, in from more_itertools.more import # noqa File "/Library/Python/2.7/site-packages/more_itertools/more.py", line 340 def _collate(iterables, key=lambda a: a, reverse=False): ^ SyntaxError: invalid syntax

aecay commented 4 years ago

You will need to try the following commands:

sudo pip uninstall more_itertools
sudo pip install "more_itertools<6"

Python 2.7 is a very old version, and it will stop being supported on Dec 31. I will see if I can find time before then to migrate to Python 3 and fix these and similar issues.

catarinamagro commented 4 years ago

Thank you very much for your help, Aaron. The problem is solved for now! When you migrate to Python 3, please let me know.

cdsapp commented 1 year ago

@aecay migrating to Python 3 would be great. We keep running into invalid certificate issues whenever we install annotald on a new machine.