In .net its creating classes auto with wsdl. How can i do something like this generating code with python ?
I heard the ZSI module, but when i do
pip install ZSI
its returning with error:
(venv) selman#selman-monster:~/PycharmProjects/e-fatura-entegrasyon$ pip install ZSI
Collecting ZSI
Using cached ZSI-2.0-rc3.tar.gz (1.1 MB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/selman/PycharmProjects/e-fatura-entegrasyon/venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t1yyfgt4/zsi_33cf11e8ab8143738e06abb50524839d/setup.py'"'"'; __file__='"'"'/tmp/pip-install-t1yyfgt4/zsi_33cf11e8ab8143738e06abb50524839d/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-fa959zz8
cwd: /tmp/pip-install-t1yyfgt4/zsi_33cf11e8ab8143738e06abb50524839d/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-t1yyfgt4/zsi_33cf11e8ab8143738e06abb50524839d/setup.py", line 30
print 'ZSI/version.py not found; run "make"'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('ZSI/version.py not found)?
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/bb/3b/b2053649e156f2a428cb57999d0361686d8f0f6841987588bef3c5ea0c8c/ZSI-2.0-rc3.tar.gz#sha256=1699ff8f2e0b2f7d6e2a03f8f24f59c9649ce3737f1ed851995efdc6c83e6c71 (from https://pypi.org/simple/zsi/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached ZSI-2.0-rc2.tar.gz (410 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/selman/PycharmProjects/e-fatura-entegrasyon/venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t1yyfgt4/zsi_8ccdd3d100594c7bb9a4e9b651c367f4/setup.py'"'"'; __file__='"'"'/tmp/pip-install-t1yyfgt4/zsi_8ccdd3d100594c7bb9a4e9b651c367f4/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-iv_rerb0
cwd: /tmp/pip-install-t1yyfgt4/zsi_8ccdd3d100594c7bb9a4e9b651c367f4/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-t1yyfgt4/zsi_8ccdd3d100594c7bb9a4e9b651c367f4/setup.py", line 30
print 'ZSI/version.py not found; run "make"'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('ZSI/version.py not found)?
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/7a/de/eb6337bd40432ddb732de4c372a7e47bf4e706337d1274eee5d3a26eb58b/ZSI-2.0-rc2.tar.gz#sha256=289c02887250592132416d7d4113140bedd0cfa5a96281a34774ec0a60cec140 (from https://pypi.org/simple/zsi/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached ZSI-2.0-rc1.tar.gz (622 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/selman/PycharmProjects/e-fatura-entegrasyon/venv/bin/python -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-t1yyfgt4/zsi_a03487007ad04521ab5786509c1f323c/setup.py'"'"'; __file__='"'"'/tmp/pip-install-t1yyfgt4/zsi_a03487007ad04521ab5786509c1f323c/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-si5tpto4
cwd: /tmp/pip-install-t1yyfgt4/zsi_a03487007ad04521ab5786509c1f323c/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-t1yyfgt4/zsi_a03487007ad04521ab5786509c1f323c/setup.py", line 28
print 'ZSI/version.py not found; run "make"'
^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('ZSI/version.py not found)?
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/28/ee/9451d1d8ea0387893ac84b898afcaf37e783be1c0c6b4467f962ebdcdbd4/ZSI-2.0-rc1.tar.gz#sha256=f448093df75c27da8310b30611c5f1e55c356b934459214a408ceb2306f6dcad (from https://pypi.org/simple/zsi/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement ZSI (from versions: 2.0rc1, 2.0rc2, 2.0rc3)
ERROR: No matching distribution found for ZSI
Related
pip install turtle
Collecting turtle
Downloading turtle-0.0.2.tar.gz (11 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-luxoc31a/turtle/setup.py'"'"'; __file__='"'"'/tmp/pip-install-luxoc31a/turtle/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-luxoc31a/turtle/pip-egg-info
cwd: /tmp/pip-install-luxoc31a/turtle/
Complete output (6 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-luxoc31a/turtle/setup.py", line 40
except ValueError, ve:
^
SyntaxError: invalid syntax
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Trying to install -
pip install git+https://github.com/pennmem/ptsa_new
get this error:
ERROR: Command errored out with exit status 1:
command: 'C:\Users\Nofar\anaconda3\envs\py3_env\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Nofar\\AppData\\Local\\Temp\\pip-req-build-39er9e6i\\setup.py'"'"'; __file__='"'"'C:\\Users\\Nofar\\AppData\\Local\\Temp\\pip-req-build-39er9e6i\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\Nofar\AppData\Local\Temp\pip-pip-egg-info-3zy5mp_2'
cwd: C:\Users\Nofar\AppData\Local\Temp\pip-req-build-39er9e6i\
Complete output (7 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Nofar\AppData\Local\Temp\pip-req-build-39er9e6i\setup.py", line 34, in <module>
os.environ["VS90COMNTOOLS"] = os.environ["VS140COMNTOOLS"]
File "C:\Users\Nofar\anaconda3\envs\py3_env\lib\os.py", line 669, in __getitem__
raise KeyError(key) from None
KeyError: 'VS140COMNTOOLS'
----------------------------------------
WARNING: Discarding git+https://github.com/pennmem/ptsa_new.git. Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
help please?
From the setup.py, when you are installing from source , its clearly written that you need Visual Studio C++ Redistributable to be installed in your system.
Relevant section in setup.py
# for windows install see http://stackoverflow.com/questions/2817869/error-unable-to-find-vcvarsall-bat
# for visual studio compilation you need to SET VS90COMNTOOLS=%VS140COMNTOOLS%
if sys.platform.startswith("win"):
os.environ["VS90COMNTOOLS"] = os.environ["VS140COMNTOOLS"]
This answer explains the installation procedure for the required VSC version https://stackoverflow.com/a/18045219/995052.
I tried using pip install conda to install anaconda. Here is the error message being given:
pip install conda
Collecting conda
Using cached conda-4.3.16.tar.gz (299 kB)
Preparing metadata (setup.py) ... done
Collecting pycosat>=0.6.1
Using cached pycosat-0.6.3.zip (66 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: requests>=2.12.4 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from conda) (2.27.0)
Collecting ruamel.yaml>=0.11.14
Using cached ruamel.yaml-0.17.20-py3-none-any.whl (109 kB)
Collecting conda
Using cached conda-4.3.13.tar.gz (370 kB)
Preparing metadata (setup.py) ... done
Using cached conda-4.2.7.tar.gz (235 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\conda_38e301b1427a4dfc932aafc1f9921e3d\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\conda_38e301b1427a4dfc932aafc1f9921e3d\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\User\AppData\Local\Temp\pip-pip-egg-info-g3umfz8o'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-lpu674zg\conda_38e301b1427a4dfc932aafc1f9921e3d\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\AppData\Local\Temp\pip-install-lpu674zg\conda_38e301b1427a4dfc932aafc1f9921e3d\setup.py", line 32, in <module>
from conda._vendor.auxlib import packaging # NOQA
ModuleNotFoundError: No module named 'auxlib'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/76/7c/374bc72a16f71b51aaad570192438b9752604121dfea4cb0abc5d0b2c2ca/conda-4.2.7.tar.gz#sha256=cf8478ad3c1f00e7169c57873fb42832e86315d393619856a2e438dd781f782c (from https://pypi.org/simple/conda/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached conda-4.2.6.tar.gz (235 kB)
Preparing metadata (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\conda_842d005726d142e083f7b318f321d7d0\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\conda_842d005726d142e083f7b318f321d7d0\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\User\AppData\Local\Temp\pip-pip-egg-info-yk_c2080'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-lpu674zg\conda_842d005726d142e083f7b318f321d7d0\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\User\AppData\Local\Temp\pip-install-lpu674zg\conda_842d005726d142e083f7b318f321d7d0\setup.py", line 32, in <module>
from conda._vendor.auxlib import packaging # NOQA
ModuleNotFoundError: No module named 'auxlib'
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/59/06/75f07bcf14777c7b337c02d7458a80937ac0e12a81a9aef9a6b017c17018/conda-4.2.6.tar.gz#sha256=caaf6458c5197da0f4850d0ce133450ce192b9741324d9050f1a857bb0886ac5 (from https://pypi.org/simple/conda/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached conda-4.1.6.tar.gz (144 kB)
Preparing metadata (setup.py) ... done
Requirement already satisfied: pyyaml in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from conda) (6.0)
Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.12.4->conda) (1.26.7)
Requirement already satisfied: idna<4,>=2.5 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.12.4->conda) (3.3)
Requirement already satisfied: charset-normalizer~=2.0.0 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.12.4->conda) (2.0.10)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\user\appdata\local\programs\python\python39\lib\site-packages (from requests>=2.12.4->conda) (2021.10.8)
Using legacy 'setup.py install' for conda, since package 'wheel' is not installed.
Using legacy 'setup.py install' for pycosat, since package 'wheel' is not installed.
Installing collected packages: pycosat, conda
Running setup.py install for pycosat ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\pycosat_1aebe1fe89f54b1493b9b1c81948719b\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\pycosat_1aebe1fe89f54b1493b9b1c81948719b\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\User\AppData\Local\Temp\pip-record-vv2inzom\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\User\AppData\Local\Programs\Python\Python39\Include\pycosat'
cwd: C:\Users\User\AppData\Local\Temp\pip-install-lpu674zg\pycosat_1aebe1fe89f54b1493b9b1c81948719b\
Complete output (9 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
copying test_pycosat.py -> build\lib.win-amd64-3.9
running build_ext
building 'pycosat' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\User\AppData\Local\Programs\Python\Python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\pycosat_1aebe1fe89f54b1493b9b1c81948719b\\setup.py'"'"'; __file__='"'"'C:\\Users\\User\\AppData\\Local\\Temp\\pip-install-lpu674zg\\pycosat_1aebe1fe89f54b1493b9b1c81948719b\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\User\AppData\Local\Temp\pip-record-vv2inzom\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\User\AppData\Local\Programs\Python\Python39\Include\pycosat' Check the logs for full command output.
pip is not a supported installation method for Anaconda - you have to go through something like Miniconda or a full Anaconda distribution.
PS C:\Users\user> pip install getotp
Collecting getotp
Using cached getotp-0.0.3.tar.gz (3.4 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-nrr48slj\\getotp_f69bcd40d10d4267bbd1b13984d749e6\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-nrr48slj\\getotp_f69bcd40d10d4267bbd1b13984d749e6\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-umisjc6r'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-nrr48slj\getotp_f69bcd40d10d4267bbd1b13984d749e6\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\user\AppData\Local\Temp\pip-install-nrr48slj\getotp_f69bcd40d10d4267bbd1b13984d749e6\setup.py", line 6, in <module>
execfile('getotp/version.py')
NameError: name 'execfile' is not defined
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/a2/dc/6d3cea111d7f77ee7bc222928c176b7d44d9478685e0d1496656be7259d6/getotp-0.0.3.tar.gz#sha256=acf785f72fafb431997f52c67c07645ca78d1c1e464fcc95a313b0649cf7ecd4 (from https://pypi.org/simple/getotp/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached getotp-0.0.2.tar.gz (3.4 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-nrr48slj\\getotp_3e06d6eb791c4df9a1f09d94a9717ef7\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-nrr48slj\\getotp_3e06d6eb791c4df9a1f09d94a9717ef7\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-q1vmndlz'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-nrr48slj\getotp_3e06d6eb791c4df9a1f09d94a9717ef7\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\user\AppData\Local\Temp\pip-install-nrr48slj\getotp_3e06d6eb791c4df9a1f09d94a9717ef7\setup.py", line 6, in <module>
execfile('getotp/version.py')
NameError: name 'execfile' is not defined
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/fa/3d/43c5ad39ce25cfcbeb7bc41537c59c02ec8a06c10cd3592ef386038e23cb/getotp-0.0.2.tar.gz#sha256=5490fa2a61807d67b0010f0c9e2657a7866e8b026a7576101e5a3c5367a5a80a (from https://pypi.org/simple/getotp/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
Using cached getotp-0.0.1.tar.gz (3.2 kB)
ERROR: Command errored out with exit status 1:
command: 'c:\users\user\appdata\local\programs\python\python39\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-nrr48slj\\getotp_e7a9683866eb4524b60b3692308caf48\\setup.py'"'"'; __file__='"'"'C:\\Users\\user\\AppData\\Local\\Temp\\pip-install-nrr48slj\\getotp_e7a9683866eb4524b60b3692308caf48\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\user\AppData\Local\Temp\pip-pip-egg-info-9dl6hatg'
cwd: C:\Users\user\AppData\Local\Temp\pip-install-nrr48slj\getotp_e7a9683866eb4524b60b3692308caf48\
Complete output (5 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\user\AppData\Local\Temp\pip-install-nrr48slj\getotp_e7a9683866eb4524b60b3692308caf48\setup.py", line 6, in <module>
execfile('getotp/version.py')
NameError: name 'execfile' is not defined
----------------------------------------
WARNING: Discarding https://files.pythonhosted.org/packages/cd/0e/41efe822de7656c0f8874276e9e06a42e7b941b8029a7678f9cb71cbc03b/getotp-0.0.1.tar.gz#sha256=8199e2d6f3198ce14ee5d9af39f9e4bc581c9b67fb3bad4fb412773095531883 (from https://pypi.org/simple/getotp/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement getotp (from versions: 0.0.1, 0.0.2, 0.0.3)
ERROR: No matching distribution found for getotp
Getting this error while installing packages
That package is from 2014 and was written for python2. Fortunately for you, the code is not very long. You can either download the .tar.gz from pypi or clone the github [repo](https://github.com/gmjosack/getotp]. Then manually go through the code (or use 2to3 on every .py file) and make it python3 compatible and run
python setup.py install
when you are finished.
so im trying to do a pip3 install flask-swagger-ui but im getting the following error:
Defaulting to user installation because normal site-packages is not writeable
Collecting flask-swagger-ui
Using cached flask-swagger-ui-3.25.0.tar.gz (521 kB)
ERROR: Command errored out with exit status 1:
command: /usr/bin/python3 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-n64v6bxi/flask-swagger-ui/setup.py'"'"'; __file__='"'"'/tmp/pip-install-n64v6bxi/flask-swagger-ui/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-install-n64v6bxi/flask-swagger-ui/pip-egg-info
cwd: /tmp/pip-install-n64v6bxi/flask-swagger-ui/
Complete output (3 lines):
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: No module named 'setuptools'
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
please help