iree-org / iree-jax

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

python setup.py develop errors

wangkuiyi opened this issue · comments

On both of my x86_64 and arm64 macOS 13 systems, when I tried to develop install iree-jax with the following commands

git clone https://github.com/iree-org/iree-jax
cd iree-jax
python[3.10] setup.py develop

I got the following error. (A complete list of stderr+stdout is attached at the end of this issue.)

Searching for iree-runtime>=20221121.334
Reading https://pypi.org/simple/iree-runtime/
No local packages or working download links found for iree-runtime>=20221121.334
error: Could not find suitable distribution for Requirement.parse('iree-runtime>=20221121.334')

I can pip install iree-compiler iree-runtime successfully on arm64 macOS. But it gave me both of old version 20220930.282.

And pip install failed on x86_64 macOS with an error No matching distribution found for iree-compiler.


11:26 $ python setup.py develop
/Users/y/miniforge3/envs/iree-jax/lib/python3.10/site-packages/setuptools/dist.py:534: UserWarning: Normalizing '0.1dev1' to '0.1.dev1'
  warnings.warn(tmpl.format(**locals()))
running develop
/Users/y/miniforge3/envs/iree-jax/lib/python3.10/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
/Users/y/miniforge3/envs/iree-jax/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
  warnings.warn(
running egg_info
writing iree_jax.egg-info/PKG-INFO
writing dependency_links to iree_jax.egg-info/dependency_links.txt
writing requirements to iree_jax.egg-info/requires.txt
writing top-level names to iree_jax.egg-info/top_level.txt
reading manifest file 'iree_jax.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file 'iree_jax.egg-info/SOURCES.txt'
running build_ext
Creating /Users/y/miniforge3/envs/iree-jax/lib/python3.10/site-packages/iree-jax.egg-link (link to .)
Adding iree-jax 0.1.dev1 to easy-install.pth file

Installed /Users/y/w/iree-jax
Processing dependencies for iree-jax==0.1.dev1
Searching for jaxlib>=0.4.1
Reading https://pypi.org/simple/jaxlib/
Downloading https://files.pythonhosted.org/packages/54/d0/ce08c4dd9c7cf4a0223891900717cd197729d07fcd840c71a7b6cac8a88a/jaxlib-0.4.2-cp310-cp310-macosx_11_0_arm64.whl#sha256=63cb14fc6e311b3b67314d1404bb228e96bdb0ee328179c99244fb7e8a75f70b
Best match: jaxlib 0.4.2
Processing jaxlib-0.4.2-cp310-cp310-macosx_11_0_arm64.whl
Installing jaxlib-0.4.2-cp310-cp310-macosx_11_0_arm64.whl to /Users/y/miniforge3/envs/iree-jax/lib/python3.10/site-packages
Adding jaxlib 0.4.2 to easy-install.pth file

Installed /Users/y/miniforge3/envs/iree-jax/lib/python3.10/site-packages/jaxlib-0.4.2-py3.10-macosx-11.0-arm64.egg
Searching for iree-runtime>=20221121.334
Reading https://pypi.org/simple/iree-runtime/
No local packages or working download links found for iree-runtime>=20221121.334
error: Could not find suitable distribution for Requirement.parse('iree-runtime>=20221121.334')

It turned out that I can manually install IREE and iree-jax from source code. #47 (comment)

I am not an expert on setup.py and lack knowledge about IREE/iree-jax dependencies.