-
Notifications
You must be signed in to change notification settings - Fork 356
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
micromamba2 can't install pip packages in new environment #3467
Comments
Thanks for the report! I'm trying to reproduce this issue locally on my Windows but cannot so far. Do you have a link to the real complete log for the build you linked? When I get the supposedly complete log in there it's not actually complete. |
For now my investigation leads me to think something wrong is happening in the environment. If I'm not mistaken, from the log only (as I cant reproduce the issue yet), it seems that the python scripts/packages compilation commands fails because we try to send messages to the python process through it's standard input and it fails for some unclear reason. |
I'm able to reproduce this in the Windows Sandbox: In a PowerShell window, download micromamba and create a new test prefix: Invoke-Webrequest -URI https://micro.mamba.pm/api/micromamba/win-64/latest -OutFile micromamba.tar.bz2
tar xf micromamba.tar.bz2
MOVE -Force Library\bin\micromamba.exe micromamba.exe
$Env:MAMBA_ROOT_PREFIX="C:\Users\WDAGUtilityAccount\TestPrefix"
.\micromamba.exe create -c conda-forge -y -n test-prefix --pyc python=3.12 Then reproduce the issue by running any command inside the environment: .\micromamba.exe run -n test-prefix echo "HELLO" It looks like it's failing to create I'm able to work around the issue by copying I hope this helps :) |
We can reproduce a similar error after
The suggested workaround of copying But the following warning is printed, which we're ignoring for now!
|
I noticed this happens if you add |
Unfortunately not. I managed to get the
Unfortunately this work around won't work for us as the problem is during creation of the environment, but maybe that'll help find a fix. |
This build has the full micromamba debug log as an artifact: https://ci.appveyor.com/project/matplotlib/matplotlib/builds/50693281/artifacts |
This is occurring in the CI for conda-lock here: We are running conda-lock from the Bash shell on Windows, installing from a unified conda-lock.yml lockfile. The corresponding line in the workflow is here: micromamba create -y -n gdal-test-mm-lock -f lockfiles/conda-lock.yml The artifact containing I hope this helps to reproduce it, thanks so much!!! |
Version 2 appears to be broken WRT installing PyPI packages: mamba-org/mamba#3467
@depau Your report looks like a different issue? I can't see the whole screenshot for some reason but the errors seems related to file locking, or do you have a more complete log? |
For some reason the file link sends you an mp3 😆 renaming the file extension to txt solves this but that's weird |
Version 2 appears to be broken WRT installing PyPI packages: mamba-org/mamba#3467
#3489 might have fixed this issue, please check again with micromamba v2.0.2 when it's out (release planned in a few hours) 🙏🏽 |
* ci: Bump build image on AppVeyor to MSVC 2019 According to the SciPy toolchain roadmap [1], we should be supporting at minimum MSVC 2019. The AppVeyor image has been held back to MSVC 2017 (probably just forgotten since it didn't complain), which is starting to cause issues for more modern code. [1] https://docs.scipy.org/doc/scipy/dev/toolchain.html * ci: Pin micromamba on AppVeyor to v1 Version 2 appears to be broken WRT installing PyPI packages: mamba-org/mamba#3467
The Windows CI was failing for the unit tests. Strangely this still worked in conda#713, perhaps due to caching? <mamba-org/mamba#3467>
Apologies, I was conflating this with a different problem that presented similarly. |
Unfortunately, 2.0.2 has not fixed this error: https://ci.appveyor.com/project/matplotlib/matplotlib/builds/50730536 |
Had the same problem in my Windows CircleCI build step. Changed the CI to install micromamba 1.5.10 as a workaround which was a bit tricky since the VERSION feature in the install powershell script is broken and downgrading micromamba with |
* ci: Bump build image on AppVeyor to MSVC 2019 According to the SciPy toolchain roadmap [1], we should be supporting at minimum MSVC 2019. The AppVeyor image has been held back to MSVC 2017 (probably just forgotten since it didn't complain), which is starting to cause issues for more modern code. [1] https://docs.scipy.org/doc/scipy/dev/toolchain.html * ci: Pin micromamba on AppVeyor to v1 Version 2 appears to be broken WRT installing PyPI packages: mamba-org/mamba#3467
Hi @Klaim, is there any activity regarding fixing this? It's unfortunate that it's not been working for more than 2 weeks now. Are you having trouble reproducing? |
Indeed, I still cannot reproduce it on my side (I was also away for some days last week so that doesnt help). We expected 2.0.2 to fix the issue as we saw similar issues in some CI reports and these are fixed by that version. Sorry that it takes time, this release brought a lot of issues so we are a bit swamped, but we are still looking into it. |
We managed to reproduce the issue on my local machine, potential solution in progress. |
We expect these changes to fix this issue: #3546 |
any word on when such a release might happen? Or is there a source for nightlies of the |
Troubleshooting docs
Anaconda default channels
How did you install Mamba?
Micromamba
Search tried in issue tracker
pip
Latest version of Mamba
Tried in Conda?
I didn't try
Describe your issue
On AppVeyor, we install micromamba manually, then create an environment from
environment.yml
. This environment is mostlyconda-forge
, but includes a few packages under apip
key.Starting today, micromamba successfully creates the environment from the listed packages, but then fails to install the
pip
-specific packages. I believe micromamba 2.0.0 was released today, so suspect that to be the likely culprit.mamba info / micromamba info
Logs
The full log with
--log-level 0
is on this build, but here are the last few lines:environment.yml
https://github.com/matplotlib/matplotlib/blob/main/environment.yml
~/.condarc
No response
The text was updated successfully, but these errors were encountered: