[GSAS-II] GSASII Version 3815 breaks wx import in scriptable
Toby, Brian H.
toby at anl.gov
Mon Mar 18 12:22:19 CDT 2019
This was an unintended result from adding image support in scripting. Thanks for reporting it.
As of version 3857, neither wx nor matplotlib is required to be installed for use of scripting (only Python, numpy and scipy are required).
Brian
> On Mar 18, 2019, at 4:14 AM, Ivo Alxneit via GSAS-II <gsas-ii at aps.anl.gov> wrote:
>
> Dear all
>
> I noted that Version 3815 breaks wx import in scriptable on my linux
> system configured as below.
>
> Python module versions loaded:
> Python: 3.7.2
> wx: 4.0.4
> matplotlib: 3.0.3
> numpy: 1.16.2
> scipy: 1.2.1
> OpenGL: 3.1.1a1
> PIL.Image: 5.4.1
> Platform: linux 64bit x86_64
> This is GSAS-II revision 3814
>
>
> Version 3815:
>
> In [1]: import os, sys
> ...: sys.path.insert(0,
> os.path.expanduser("/home/alxneit/share/miniconda3/envs/gsas/GSASII"))
> ...: import GSASIIscriptable as G2sc
> GSAS-II binary directory:
> /home/alxneit/share/miniconda3/envs/gsas/GSASII/bindist
> 6 values read from config file
> /home/alxneit/share/miniconda3/envs/gsas/GSASII/config.py
> Traceback (most recent call last):
>
> File "<ipython-input-1-e27ad7772829>", line 3, in <module>
> import GSASIIscriptable as G2sc
>
> File
> "/home/alxneit/share/miniconda3/envs/gsas/GSASII/GSASIIscriptable.py",
> line 578, in <module>
> import GSASIIimage as G2img
>
> File "/home/alxneit/share/miniconda3/envs/gsas/GSASII/GSASIIimage.py",
> line 28, in <module>
> import GSASIIplot as G2plt
>
> File "/home/alxneit/share/miniconda3/envs/gsas/GSASII/GSASIIplot.py",
> line 131, in <module>
> import GSASIIdataGUI as G2gd
>
> File
> "/home/alxneit/share/miniconda3/envs/gsas/GSASII/GSASIIdataGUI.py", line
> 58, in <module>
> import GSASIIpwdGUI as G2pdG
>
> File
> "/home/alxneit/share/miniconda3/envs/gsas/GSASII/GSASIIpwdGUI.py", line
> 50, in <module>
> import GSASIIphsGUI as G2phsG
>
> File
> "/home/alxneit/share/miniconda3/envs/gsas/GSASII/GSASIIphsGUI.py", line
> 33, in <module>
> import wx
>
> ModuleNotFoundError: No module named 'wx'
>
>
> Version 3814:
>
> In [1]: import os, sys
> ...: sys.path.insert(0,
> os.path.expanduser("/home/alxneit/share/miniconda3/envs/gsas/GSASII"))
> ...: import GSASIIscriptable as G2sc
> GSAS-II binary directory:
> /home/alxneit/share/miniconda3/envs/gsas/GSASII/bindist
> 6 values read from config file
> /home/alxneit/share/miniconda3/envs/gsas/GSASII/config.py
>
>
> gruss
> --
> Dr. Ivo Alxneit
> Catalysis for Energy Group
> Bioenergy and Catalysis Laboratory phone: +41 56 310 4092
> Paul Scherrer Institute fax: +41 56 310 2688
> CH-5232 Villigen gnupg key: 0x515E30C7
> Switzerland
> https://www.psi.ch/ceg/
>
> _______________________________________________
> GSAS-II mailing list
> GSAS-II at aps.anl.gov
> https://mailman.aps.anl.gov/mailman/listinfo/gsas-ii
More information about the GSAS-II
mailing list