conda-forge / miniforge

A conda-forge distribution.
https://conda-forge.org/miniforge
Other
6.14k stars 318 forks source link

Mambaforge-PyPy windows installer is broken #385

Closed iloos closed 1 year ago

iloos commented 1 year ago

Comment:

Hey I installed the mamba PyPy on my Win10 machine, but I don't understand how to access it. I already had anaconda installed. When opening the anaconda prompt, 'mamba' is not recognized.

When tryinig to open the activate.bat, I get these error messages: image image image

I was comfortably using anaconda, but am looking to share my projects and did some further research. Miniforge seems perfect for many reasons. But do i need to uninstall my old version of python or something? I did not add to defaults in the installer, is that it maybe?

Thanks!!

iloos commented 1 year ago

I can get it to work, by just installing mamba in anaconda, as per the docs, but I was wondering how this would work on a new machine.

otaithleigh commented 1 year ago

Just want to note that I get the same errors above with a fresh Win10 mambaforge-pypy3 installation, but it's specific to the PyPy version -- the CPython version works fine. I can then create an environment with pypy that works fine, but something about the mambaforge-pypy3 installer is borked.

hmaarrfk commented 1 year ago

cc: @conda-forge/help-pypy

mattip commented 1 year ago

Adding text to make this issue turn up in searches: It seems Mambaforge-pypy3-Windows-x86_64 is broken and is not correctly installing the support dlls needed to start up: libbz2.dll, 1libexpat.dll, ffi-8.dll. Maybe the dlls exist and the activation script should be adding them to the dll search path?

mattip commented 1 year ago

Once I copied libexpat.dll from Library\bin to the root directory I could run activate.bat

mattip commented 1 year ago

I opened an issue in the pypy feedstock

andrew-ma commented 1 year ago

Just FYI, I faced this issue today when I used did a fresh install of Mambaforge with PyPy3 on Windows 10 using this installer "Mambaforge-pypy3-Windows-x86_64.exe" (SHA256 hash = 1C107C97A953549BE553A09E80B4B32A5132476253606F79282FCD4ACBBF36B0).

The missing DLL issue appeared when I tried to run "Miniforge Prompt" from the Start Menu.

andrew-ma commented 1 year ago

And it was solved when I copied these 3 files to %USERPROFILE%\mambaforge-pypy3

lamrongol commented 1 year ago

And it was solved when I copied these 3 files to %USERPROFILE%\mambaforge-pypy3

  • %USERPROFILE%\mambaforge-pypy3\Library\bin\ffi-8.dll
  • %USERPROFILE%\mambaforge-pypy3\Library\bin\libbz2.dll
  • %USERPROFILE%\mambaforge-pypy3\Library\bin\libexpat.dll

I had same problem and this way solved it. Installer should contains these dlls in \mambaforge-pypy3 folder.

mattip commented 1 year ago

Installer should contains these dlls in \mambaforge-pypy3 folder.

There is some discussion of this vs. alternate solutions in conda-forge/pypy3.6-feedstock#101

olsonperrensen commented 1 year ago

And it was solved when I copied these 3 files to %USERPROFILE%\mambaforge-pypy3

  • %USERPROFILE%\mambaforge-pypy3\Library\bin\ffi-8.dll
  • %USERPROFILE%\mambaforge-pypy3\Library\bin\libbz2.dll
  • %USERPROFILE%\mambaforge-pypy3\Library\bin\libexpat.dll

I had same problem and this way solved it. Installer should contains these dlls in \mambaforge-pypy3 folder.

Makes sense for it to work out of the box. Isn't there a request to merge this?

mattip commented 1 year ago

Copying the files is not an alternative the conda-forge maintainers wish to use. There is an alternative proposed solution. It needs a champion to turn that into a PR to the feedstock. I am willing to mentor someone who wishes to undertake it.

h-vetinari commented 1 year ago

The newest miniforge builds should have fixed this. Can someone give it a try?

isuruf commented 1 year ago

Fixed now with https://github.com/conda-forge/pypy3.6-feedstock/pull/107