-
Notifications
You must be signed in to change notification settings - Fork 307
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
Issue with PycURL installation #793
Comments
Your error isn't the same as #791. Your error seems to be related to a check for a MSVC version number, to turn off a very old compiler flag. We can probably just remove this check. |
Hey Scott, thank you so much for answering my issue, is there anything I can do to solve this or this is something related to pycurl itself. Thank you in advance! PS: There was an error when I mentioned the issue where I followed the instructions, the correct issue is #744, I will edit the original Issue. |
You might be able to work around the issue by changing your encoding to UTF-8 (or use another computer with UTF-8 encoding). |
The problem seems to be related to the setup.py file, right? The file is already in UTF-8 and i've also tried to both save it as utf-8 and to check if there was an explicit ecoding in the file (which is on the top of the file)
|
Not the file, it's your system encoding. The error is happening when setup.py invokes cl.exe (part of MS Visual Studio) on your system. |
@edw4rb do you have a non-English localization of Visual Studio installed? |
Yes I do, its Spanish. |
What did you try to do?
I tried to install PyCurl with both the compiled version for Windows provided in the curl.se site https://curl.se/windows/ and also tried to follow the instalation guide provided in #744 and experienced the same error.
What happened?
Since this is a problem installing PyCurl I will provide what I did in this case following the issue #744.
After following all the exact commands and changing the lines in the setup.py as the guide suggests I tried to compile the wheel (I belive this is what the command is doing) using the following command:
python setup.py --vcpkg-dir="C:\vcpkg" --vcpkg-ext=x64-windows-python --with-openssl --link-arg=zlib.lib --link-arg=nghttp2.lib --link-arg=cares.lib --link-arg=libssh2.lib --link-arg=normaliz.lib bdist_wheel
This resulted in the following error:
File "C:\Program Files\curl\pycurl-7.45.2\setup.py", line 989, in <module> ext = get_extension(sys.argv, split_extension_source=split_extension_source) File "C:\Program Files\curl\pycurl-7.45.2\setup.py", line 653, in get_extension ext_config = ExtensionConfiguration(argv) File "C:\Program Files\curl\pycurl-7.45.2\setup.py", line 92, in __init__ self.configure() File "C:\Program Files\curl\pycurl-7.45.2\setup.py", line 494, in configure_windows match = re.search(r'Version (\d+)', err.decode().split("\n")[0]) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa2 in position 24: invalid start byte
What did you expect to happen?
I expected to get a .whl file to be able to install PyCurl with the packages included in #791. Or be able to install PyCurl with the curl-for-windows source files provided in the link above.
What is the PycURL version?
I'm using the latest PycURL version [pycurl-7.45.2].
What is your Python version?
I'm using
Python 3.10.2
What is your operating system and its version?
Windows 10, versión 22H2.
Is this the most recent PycURL release?
It is.
Did you check libcurl behavior?
I did and it works as intended.
The text was updated successfully, but these errors were encountered: