aim icon indicating copy to clipboard operation
aim copied to clipboard

Not installing on windows

Open manuel-delverme opened this issue 3 years ago • 19 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 avatar Aug 12 '22 19:08 manuel-delverme

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

SGevorg avatar Aug 13 '22 13:08 SGevorg

@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 avatar Aug 14 '22 08:08 nilavra

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

SGevorg avatar Aug 15 '22 12:08 SGevorg

@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 avatar Sep 14 '22 14:09 jdhenckel

@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 avatar Sep 14 '22 16:09 SGevorg

@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

jdhenckel avatar Sep 15 '22 13:09 jdhenckel

Any solution how to run it on Windows?

pauli31 avatar Nov 22 '22 15:11 pauli31

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.

alek5k avatar Jan 31 '23 00:01 alek5k

i have a same question

yanjiusheng123456 avatar Apr 11 '23 03:04 yanjiusheng123456

same issue

leminhds avatar Apr 17 '23 14:04 leminhds

same issue

cdcseacave avatar Apr 25 '23 08:04 cdcseacave

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.

FilipJakab avatar May 15 '23 16:05 FilipJakab

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]

icdcom avatar May 06 '24 08:05 icdcom