-
Notifications
You must be signed in to change notification settings - Fork 4
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
error when installing mountainsort 4: cl.exe failed with exit code 2 #6
Comments
Hi, I'm still getting this error even with other versions of python. It would really help if someone had any insights into how to fix it and install mountainsort4 (my other code works with that and not mountainsort5). |
Hi @elduvelle, sorry I haven't tested on windows. Have you tried with WSL? |
Hi! Do you mean Windows Subsystem for Linux? I haven't tried that. I have an Ubuntu machine but every time I try to do things on Linux it takes 10x the time it takes me on windows, so I generally try to avoid it. I guess I could test the installation on it to see if I get the same error. My code (using spike interface and mountainsort 4, see here for the repo) is working fine on another of my Windows 10 computers, so it seems that there is some subtle but hopefully simple thing to do to make it work... If you have any ideas of what to test I can do the tests! |
I don't know if it's helpful but I tried to install mountainsort 5 and that worked (the installation didn't have the same error). Of course it did have some problems when I tried to run my code with ms5 but maybe it could help narrow down the problem? |
Some additional info: I tried with a different version of python (3.8.10, following this post) and this time the error was when I tried to install isosplit 5, which if I am not mistaken is also yours @magland (thank you for contributing all this great code!)?
Edit: actually I had tried that python version before, sorry. |
@elduvelle thanks for that info. Mountainsort and isosplit were developed and tested in Linux, and I don't have easy access to a windows machine for troubleshooting. I strongly suggest you give WSL (windows subsystem for linux) a try. I think that will be your best bet. |
@magland That's too bad.. but thanks nonetheless. I will try that for lack of better solution. Hopefully someone else will have some insights on how to make it work on Windows 10! |
For whoever is reading this, here's an update: the install works on Ubuntu. However, there are now other problems with what I wanted to do with mountainsort, but they are unrelated to mountainsort or this question. I'd still appreciate any pointers regarding how to solve the 'cl.exe' problem on win 10! |
Hi @magland I'm really sorry to bother you again with this but is it possible to know which version of Visual Studio tools / suite was used when isosplit v. 0.1.3 was released? I think the problems I'm having are because Visual studio tools have been updated and expect a specific syntax of files that they try to compile which is why it fails. |
I never used Visual Studio. I believe that's only for windows. I have only tested this on Linux. |
I think I am running into the same problem, but with a windows11 PC. This does not get recognized by spikeinterface (which is my final goal). But when I then try to install mountainsort4 for any missing components, it tried to re-install isosplit5 and failed at that. Anyway, my error message looks like this:
|
Hi :) I have made some more tests on my side of things:
3.1. Make sure you move to a folder that you have writing access to, like /home/your_user_name/ by doing 3.2 Download the miniconda installer
3.3. Run the installation, follow the instructions
3.3. Close and reopen
and it should work! That's for WSL. I still would like to make it work again in Win10 without the additional WSL steps. Interestingly, it seemed that all the operations done in WSL were faster than the same ones run in Windows... Note: my pipeline involves installing a few things before mountainsort and maybe these help. Feel free to check it out. It's using spikeinterface to use Phy to process the output of mountainsort. |
Thanks @elduvelle for the update! Glad you got it working in WSL. Thanks also for posting a link to your pipeline... that could very well be useful for folks. |
Thank you for Mountainsort - great software!
I am having a 'cl.exe failed with exit code 2' error while trying to install mountainsort4 via
pip install mountainsort4
in a conda environment.The relevant part of the error message that I get is:
additional info:
pip install git+https://github.com/magland/isosplit5_python.git
and that error was fixedThanks in advance for any suggestions!
The text was updated successfully, but these errors were encountered: