Closed Ashkees closed 6 months ago
Ok, so maybe I'm making a silly error that has something to do with python that I don't understand yet. When I run on my computer, I run it using PyCharm and it works fine. On my colleague's computer it works ok if I run it from the Anaconda console, but not if I run it using Spyder (this is where I was getting the above errors). So, maybe everything is ok with spikeinterface and it's more of a matter of me not knowing how to run my scripts properly.
Hi @Ashkees
Yeah I think that Spyder might be more complicated in terms of properly controlling environments resources. Should we close the issue then?
This type of error on Windows is usually due to environment stuff getting out of sync. It might be best for you to just create a fresh environment. Since you created this with the installation tips yaml, how did you sync up spyder? Are you using (base) spyder, but with a kernel from your si_env?
I'm curious since I've been able to coordinate Spyder with spikeinterface, so I don't think this should be impossible. (based on my reading your error Windows fatal exception: code 0xc06d007e
typically refers to corrupted files on Windows), so a fresh environment would like get rid of whatever file got corrupted between Spyder and the other files in your env.
I'm happy to explore this a little more @alejoe91 and close if we can't figure this out. I think we should be able to get SI working everywhere : )
Hi Ashley. Could you try to run the same in a conda consol in windows instead of spyder ? Just to check that it is windows related and not ipykernel embeded in spyder related.
Hi Ashley. Could you try to run the same in a conda consol in windows instead of spyder ? Just to check that it is windows related and not ipykernel embeded in spyder related.
Hi Sam. I did try that yesterday and it runs fine. So, to summarize, I've tried it on two windows computers: from PyCharm and the anaconda console it works fine, from spyder it has the fatal error. So it seems like a spyder problem.
This type of error on Windows is usually due to environment stuff getting out of sync. It might be best for you to just create a fresh environment. Since you created this with the installation tips yaml, how did you sync up spyder? Are you using (base) spyder, but with a kernel from your si_env?
I created the si_env using the installation tips yaml. Then I ran 'conda install spyder' in that environment, enabling me to run spyder from the si_env.
I'm curious since I've been able to coordinate Spyder with spikeinterface, so I don't think this should be impossible. (based on my reading your error
Windows fatal exception: code 0xc06d007e
typically refers to corrupted files on Windows), so a fresh environment would like get rid of whatever file got corrupted between Spyder and the other files in your env.
It occurs to me now that I should have added spyder to the yaml and created a fresh environment all at once, instead of adding in programs after. I don't have access to my colleague's computer today, but when I do, I'll give that a try and anything else you suggest =)
It occurs to me now that I should have added spyder to the yaml and created a fresh environment all at once, instead of adding in programs after. I don't have access to my colleague's computer today, but when I do, I'll give that a try and anything else you suggest =)
I think that is the best case scenario for a potentially storage expensive solution. Spyder is such a complicated program with so many dependencies it is probably best to let the conda resolver take care of the hard dependency resolution if you want Spyder in your env. I think Sam's suggestion could also work playing around with the ipykernel you use (docs here for Spyder).
But I don't think it is a good idea to pip install Spyder
after creating the env. Either put it at the beginning (in the yaml) or use a Spyder-ipykernel strategy.
@Ashkees, any update on getting things to work for you?
Hi, thanks for checking in. Putting Spyder in the .yml and creating the environment from that did not solve the issue. I haven't had a chance to try the Spyder-ipykernel strategy. For my purposes, I've had to move on from that aspect of the project, so we can close the issue for now. I think when I come back to it I'll forget about Spyder and run my spike interface scripts from PyCharm or from the Anaconda command prompt instead.
Thanks for your help! Sorry I wasn't able to follow through with all your suggestions!
Hello,
I wrote a little script to cluster my data and it works fine on my computer. Now I'm trying to run the same on the computer of my colleague and after I run this code:
I get the following output and error message:
Any advice for dealing with this issue is much appreciated! Thanks in advance, Ashley