Jan-22-2023, 07:49 PM
I am using CentOS 7 os.
I installed python3.6 on this machine.
pip3 is latest version 21.
After that i installed obfsproxy like this :
Now after running obfsproxy command i got this error :
I tried some older python versions.
Buy manual installation has some error and this is better to install python3 from default repository.
Mean for install python3 i did this :
I installed python3.6 on this machine.
pip3 is latest version 21.
After that i installed obfsproxy like this :
Quote:To use obfsproxy you will need Python (>= 2.7) and pip.
Quote:Here is link. > Check HOWTO.txt please
pip3 install pathlib pip3 install pyopenssl pip3 install Twisted pip3 install obfsproxyHere are installation path :
Quote: /usr/local/lib/python3.6/site-packages/obfsproxy-0.2.13-py3.6.egg-info
/usr/local/lib/python3.6/site-packages/obfsproxy
/usr/local/lib/python3.6/site-packages/obfsproxy/pyobfsproxy.py
/usr/local/bin/obfsproxy
Now after running obfsproxy command i got this error :
Traceback (most recent call last): File "/usr/local/bin/obfsproxy", line 11, in <module> load_entry_point('obfsproxy==0.2.13', 'console_scripts', 'obfsproxy')() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 476, in load_entry_point return get_distribution(dist).load_entry_point(group, name) File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2700, in load_entry_point return ep.load() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2318, in load return self.resolve() File "/usr/lib/python3.6/site-packages/pkg_resources/__init__.py", line 2324, in resolve module = __import__(self.module_name, fromlist=['__name__'], level=0) File "/usr/local/lib/python3.6/site-packages/obfsproxy/pyobfsproxy.py", line 183 except ValueError, err: ^ SyntaxError: invalid syntax [root@blobloblo ~]# obfsproxysite-packages/pkg_resources/__init__.py", line 476, in load_entry_pointWhat version of python is suitable for this script and how can i fix this error?
I tried some older python versions.
Buy manual installation has some error and this is better to install python3 from default repository.
Mean for install python3 i did this :
centos is updated totally. sudo yum install -y epel-release sudo yum install -y libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev sudo yum -y groupinstall "Development Tools" gcc --version openssl version openssl version -d sudo yum install -y openssl-devel libyaml-devel libffi-devel bzip2-devel sudo yum install -y make automake gcc glibc sudo yum install -y gcc python -V python --version python2 -V python3 -V sudo yum install python3 python3 -m pip install --upgrade pip