Installing hyperspy into Anaconda

164 views
Skip to first unread message

Andrew Thron

unread,
Nov 26, 2013, 6:25:20 PM11/26/13
to hypersp...@googlegroups.com
When I try to install the 64-bit Hyperspy module with Anaconda or Canopy I cannot get the hyperspy module to work in the qt console. I can import hyperspy on the qt console, however it does not recognize any of the modules with in Hyperspy. For instance if I import hyperspy then type s=load() it asks for a file extension for a numpy array rather then loading the load GUI. If I try s=hyperspy.io.load() it does not recognize the load module. If I download and install Hyperspy with the windows installer (the package which includes python software), then qt console runs the Hyperspy module just fine. Any trouble shooting suggestions, or places to start looking for issues?




Francisco de la Peña

unread,
Nov 27, 2013, 7:04:30 AM11/27/13
to hypersp...@googlegroups.com
Hyperspy 0.6 does not  work in Anaconda because Anaconda does not ship with the Wx libraries that Hyperspy 0.6 requires for full functionality. The next release of Hyperspy works with PyQt and (aside from a bug that we're working to fix) PySide. We're going to release soon but, if you feel adventurous and want to help us beta testing Hyperspy 0.7, you can download the beta version (32bits 64bits). There are several features that are waiting to be accepted into the next release and that you'll not get in these packages, but at least it should work fine in Anaconda and quite a few bugs have been fixed since the 0.6 release. You can get a draft of the new documentation here.

Francisco


On 26 November 2013 23:25, Andrew Thron <punkass...@gmail.com> wrote:
When I try to install the 64-bit Hyperspy module with Anaconda or Canopy I cannot get the hyperspy module to work in the qt console. I can import hyperspy on the qt console, however it does not recognize any of the modules with in Hyperspy. For instance if I import hyperspy then type s=load() it asks for a file extension for a numpy array rather then loading the load GUI. If I try s=hyperspy.io.load() it does not recognize the load module. If I download and install Hyperspy with the windows installer (the package which includes python software), then qt console runs the Hyperspy module just fine. Any trouble shooting suggestions, or places to start looking for issues?




--
You received this message because you are subscribed to the Google Groups "hyperspy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hyperspy-user...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Andrew Thron

unread,
Nov 27, 2013, 11:57:06 AM11/27/13
to hypersp...@googlegroups.com
Francisco, 

Thank you for the help! I will give 0.7 a shot, and let you know how it goes. 

Cheers, 
Andrew 

Andrew Thron

unread,
Nov 27, 2013, 5:21:33 PM11/27/13
to hypersp...@googlegroups.com
Francisco, 

There was one other concern I had. When I went to uninstall the Hyperpsy Package which contained WinPython, I used the uninstall feature which WinPython comes with (rather then going through Windows 7). As WinPython and Hyperspy were being uninstalled, the uninstaller also deleted several other files not related to these programs: data, music, PDFS, word documents. Everything was backed-up on an external hard drive, however the uninstaller should not have done this.

Has anyone reported a bug like this with the uninstaller in the WinPython-HyperSpy package? I uninstalled the package a few times through Windows 7, and I had no issues. 

Cheers, 
Andrew 

On Wednesday, November 27, 2013 4:04:30 AM UTC-8, Francisco wrote:

Francisco de la Peña

unread,
Nov 28, 2013, 5:41:23 AM11/28/13
to hypersp...@googlegroups.com
Andrew,

You are the first one to report this issue and hopefully the only one so far suffering its consequences.

After inspecting the installer's code I have identified one scenario that can result in the uninstaller erasing files unrelated to Hyperspy. The uninstaller, between other things, deletes the Hyperspy installation directory. By default this is the Hyperspy folder in ProgramFiles if installed with admin rights or the Hyperspy folder in ApplicationData. Howerver, if during the installation process the user selects to install Hyperspy in an already existing folder that is not empty the uninstaller, when executed, will erase that folder and all its content. Is it what happened to you? If it is not, could you provide us with more details?

We were unaware of this extremely serious issue, thank you very much for reporting it. I'm very sorry for the damage that it has caused you. It is a big relief to me that you have a copy of the erased files but other users may not be so lucky.

We will display a warning in the website and release a fixed installer asap.

Best wishes,

Francisco

Andrew Thron

unread,
Nov 29, 2013, 2:41:57 PM11/29/13
to hypersp...@googlegroups.com
Fransico, 

That is exactly what happened. The last time I installed HyperSpy, I installed it in my documents file (where I had my data) rather then Program Files(x86). Every file which was deleted was in my documents file. When I installed the HyperSpy package in my documents it did not create a separate file like it would in Program Files(x86). So the bug you found was exactly what deleted the files unrelated to the HyperSpy package. As long as everything from the package is in its own file I don't think users will have an issue. 

Thanks for looking into this quickly. Hopefully this gets the word out to others users so they don't make the same mistake I did. 

Cheers, 
Andrew  
Reply all
Reply to author
Forward
0 new messages