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

installation issue on windows 11 64 #1578

Closed
ifigenblat opened this issue Dec 9, 2024 · 2 comments · Fixed by #1633
Closed

installation issue on windows 11 64 #1578

ifigenblat opened this issue Dec 9, 2024 · 2 comments · Fixed by #1633
Labels
bug Something isn't working needs-triage

Comments

@ifigenblat
Copy link

Describe the bug
when running installation using pip install chainlit on windows 11 with python version 3.13.1 the installation fail with the following error:
pip install chainlit
Collecting chainlit
Using cached chainlit-1.3.2-py3-none-any.whl.metadata (6.8 kB)
Collecting aiofiles<24.0.0,>=23.1.0 (from chainlit)
Using cached aiofiles-23.2.1-py3-none-any.whl.metadata (9.7 kB)
Collecting asyncer<0.0.8,>=0.0.7 (from chainlit)
Using cached asyncer-0.0.7-py3-none-any.whl.metadata (6.6 kB)
Collecting click<9.0.0,>=8.1.3 (from chainlit)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting dataclasses_json<0.7.0,>=0.6.7 (from chainlit)
Using cached dataclasses_json-0.6.7-py3-none-any.whl.metadata (25 kB)
Collecting fastapi<0.116,>=0.115.3 (from chainlit)
Using cached fastapi-0.115.6-py3-none-any.whl.metadata (27 kB)
Collecting filetype<2.0.0,>=1.2.0 (from chainlit)
Using cached filetype-1.2.0-py2.py3-none-any.whl.metadata (6.5 kB)
Collecting httpx>=0.23.0 (from chainlit)
Using cached httpx-0.28.1-py3-none-any.whl.metadata (7.1 kB)
Collecting lazify<0.5.0,>=0.4.0 (from chainlit)
Using cached Lazify-0.4.0-py2.py3-none-any.whl.metadata (1.4 kB)
Collecting literalai==0.0.623 (from chainlit)
Using cached literalai-0.0.623.tar.gz (57 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting nest-asyncio<2.0.0,>=1.6.0 (from chainlit)
Using cached nest_asyncio-1.6.0-py3-none-any.whl.metadata (2.8 kB)
Collecting numpy<2.0,>=1.26 (from chainlit)
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error

× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\Users\ifige\AppData\Local\Programs\Python\Python313\python.exe C:\Users\ifige\AppData\Local\Temp\pip-install-85p2kco7\numpy_87b38c2daf7041b0a02dc226c357ec47\vendored-meson\meson\meson.py setup C:\Users\ifige\AppData\Local\Temp\pip-install-85p2kco7\numpy_87b38c2daf7041b0a02dc226c357ec47 C:\Users\ifige\AppData\Local\Temp\pip-install-85p2kco7\numpy_87b38c2daf7041b0a02dc226c357ec47.mesonpy-7uh2mwq7 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\ifige\AppData\Local\Temp\pip-install-85p2kco7\numpy_87b38c2daf7041b0a02dc226c357ec47.mesonpy-7uh2mwq7\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\ifige\AppData\Local\Temp\pip-install-85p2kco7\numpy_87b38c2daf7041b0a02dc226c357ec47
Build dir: C:\Users\ifige\AppData\Local\Temp\pip-install-85p2kco7\numpy_87b38c2daf7041b0a02dc226c357ec47.mesonpy-7uh2mwq7
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe

  ..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
  The following exception(s) were encountered:
  Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
  Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
  Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
  Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
  Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
  Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
  Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"

  A full log can be found at C:\Users\ifige\AppData\Local\Temp\pip-install-85p2kco7\numpy_87b38c2daf7041b0a02dc226c357ec47\.mesonpy-7uh2mwq7\meson-logs\meson-log.txt
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

To Reproduce
Steps to reproduce the behavior:

  1. From your terminal run pip install chainlit

Expected behavior
Chainlit is installed and chainlit hello works.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: windows 11
  • Browser Chrome
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@dosubot dosubot bot added the bug Something isn't working label Dec 9, 2024
@willydouhard
Copy link
Collaborator

Should be fixed in the next release!

@ifigenblat
Copy link
Author

ifigenblat commented Jan 7, 2025 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants