You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by "mshr-h (via GitHub)" <gi...@apache.org> on 2025/02/20 07:44:20 UTC
[I] [Bug] Cannnot install TVM python package when using `uv pip` from astral [tvm]
mshr-h opened a new issue, #17667:
URL: https://github.com/apache/tvm/issues/17667
It worked fine on older versions of TVM (something like a few weeks ago) but it doesn't work for now.
TODOs:
- [ ] Investigate
- [ ] Fix
### Expected behavior
TVM is installed without any error.
### Actual behavior
```
Traceback (most recent call last):
File "<string>", line 140, in config_cython
ModuleNotFoundError: No module named 'Cython'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/ubuntu/.cache/uv/builds-v0/.tmp3yeZdo/lib/python3.11/site-packages/setuptools/build_meta.py", line 483, in get_requires_for_build_editable
return self.get_requires_for_build_wheel(config_settings)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.cache/uv/builds-v0/.tmp3yeZdo/lib/python3.11/site-packages/setuptools/build_meta.py", line 334, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/ubuntu/.cache/uv/builds-v0/.tmp3yeZdo/lib/python3.11/site-packages/setuptools/build_meta.py", line 304, in _get_build_requires
self.run_setup()
File "/home/ubuntu/.cache/uv/builds-v0/.tmp3yeZdo/lib/python3.11/site-packages/setuptools/build_meta.py", line 522, in run_setup
super().run_setup(setup_script=setup_script)
File "/home/ubuntu/.cache/uv/builds-v0/.tmp3yeZdo/lib/python3.11/site-packages/setuptools/build_meta.py", line 320, in run_setup
exec(code, locals())
File "<string>", line 260, in <module>
File "<string>", line 181, in config_cython
RuntimeError: Cython is not installed, please pip install cython
hint: This usually indicates a problem with the package or the build environment.
```
### Environment
- OS: Ubuntu 24.04
- Python 3.11
- uv 0.6.2
- TVM@bbd77ace31a379407c48a38e9db6e86736521509
### Steps to reproduce
```bash
mkdir tvm_work
cd tvm_work
uv venv --python=3.11
source .venv/bin/activate
uv pip install cmake ninja cython setuptools
git clone --recursive https://github.com/apache/tvm
cd tvm
cmake -S . -B build -G Ninja -DUSE_LLVM=llvm-config
cmake --build build
uv pip install -e python --config-setting editable-mode=compat
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Cannnot install TVM python package when using `uv pip` from astral [tvm]
Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen commented on issue #17667:
URL: https://github.com/apache/tvm/issues/17667#issuecomment-2671333011
Likely the issue was cython dependency missing as per message
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Cannnot install TVM python package when using `uv pip` from astral [tvm]
Posted by "mshr-h (via GitHub)" <gi...@apache.org>.
mshr-h commented on issue #17667:
URL: https://github.com/apache/tvm/issues/17667#issuecomment-2671396828
It fails even though I installed cython.
```
$ uv pip list | grep cython
Using Python 3.10.12 environment at: /home/ubuntu/data/sandbox/.venv
cython 3.0.12
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Cannnot install TVM python package when using `uv pip` from astral [tvm]
Posted by "yongwww (via GitHub)" <gi...@apache.org>.
yongwww commented on issue #17667:
URL: https://github.com/apache/tvm/issues/17667#issuecomment-2671986173
I met similar issue on the conda environment, my workaround is to install cython via `pip install cython` on both on conda env and the host machine (before activate the env). unsure if this works for you
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Cannnot install TVM python package when using `uv pip` from astral [tvm]
Posted by "mshr-h (via GitHub)" <gi...@apache.org>.
mshr-h commented on issue #17667:
URL: https://github.com/apache/tvm/issues/17667#issuecomment-2674349981
I'll take a look at it.
> I met a similar issue on the conda environment, my workaround is to install cython via `pip install cython` on both the conda env and the host machine (before activating the env). I am unsure if this works for you
Thanks for the info!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Cannnot install TVM python package when using `uv pip` from astral [tvm]
Posted by "Hzfengsy (via GitHub)" <gi...@apache.org>.
Hzfengsy closed issue #17667: [Bug] Cannnot install TVM python package when using `uv pip` from astral
URL: https://github.com/apache/tvm/issues/17667
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] [Bug] Cannnot install TVM python package when using `uv pip` from astral [tvm]
Posted by "tqchen (via GitHub)" <gi...@apache.org>.
tqchen commented on issue #17667:
URL: https://github.com/apache/tvm/issues/17667#issuecomment-2671676716
do you mind dig a bit into it? Since the runtim error was pretty sure that Cython was not available. Maybe related to cython in one env but not being picked up?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org