epinna / tplmap

Server-Side Template Injection and Code Injection Detection and Exploitation Tool
GNU General Public License v3.0
3.69k stars 666 forks source link

ERROR: No matching distribution found for PyYaml #98

Closed hktalent closed 2 years ago

hktalent commented 2 years ago
$ uname -a
Darwin 192.168.0.107 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:21 PDT 2021; root:xnu-7195.141.6~3/RELEASE_X86_64 x86_64

$ java -version
openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment Homebrew (build 11.0.12+0)
OpenJDK 64-Bit Server VM Homebrew (build 11.0.12+0, mixed mode)

$ wget 'http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.7.2/jython-installer-2.7.2.jar' -O jython_installer.jar

$ mkdir $HOME/.jython
$ java -jar jython_installer.jar -s -d $HOME/.jython -t standard
$ cd $HOME/.jython

$ ./bin/pip install PyYaml requests 
warning: /Users/myName/.jython is a directory, not a file
DEPRECATION: A future version of pip will drop support for Python 2.7.
Collecting PyYaml
  ERROR: Could not find a version that satisfies the requirement PyYaml (from versions: none)
ERROR: No matching distribution found for PyYaml
jx6f commented 2 years ago

Please try this.

wget https://github.com/yaml/pyyaml/archive/refs/tags/5.1.2.tar.gz
tar xf 5.1.2.tar.gz
cd pyyaml-5.1.2
/path/to/jython/bin/jython setup.py install
hktalent commented 2 years ago

@jx6f thanks, is ok

wget 'http://search.maven.org/remotecontent?filepath=org/python/jython-installer/2.7.2/jython-installer-2.7.2.jar' -O jython_installer.jar
mkdir $HOME/.jython
java -jar jython_installer.jar -s -d $HOME/.jython -t standard
cd $HOME/.jython
wget https://github.com/yaml/pyyaml/archive/refs/tags/5.1.2.tar.gz
tar xf 5.1.2.tar.gz
cd pyyaml-5.1.2
../bin/jython setup.py install
cd ..
rm -rf pyyaml-5.1.2

wget https://github.com/psf/requests/archive/refs/tags/v2.26.0.tar.gz
tar xf v2.26.0.tar.gz
cd requests-2.26.0
../bin/jython setup.py install
cd ..
rm -rf requests-2.26.0