Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python 3.7+ and old url.cpp cached file on url-0.4.2 #67

Open
pmp-p opened this issue Sep 25, 2019 · 15 comments
Open

python 3.7+ and old url.cpp cached file on url-0.4.2 #67

pmp-p opened this issue Sep 25, 2019 · 15 comments

Comments

@pmp-p
Copy link

pmp-p commented Sep 25, 2019

reported for another user

  1. upgrade cython

  2. download url-0.4.2 release from https://pypi.org/project/url/#files, extract

delete file url/url.cpp

  1. python3 setup.py install
@lummax
Copy link

lummax commented Dec 20, 2019

Please cut a new release of this url package. With python 3.7.0 I get on pip install url from Pypi:

    url/url.cpp: In function ‘void __Pyx__ExceptionSwap(PyThreadState*, PyObject**, PyObject**, PyObject**)’:
    url/url.cpp:12497:24: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
         tmp_type = tstate->exc_type;
                            ^~~~~~~~
                            curexc_type
    url/url.cpp:12498:25: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
         tmp_value = tstate->exc_value;
                             ^~~~~~~~~
                             curexc_value
    url/url.cpp:12499:22: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
         tmp_tb = tstate->exc_traceback;
                          ^~~~~~~~~~~~~
                          curexc_traceback
    url/url.cpp:12500:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_type’; did you mean ‘curexc_type’?
         tstate->exc_type = *type;
                 ^~~~~~~~
                 curexc_type
    url/url.cpp:12501:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_value’; did you mean ‘curexc_value’?
         tstate->exc_value = *value;
                 ^~~~~~~~~
                 curexc_value
    url/url.cpp:12502:13: error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘exc_traceback’; did you mean ‘curexc_traceback’?
         tstate->exc_traceback = *tb;
                 ^~~~~~~~~~~~~
                 curexc_traceback
    error: command '/nix/store/v9abir1ys8mbyb8inw7f5qay8jwxnxy8-gcc-8/bin/gcc-8' failed with exit status 1

While a pip install . in this repository works without a problem.

@dlecocq
Copy link

dlecocq commented Dec 20, 2019

Looking at it on pypi, it seems 0.4.2a0 was released in July. Are you able to install that version from pypi without issue?

@pmp-p
Copy link
Author

pmp-p commented Dec 21, 2019

You have too cases with native glue code and c-api changes in 3.7:
either you are pre 3.7 or post 3.7 so : if you can't provide TWO versions for both cases one build will fail.

Best solutions in any case is don't provide native glue code and let cython/pyrex/whatever regenerate it for target. Since anyway it's a source distribution that requires gcc/clang compilation.

cpython api is likely to change again in the future and you can't anticipate that. sooner or later the .cpp files would get out of date.

as stated in the issue, deleting url/url.cpp is enough to force a full source rebuild and it should not have any problem since cython is listed in requirements. but actually that file is still in the Pypi archive.

@lummax
Copy link

lummax commented Dec 23, 2019

@dlecocq yes that works, but scancode-toolkit (the dependencies that pulls in url) wants url<1.0.0,>=0.4.2 and 0.4.2a0 does not satisfy that constraint.

This is a hard error when using pip-compile / pip-sync from https://github.com/jazzband/pip-tools

@BigBlueHat
Copy link

@dlecocq yes that works, but scancode-toolkit (the dependencies that pulls in url) wants url<1.0.0,>=0.4.2 and 0.4.2a0 does not satisfy that constraint.

Same problem (still) via scancode-toolkit installation. I'll be requesting they upgrade to this alpha release...but that seems unlikely.

Could you ship an 0.4.3 to address this for Python 3.7 users?

Thanks!
🎩

@kpfleming
Copy link

Ditto for me. Installing cython and then url manually worked.

@share2sharetech
Copy link

I Couldn't install the URL package in python , Kindly Help me to Solve, Below Error is Coming
Collecting url
Using cached url-0.4.2.tar.gz (140 kB)
Requirement already satisfied: six in c:\users\1030p\appdata\roaming\python\python38\site-packages (from url) (1.15.0)
Using legacy 'setup.py install' for url, since package 'wheel' is not installed.
Installing collected packages: url
Running setup.py install for url: started
Running setup.py install for url: finished with status 'error'

DEPRECATION: The -b/--build/--build-dir/--build-directory option is deprecated. pip 20.3 will remove support for this functionality. A possible replacement is use the TMPDIR/TEMP/TMP environment variable, possibly combined with --no-clean. You can find discussion regarding this at pypa/pip#8333.
ERROR: Command errored out with exit status 1:
command: 'C:\Users\1030p\AppData\Local\Programs\Python\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\1030p\AppData\Local\Temp\pycharm-packaging\url\setup.py'"'"'; file='"'"'C:\Users\1030p\AppData\Local\Temp\pycharm-packaging\url\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\1030p\AppData\Local\Temp\pip-record-nhsvckcf\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\1030p\AppData\Roaming\Python\Python38\Include\url'
cwd: C:\Users\1030p\AppData\Local\Temp\pycharm-packaging\url
Complete output (54 lines):
Building from C++
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\url
copying url_init_.py -> build\lib.win32-3.8\url
creating build\lib.win32-3.8\url\psl
copying url\psl\2016-08-16.psl -> build\lib.win32-3.8\url\psl
warning: build_py: byte-compiling is disabled, skipping.

running build_ext
building 'url.url' extension
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
creating build\temp.win32-3.8\Release\url
creating build\temp.win32-3.8\Release\url\url-cpp
creating build\temp.win32-3.8\Release\url\url-cpp\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iurl/url-cpp/include -IC:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include -IC:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpurl/url-cpp/src/url.cpp /Fobuild\temp.win32-3.8\Release\url/url-cpp/src/url.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
url.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iurl/url-cpp/include -IC:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include -IC:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpurl/url-cpp/src/utf8.cpp /Fobuild\temp.win32-3.8\Release\url/url-cpp/src/utf8.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
utf8.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iurl/url-cpp/include -IC:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include -IC:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpurl/url-cpp/src/punycode.cpp /Fobuild\temp.win32-3.8\Release\url/url-cpp/src/punycode.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
punycode.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iurl/url-cpp/include -IC:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include -IC:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpurl/url-cpp/src/psl.cpp /Fobuild\temp.win32-3.8\Release\url/url-cpp/src/psl.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
psl.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iurl/url-cpp/include -IC:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include -IC:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpurl/url.cpp /Fobuild\temp.win32-3.8\Release\url/url.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
url.cpp
url/url.cpp(10054): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10059): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10063): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10066): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10069): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10072): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10075): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(12497): error C2039: 'exc_type': is not a member of '_ts'
C:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
url/url.cpp(12498): error C2039: 'exc_value': is not a member of '_ts'
C:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
url/url.cpp(12499): error C2039: 'exc_traceback': is not a member of '_ts'
C:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
url/url.cpp(12500): error C2039: 'exc_type': is not a member of '_ts'
C:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
url/url.cpp(12501): error C2039: 'exc_value': is not a member of '_ts'
C:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
url/url.cpp(12502): error C2039: 'exc_traceback': is not a member of '_ts'
C:\Users\1030p\AppData\Local\Programs\Python\Python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.27.29110\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------

ERROR: Command errored out with exit status 1: 'C:\Users\1030p\AppData\Local\Programs\Python\Python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\1030p\AppData\Local\Temp\pycharm-packaging\url\setup.py'"'"'; file='"'"'C:\Users\1030p\AppData\Local\Temp\pycharm-packaging\url\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\1030p\AppData\Local\Temp\pip-record-nhsvckcf\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\1030p\AppData\Roaming\Python\Python38\Include\url' Check the logs for full command output.

@pmp-p
Copy link
Author

pmp-p commented Sep 10, 2020

@share2sharetech , you must run setup.py install manually after removing the file url.cpp

@share2sharetech
Copy link

@share2sharetech , you must run setup.py install manually after removing the file url.cpp

again i got same error , refer below

C:\Users\1030p>cd C:\Users\1030p\OneDrive\Desktop\python

C:\Users\1030p\OneDrive\Desktop\python>pip install six-1.15.0-py2.py3-none-any -f ./ --no-idex --no-deps

Usage:
pip install [options] [package-index-options] ...
pip install [options] -r [package-index-options] ...
pip install [options] [-e] ...
pip install [options] [-e] ...
pip install [options] <archive url/path> ...

no such option: --no-idex

C:\Users\1030p\OneDrive\Desktop\python>pip install six-1.15.0-py2.py3-none-any.whl -f ./ --no-index --no-deps
Looking in links: ./
Requirement already satisfied: six==1.15.0 from file:///C:/Users/1030p/OneDrive/Desktop/python/six-1.15.0-py2.py3-none-any.whl in c:\users\1030p\appdata\roaming\python\python38\site-packages (1.15.0)

C:\Users\1030p\OneDrive\Desktop\python>pip install six-1.15.0-py2.py3-none-any.whl -f ./ --no-index --no-deps
Looking in links: ./
Requirement already satisfied: six==1.15.0 from file:///C:/Users/1030p/OneDrive/Desktop/python/six-1.15.0-py2.py3-none-any.whl in c:\users\1030p\appdata\roaming\python\python38\site-packages (1.15.0)

C:\Users\1030p\OneDrive\Desktop\python>pip install url-0.4.2.tar.gz -f ./ --no-index --no-deps
Looking in links: ./
Processing c:\users\1030p\onedrive\desktop\python\url-0.4.2.tar.gz
Using legacy 'setup.py install' for url, since package 'wheel' is not installed.
Installing collected packages: url
Running setup.py install for url ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\1030p\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\1030p\AppData\Local\Temp\pip-req-build-m7md4ist\setup.py'"'"'; file='"'"'C:\Users\1030p\AppData\Local\Temp\pip-req-build-m7md4ist\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\1030p\AppData\Local\Temp\pip-record-m119sygj\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\1030p\appdata\local\programs\python\python38-32\Include\url'
cwd: C:\Users\1030p\AppData\Local\Temp\pip-req-build-m7md4ist
Complete output (52 lines):
Building from C++
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\url
copying url_init_.py -> build\lib.win32-3.8\url
creating build\lib.win32-3.8\url\psl
copying url\psl\2016-08-16.psl -> build\lib.win32-3.8\url\psl
running build_ext
building 'url.url' extension
creating build\temp.win32-3.8
creating build\temp.win32-3.8\Release
creating build\temp.win32-3.8\Release\url
creating build\temp.win32-3.8\Release\url\url-cpp
creating build\temp.win32-3.8\Release\url\url-cpp\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iurl/url-cpp/include -Ic:\users\1030p\appdata\local\programs\python\python38-32\include -Ic:\users\1030p\appdata\local\programs\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpurl/url-cpp/src/url.cpp /Fobuild\temp.win32-3.8\Release\url/url-cpp/src/url.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
url.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iurl/url-cpp/include -Ic:\users\1030p\appdata\local\programs\python\python38-32\include -Ic:\users\1030p\appdata\local\programs\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpurl/url-cpp/src/utf8.cpp /Fobuild\temp.win32-3.8\Release\url/url-cpp/src/utf8.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
utf8.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iurl/url-cpp/include -Ic:\users\1030p\appdata\local\programs\python\python38-32\include -Ic:\users\1030p\appdata\local\programs\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpurl/url-cpp/src/punycode.cpp /Fobuild\temp.win32-3.8\Release\url/url-cpp/src/punycode.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
punycode.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iurl/url-cpp/include -Ic:\users\1030p\appdata\local\programs\python\python38-32\include -Ic:\users\1030p\appdata\local\programs\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpurl/url-cpp/src/psl.cpp /Fobuild\temp.win32-3.8\Release\url/url-cpp/src/psl.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
psl.cpp
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Iurl/url-cpp/include -Ic:\users\1030p\appdata\local\programs\python\python38-32\include -Ic:\users\1030p\appdata\local\programs\python\python38-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.18362.0\cppwinrt" /EHsc /Tpurl/url.cpp /Fobuild\temp.win32-3.8\Release\url/url.obj -std=c++11
cl : Command line warning D9002 : ignoring unknown option '-std=c++11'
url.cpp
url/url.cpp(10054): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10059): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10063): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10066): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10069): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10072): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(10075): warning C4996: '_typeobject::tp_print': deprecated in 3.8
url/url.cpp(12497): error C2039: 'exc_type': is not a member of '_ts'
c:\users\1030p\appdata\local\programs\python\python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
url/url.cpp(12498): error C2039: 'exc_value': is not a member of '_ts'
c:\users\1030p\appdata\local\programs\python\python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
url/url.cpp(12499): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\1030p\appdata\local\programs\python\python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
url/url.cpp(12500): error C2039: 'exc_type': is not a member of '_ts'
c:\users\1030p\appdata\local\programs\python\python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
url/url.cpp(12501): error C2039: 'exc_value': is not a member of '_ts'
c:\users\1030p\appdata\local\programs\python\python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
url/url.cpp(12502): error C2039: 'exc_traceback': is not a member of '_ts'
c:\users\1030p\appdata\local\programs\python\python38-32\include\cpython/pystate.h(51): note: see declaration of '_ts'
error: command 'C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.27.29110\bin\HostX86\x86\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\1030p\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\1030p\AppData\Local\Temp\pip-req-build-m7md4ist\setup.py'"'"'; file='"'"'C:\Users\1030p\AppData\Local\Temp\pip-req-build-m7md4ist\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\1030p\AppData\Local\Temp\pip-record-m119sygj\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\1030p\appdata\local\programs\python\python38-32\Include\url' Check the logs for full command output.

C:\Users\1030p\OneDrive\Desktop\python>python -m pip uninstall url.cpp
WARNING: Skipping url.cpp as it is not installed.

C:\Users\1030p\OneDrive\Desktop\python>python -m pip uninstall url-cpp
WARNING: Skipping url-cpp as it is not installed.

C:\Users\1030p\OneDrive\Desktop\python>python -m pip uninstall url_cpp
WARNING: Skipping url-cpp as it is not installed.

C:\Users\1030p\OneDrive\Desktop\python>python -m pip remove url.cpp
ERROR: unknown command "remove"

C:\Users\1030p\OneDrive\Desktop\python>

@pmp-p
Copy link
Author

pmp-p commented Sep 12, 2020

@share2sharetech I don't see the removal of file and manual "python3 setup.py install" command, in that log, you seem to use pip that use the cached obsolete cpp file ( also do not forget to upgrade cython if you can ).

The package manager "pip" or "-m pip" won't help for installing a broken package

@share2sharetech
Copy link

@share2sharetech I don't see the removal of file and manual "python3 setup.py install" command, in that log, you seem to use pip that use the cached obsolete cpp file ( also do not forget to upgrade cython if you can ).

The package manager "pip" or "-m pip" won't help for installing a broken package

Pls Give me a Step by step guide because i am new to python

@pmp-p
Copy link
Author

pmp-p commented Sep 13, 2020

@share2sharetech Sorry someone using windows would have to guide you through that i can't write a script for that os.

@christaus
Copy link

https://www.microsoft.com/en-us/download/details.aspx?id=48159
Should help, you don't seem to have the correct building chain for c++.

@share2sharetech
Copy link

https://www.microsoft.com/en-us/download/details.aspx?id=48159
Should help, you don't seem to have the correct building chain for c++.

all ready installed sir

@share2sharetech
Copy link

@share2sharetech Sorry someone using windows would have to guide you through that i can't write a script for that os.

thanks sir

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants