java2python
java2python copied to clipboard
Minor update on installation of ANTLR Runtime
Please modify install ANTLR Runtime wget http://www.antlr3.org/download/antlr-3.1.3.tar.gz
from wget http://www.antlr.org/download/antlr-3.1.3.tar.gz Antlr no longer hosts the 3.1.3 at the "base" link.
[Comments : I also tried with antlr4-4.0.tar.gz ,surprisingly the ANTLR directory structure for v4 does not have runtime/python folder, so setup doesnot go through . Since java2python explicitly needs the antlr3, so fails, hence recommendation to correct in the installation docs here[for the benefit of other novice programmers like me]
Hi! Is this why java2python via pip fails to install?
Downloading/unpacking java2python
Downloading java2python-0.5.0.tar.gz (138kB): 138kB downloaded
Running setup.py (path:/tmp/pip_build_root/java2python/setup.py) egg_info for package java2python
Downloading/unpacking antlr-python-runtime==3.1.3 (from java2python)
Could not find any downloads that satisfy the requirement antlr-python-runtime==3.1.3 (from java2python)
Some externally hosted files were ignored (use --allow-external antlr-python-runtime to allow).
Cleaning up...
No distributions at all found for antlr-python-runtime==3.1.3 (from java2python)
Storing debug log for failure in ~/.pip/pip.log
IMO - it just a bad error message with setup.py. This is a known issue,when installing a python egg(see reference below). You could use --allow-external, or --allow-unverified option with pip to install(more on the syntax with "pip help install" ). I also see that there are two versions, 3.1.2 and 3.1.3 . You could download the tar and run setup.py from the unzipped tar, location : https://pypi.python.org/simple/antlr-python-runtime/ . See also similar issue with "bad error message"while installing with pip -: https://github.com/pypa/pip/issues/1423
--allow-external, or --allow-unverified are deprecated now. I am having the same issue now (2 years later). Pip docs don't say anything about what to use instead :-(
https://pip.pypa.io/en/stable/news/?highlight=unverified