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

Not installing on windows #2064

Open
manuel-delverme opened this issue Aug 12, 2022 · 16 comments
Open

Not installing on windows #2064

manuel-delverme opened this issue Aug 12, 2022 · 16 comments
Labels
help wanted Extra attention is needed type / bug Issue type: something isn't working

Comments

@manuel-delverme
Copy link

🐛 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 manuel-delverme added help wanted Extra attention is needed type / bug Issue type: something isn't working labels Aug 12, 2022
@SGevorg
Copy link
Member

SGevorg commented Aug 13, 2022

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

@nilavra
Copy link

nilavra commented Aug 14, 2022

@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.

@SGevorg
Copy link
Member

SGevorg commented Aug 15, 2022

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

@jdhenckel
Copy link

jdhenckel commented Sep 14, 2022

@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?

@SGevorg
Copy link
Member

SGevorg commented Sep 14, 2022

@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.

@jdhenckel
Copy link

jdhenckel commented Sep 15, 2022

@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

@pauli31
Copy link

pauli31 commented Nov 22, 2022

Any solution how to run it on Windows?

@alek5k
Copy link

alek5k commented Jan 31, 2023

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.

@yanjiusheng123456
Copy link

i have a same question

@leminhds
Copy link

same issue

1 similar comment
@cdcseacave
Copy link

same issue

@FilipJakab
Copy link

FilipJakab commented May 15, 2023

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.

@icdcom
Copy link

icdcom commented May 6, 2024

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]

@hedecai
Copy link

hedecai commented Aug 2, 2024

same issue on windows. any fix?

@jdhenckel
Copy link

jdhenckel commented Aug 3, 2024 via email

@AAAceerr
Copy link

same issue on win11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed type / bug Issue type: something isn't working
Projects
None yet
Development

No branches or pull requests