Closed LC740 closed 4 years ago
I think that f' x... {var} x' string functionality was added in python 3.6. It's not really needed in that file though. I just edited it in the git repo. Can you try reinstalling? If you used pip to install, you can run:
pip install git+https://github.com/quadrismegistus/prosodic
Update: fixed again @ 14:48 GMT
I uninstalled and reinstsalled prosodic (I used pip both times). This is the result:
Traceback (most recent call last):
File "/usr/local/bin/prosodic", line 5, in
I see, it looks like prosodic needs 3.6+ now, since those f"" string declarations are more pervasive. Could you try upgrading your python to 3.6+, and making sure your 'python' executable points to it? I recommend miniconda for python version management, fwiw.
I upgraded python to 3.6.9 and linked python to its executable. I got another error:
Traceback (most recent call last): File "/usr/local/bin/prosodic", line 5, in [module] import prosodic ModuleNotFoundError: No module named 'prosodic'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/bin/prosodic", line 13, in [module] import prosodic ModuleNotFoundError: No module named 'prosodic'
Hm, is your pip pointing to a different python than your python?
which python3
which python
which pip
?
Maybe try:
pip uninstall prosodic
python3 -m pip install git+https://github.com/quadrismegistus/prosodic
?
Otherwise, it's a bug and I'll look into it.
"python3 -m pip install git+https://github.com/quadrismegistus/prosodic" fixed the problem. Thanks!
Great! Let me know if you have any other Qs. And keep in mind the web interface @ https://prosodic.stanford.edu for quick spot checking of lines or short texts. [Edit: the server seems to be down at the moment but should be back up soon.]
Hi, I've just installed prosodic on a lubuntu with python3 (but I tried also with python 2.7) and I renamed config_default.py to config.py But every time I run "prosodic", I get this:
_File "/usr/local/bin/prosodic", line 5 cmd = f'python {path_to_prosodicpy} {argstr}' ^ SyntaxError: invalid syntax
Is there anything I can do to fix it? Note: the ^ is under the ' at the end of {argstr}'