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

Building wheel for pymsalruntime - Microsoft Visual C++ 14.0 #774

Open
lucahttp opened this issue Dec 13, 2024 · 6 comments
Open

Building wheel for pymsalruntime - Microsoft Visual C++ 14.0 #774

lucahttp opened this issue Dec 13, 2024 · 6 comments
Assignees

Comments

@lucahttp
Copy link

lucahttp commented Dec 13, 2024

Describe the bug
when trying to install pymsalruntime it shows an error related to wheel lib.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Python 3.13.0.
  2. Run python -m pip install pymsalruntime
  3. See the error

Expected behavior
Successfully installed pymsalruntime

What you see instead
You will see the following error happening.

python.exe -m pip install --upgrade pymsalruntime
Collecting pymsalruntime
  Using cached pymsalruntime-0.14.2.tar.gz (1.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Building wheels for collected packages: pymsalruntime
  Building wheel for pymsalruntime (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pymsalruntime (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [25 lines of output]
      pip_system_certs: ERROR: could not register module: No module named 'wrapt'
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-313\pymsalruntime
      copying pymsalruntime\__init__.py -> build\lib.win-amd64-cpython-313\pymsalruntime
      copying pymsalruntime\PyMsalRuntime.pyi -> build\lib.win-amd64-cpython-313\pymsalruntime
      copying pymsalruntime\msalruntime.dll -> build\lib.win-amd64-cpython-313\pymsalruntime
      running build_ext
      building 'pymsalruntime.pymsalruntime' extension
      creating build\temp.win-amd64-cpython-313\Release\pymsalruntime
      "C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ibuild_resources -IC:\Users\myusername\AppData\Local\Programs\Python\Python313\include -IC:\Users\myusername\AppData\Local\Programs\Python\Python313\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.42.34433\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt" "-IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt" /Tcpymsalruntime/PyMsalRuntime.c /Fobuild\temp.win-amd64-cpython-313\Release\pymsalruntime/PyMsalRuntime.obj
      PyMsalRuntime.c
      pymsalruntime/PyMsalRuntime.c(860): warning C4996: 'Py_UNICODE': deprecated in 3.13
      pymsalruntime/PyMsalRuntime.c(861): warning C4996: 'Py_UNICODE': deprecated in 3.13
      pymsalruntime/PyMsalRuntime.c(16328): warning C4267: '=': conversion from 'size_t' to 'int32_t', possible loss of data
      pymsalruntime/PyMsalRuntime.c(20977): warning C4013: '_PyDict_SetItem_KnownHash' undefined; assuming extern returning int
      pymsalruntime/PyMsalRuntime.c(22488): warning C4013: '_PyUnicode_FastCopyCharacters' undefined; assuming extern returning int
      pymsalruntime/PyMsalRuntime.c(24127): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char *,size_t,int,int,int)': too few arguments for call
      pymsalruntime/PyMsalRuntime.c(24323): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char *,size_t,int,int,int)': too few arguments for call
      pymsalruntime/PyMsalRuntime.c(24557): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char *,size_t,int,int,int)': too few arguments for call
      pymsalruntime/PyMsalRuntime.c(24905): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char *,size_t,int,int,int)': too few arguments for call
      pymsalruntime/PyMsalRuntime.c(25177): error C2198: 'int _PyLong_AsByteArray(PyLongObject *,unsigned char *,size_t,int,int,int)': too few arguments for call
Python 3.13.0

The MSAL Python version you are using
1.31.1

@lucahttp
Copy link
Author

tried python 3.12 as explained here and it works flet-dev/flet#4008.

& C:\Users\myusername\AppData\Local\Programs\Python\Python312\python.exe -m pip install --upgrade pymsalruntime
Collecting pymsalruntime
  Downloading pymsalruntime-0.17.1-cp312-cp312-win_amd64.whl.metadata (274 bytes)
Downloading pymsalruntime-0.17.1-cp312-cp312-win_amd64.whl (1.2 MB)
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 5.3 MB/s eta 0:00:00
Installing collected packages: pymsalruntime
Successfully installed pymsalruntime-0.17.1

@rayluo
Copy link
Collaborator

rayluo commented Dec 13, 2024

tried python 3.12 as explained here and it works flet-dev/flet#4008.

I don't think that issue is relevant here.

The issue you encountered for pymsalruntime is because that we do not yet ship PyMsalRuntime wheel for Python 3.13. @fengga please add that for PyMsalRuntime's next release.

@DamGouz
Copy link

DamGouz commented Jan 2, 2025

Do you have an ETA for the next release? We need it to update to 3.13.
Thank you!

@nishanth77
Copy link

Hi @rayluo/ @fengga,
Please provide the ETA for the PyMsalRuntime package wheel file for python 3.13 version

@ashok672 ashok672 added the ado tracked in ado label Jan 30, 2025
@fengga
Copy link
Contributor

fengga commented Jan 30, 2025

I just took a look, python 3.13 doesn't support the Cython version we are using right now, we need to update our Cython code to make it build for python 3.13. It's not a quick job... I'll prioritize it.

@sodul
Copy link

sodul commented Feb 6, 2025

This blocks many folks that need to work with azure as documented here: Azure/azure-cli#29640

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

No branches or pull requests

8 participants