aimhubio/aim

Not installing on windows

manuel-delverme opened this issue ยท 15 comments

๐Ÿ› Bug

(XXXXX) PS C:\Users\tmp\projects\xxx> pip install aim                                                                                                                                                        
Collecting aim
  Using cached aim-3.12.2.tar.gz (1.4 MB)
  Installing build dependencies ... error
  error: subprocess-exited-with-error

  ร— pip subprocess to install build dependencies did not run successfully.
  โ”‚ exit code: 1
  โ•ฐโ”€> [6 lines of output]
      Collecting setuptools
        Using cached setuptools-64.0.2-py3-none-any.whl (1.2 MB)
      Collecting cython==3.0.0a9
        Using cached Cython-3.0.0a9-cp38-cp38-win_amd64.whl (1.9 MB)
      ERROR: Could not find a version that satisfies the requirement aimrocks==0.2.1 (from versions: 0.1.3a14, 0.2.0.dev1, 0.2.0)
      ERROR: No matching distribution found for aimrocks==0.2.1
      [end of output]

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

ร— pip subprocess to install build dependencies did not run successfully.
โ”‚ exit code: 1
โ•ฐโ”€> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
(XXXXX) PS C:\Users\tmp\projects\xxx> 

Environment

  • Python version
    3.8.6
  • pip version
    22.2.2
  • OS (e.g., Linux)
    Windows
  • Any other relevant information

@manuel-delverme thanks for opening this issue.
How mission critical is the windows support?

@SGevorg I am interning at [large electrical automation company] with 100% Windows systems. We really wanted to try Aim for its VERY impressive UI ๐Ÿ˜ (thank you! โค๏ธโค๏ธ). Have to fall back to MLFlow until Aim installs on windows. ๐Ÿ˜”๐Ÿ˜”

Getting the same error as @manuel-delverme

RuntimeError
Unable to find installation candidates for aimrocks (0.2.1)

Environment:

Virtualenv
Python:         3.8.10
Implementation: CPython
Path:           C:\Users\xxx\AppData\Local\pypoetry\Cache\virtualenvs\xai4time-E2i_R5Qu-py3.8
Valid:          True

System
Platform: win32
OS:       nt
Python:   C:\Users\xxx\AppData\Local\Programs\Python\Python38

Full error message:

PS C:\Users\xxx\OneDrive - yyy\workspace\XAI4Time> poetry add aim
Using version ^3.12.2 for aim

Updating dependencies
Resolving dependencies...

Writing lock file

Package operations: 13 installs, 0 updates, 0 removals

  โ€ข Installing base58 (2.0.1)
  โ€ข Installing h11 (0.13.0)
  โ€ข Installing aim-ui (3.12.2)
  โ€ข Installing aimrecords (0.0.7)
  โ€ข Installing aimrocks (0.2.1)
  โ€ข Installing filelock (3.8.0)
  โ€ข Installing restrictedpython (5.2)
  โ€ข Installing py3nvml (0.2.7)
  โ€ข Installing uvicorn (0.18.2)
  โ€ข Installing fastapi (0.67.0)
  โ€ข Installing aiofiles (0.8.0)

  RuntimeError

  Unable to find installation candidates for aimrocks (0.2.1)

  at ~\AppData\Roaming\pypoetry\venv\lib\site-packages\poetry\installation\chooser.py:72 in choose_for
       69โ”‚             links.append(link)
       70โ”‚
       71โ”‚         if not links:
    โ†’  72โ”‚             raise RuntimeError(
       73โ”‚                 "Unable to find installation candidates for {}".format(package)
       74โ”‚             )
       75โ”‚
       76โ”‚         # Get the best link


Failed to add packages, reverting the pyproject.toml file to its original content.

@nilavra thanks for such a detailed response and kind words ๐Ÿ˜Š
Do you run your workloads on windows too? (including things that require cuda)

@SGevorg I have the same issue, and I am confused by your responses.

Why are you asking if it is mission critical and if any workloads require cuda? Those seem like irrelevant questions.

Is this a bug or limitation? If so, is there any workaround?

@jdhenckel, sorry for confusion. I am trying to learn more about the issue.

We haven't seen many cases where the actual training is ran on windows machines (hence the .aim also generated on the windows machine too).

Aim UI can be deployed anywhere where the .aim repository is. Usually it's on the same machine where the training is ran or on a remote machine used by a number of users via browsers as a website.

So users can aim up on a remote server, make the website accessible (as per their security requirements) and use it from a chrome browser on windows machine or any OS that supports modern browsers.

Getting the storage underlying Aim (the rocksdb build) to work on windows is a bit of a challenge. We have tried but it turns out quite an undertaking. Eventually we will get it done if this blocks too many users to use Aim productively.

Community help is also welcome, if someone decides to go for it, we will help with everything we can :)

Hope this makes sense.

@SGevorg Thanks for clarifying.

I'm writing software for AI discovery and I use Windows + VSCode. I'm trying to put hooks in my code to call aim. Although the actual discovery will run on Unix, I need to call aim in my testcases, which I run on Windows.

It is not a big problem, because I can use WSL. It is a little annoying because syntax assist and debug won't run in VSCode. But perhaps there is a plugin for that... i should investigate it https://code.visualstudio.com/docs/remote/wsl

Any solution how to run it on Windows?

I'm in a similar situation, working for a large automation company. Development is done on Windows, experiments are also run on Windows machines fairly frequently.

i have a same question

same issue

same issue

Hello, I have same issue when trying to install requirements inside Dockerfile (build stage based upon python:3.9-alpine).

Error output:

ร— pip subprocess to install build dependencies did not run successfully.
  โ”‚ exit code: 1
  โ•ฐโ”€> [9 lines of output]
      Collecting setuptools
        Using cached setuptools-67.7.2-py3-none-any.whl (1.1 MB)
      Collecting cython==3.0.0a11
        Downloading Cython-3.0.0a11-cp39-cp39-musllinux_1_1_x86_64.whl (2.6 MB)
           โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” 2.6/2.6 MB 4.4 MB/s eta 0:00:00
      ERROR: Could not find a version that satisfies the requirement aimrocks==0.4.0 (from versions: 0.2.0)
      ERROR: No matching distribution found for aimrocks==0.4.0
      WARNING: You are using pip version 22.0.4; however, version 23.1.2 is available.
      You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.

I had the project working on my PC (using Pipenv) and packages installation is working using Pipfile.lock, but I omitted this in Dockerfile.
I instead exported the Pipfile.lock to more standard requirements.txt using pipenv requirements.

windows10:
Collecting aim
Downloading https://mirrors.aliyun.com/pypi/packages/2d/5a/d152b7d23f9f5ae7a200d6fec5c697affbcdd305daa2536154aa79bb4746/aim-3.19.3.tar.gz (1.6 MB)
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ” 1.6/1.6 MB 1.0 MB/s eta 0:00:00
Installing build dependencies ... error
error: subprocess-exited-with-error

ร— pip subprocess to install build dependencies did not run successfully.
โ”‚ exit code: 1
โ•ฐโ”€> [12 lines of output]
Looking in indexes: https://mirrors.aliyun.com/pypi/simple
Collecting setuptools
Downloading https://mirrors.aliyun.com/pypi/packages/f7/29/13965af254e3373bceae8fb9a0e6ea0d0e571171b80d6646932131d6439b/setuptools-69.5.1-py3-none-any.whl (894 kB)
-------------------------------------- 894.6/894.6 kB 1.0 MB/s eta 0:00:00
Collecting cython==3.0.0a11
Downloading https://mirrors.aliyun.com/pypi/packages/b6/50/97fec65cbde210f6bf71db1970ce8f6461a0594c619b6c6834d03742f1bd/Cython-3.0.0a11-py2.py3-none-any.whl (1.1 MB)
---------------------------------------- 1.1/1.1 MB 1.1 MB/s eta 0:00:00
ERROR: Could not find a version that satisfies the requirement aimrocks==0.4.0 (from versions: 0.2.0)
ERROR: No matching distribution found for aimrocks==0.4.0

  [notice] A new release of pip available: 22.3 -> 24.0
  [notice] To update, run: python.exe -m pip install --upgrade pip
  [end of output]

same issue on windows. any fix?