-
Notifications
You must be signed in to change notification settings - Fork 20
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
Comments
Please cut a new release of this
While a |
Looking at it on |
You have too cases with native glue code and c-api changes in 3.7: 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. |
@dlecocq yes that works, but This is a hard error when using |
Same problem (still) via Could you ship an Thanks! |
Ditto for me. Installing |
I Couldn't install the URL package in python , Kindly Help me to Solve, Below Error is Coming 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: '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. |
@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: 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 C:\Users\1030p\OneDrive\Desktop\python>pip install six-1.15.0-py2.py3-none-any.whl -f ./ --no-index --no-deps C:\Users\1030p\OneDrive\Desktop\python>pip install url-0.4.2.tar.gz -f ./ --no-index --no-deps C:\Users\1030p\OneDrive\Desktop\python>python -m pip uninstall url.cpp C:\Users\1030p\OneDrive\Desktop\python>python -m pip uninstall url-cpp C:\Users\1030p\OneDrive\Desktop\python>python -m pip uninstall url_cpp C:\Users\1030p\OneDrive\Desktop\python>python -m pip remove url.cpp C:\Users\1030p\OneDrive\Desktop\python> |
@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 |
@share2sharetech Sorry someone using windows would have to guide you through that i can't write a script for that os. |
https://www.microsoft.com/en-us/download/details.aspx?id=48159 |
all ready installed sir |
thanks sir |
reported for another user
upgrade cython
download url-0.4.2 release from https://pypi.org/project/url/#files, extract
delete file url/url.cpp
The text was updated successfully, but these errors were encountered: