On Wed, 17 Apr 2019 at 15:57, Arun Gupta via nmr-relax-users
<[email protected]> wrote:
>
> Hi Edward,
>
> Thanks for your reply. The error was due to the "minfx module" which was 
> missing on my Windows 10.

Hi Arun,

I can only assume that it was corrupted rather than missing.  If it
was missing, then this is directly caught and relax outputs:

"""
C:\>relax --gui
The dependency 'minfx' has not been installed (see
https://sourceforge.net/projects/minfx/).
C:\>
"""


> After "minfx module" installation,  " relax " has loaded on my desktop 
> command terminal but without GUI initialisation. Its giving me following 
> error:-
>
> C:\>relax --gui
> Usage: relax.py [options] [script_file]
>
> RelaxError: To use the GUI, the wxPython module must be installed.

This is true.


> Although Anaconda or Python 3.7.3 has in-built wxPython module 4.0.4 . But to 
> ensure that its installed I used   " pip install -U wxPython "  for again 
> installation.
>
>
> Requirement already satisfied, skipping upgrade: six in 
> c:\users\u1870527\anaconda3\lib\site-packages (from wxPython) (1.12.0)
> Installing collected packages: wxPython
> Successfully installed wxPython-4.0.4
>
> C:\>wxpython --version
> 'wxpython' is not recognized as an internal or external command,
> operable program or batch file.

wxpython is not an executable file, so this won't work.  It is a Python module.


> C:\>wxPython --version
> 'wxPython' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\>relax --gui
> Traceback (most recent call last):
>   File "C:\Program Files (x86)\relax-4.1.1\multi\processor.py", line 494, in 
> run
>     self.callback.init_master(self)
>   File "C:\Program Files (x86)\relax-4.1.1\multi\__init__.py", line 318, in 
> default_init_master
>     self.master.run()
>   File "C:\Program Files (x86)\relax-4.1.1\\relax.py", line 203, in run
>     import gui
>   File "C:\Program Files (x86)\relax-4.1.1\gui\__init__.py", line 39, in 
> <module>
>     from gui.uf_objects import Uf_storage; uf_store = Uf_storage()
>   File "C:\Program Files (x86)\relax-4.1.1\gui\uf_objects.py", line 35, in 
> <module>
>     from gui.components.free_file_format import Free_file_format
>   File "C:\Program Files 
> (x86)\relax-4.1.1\gui\components\free_file_format.py", line 31, in <module>
>     from gui.icons import relax_icons
>   File "C:\Program Files (x86)\relax-4.1.1\gui\icons.py", line 46, in <module>
>     relax_icons = Relax_icons()
> wx._core.PyNoAppError: The wx.App object must be created first!
>
>
> I think now I am getting wxPython not configured  with relax errors. Can you 
> suggest solution.

The problem is that relax currently does not support the unstable
wxPython-Phoenix versions of wxPython.  I have development branches in
the source code repository dealing with this, but the relax releases
do not.  Specifically because wxPython-Phoenix is not stable and is
changing, and some features used by relax are completely missing (for
now).  You need to use wxPython classic - i.e. versions < 4.0.

Note however that with the upcoming relax 4.1.2 release, I have fixed
the error you see.  There will be significant other issues though if
you continue using wxPython >= 4.0.

Regards,

Edward


_______________________________________________
nmr-relax-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nmr-relax-users

Reply via email to