Closed EdwardWooCN closed 3 years ago
That setup.py
in the GUI folder is for packing the GUI into an executable package, whereas what you want to do is just do "python PDSimGUI.py" to launch the GUI. On some systems you might want to use pythonw
instead of python
.
It didn't work also.
No GUI shows if using
pythonw
You want to run the command starting in the GUI folder.
On Fri, Oct 16, 2020, 12:13 AM Edward Woo notifications@github.com wrote:
It didn't work also. [image: image] https://user-images.githubusercontent.com/19247062/96212237-e2449580-0fa8-11eb-8d59-90fb26c641af.png
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ibell/pdsim/issues/59#issuecomment-709729654, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOGC26SEWUSB7WCKCAXIOLSK7B6BANCNFSM4SRYTSBQ .
If run from GUI folder, it will work.
I have some doubts in how to use GUI. Here are my installation steps. Step1: Installing PDSim env in conda: [Successfully]![image](https://user-images.githubusercontent.com/19247062/96107809-72ce9780-0f0f-11eb-80f9-0326657d8567.png)
conda env create -n pdsim_stable -f RTDenvironment.yml
Step 2: Switch the path under PDSim-master folder and run setup.py [Successfully]![image](https://user-images.githubusercontent.com/19247062/96108021-b3c6ac00-0f0f-11eb-8c9d-c8c7f80f560e.png)
Step 3: Switch to the folder .\GUI and run setup.py [Error]
running build running build_exe Traceback (most recent call last): File "setup.py", line 113, in <module> pack(get_defaults()) File "setup.py", line 85, in pack executables = [GUI2Exe_Target_1] File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\site-packages\cx_Freeze\dist.py", line 342, in setup distutils.core.setup(**attrs) File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\distutils\core.py", line 148, in setup dist.run_commands() File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\distutils\dist.py", line 966, in run_commands self.run_command(cmd) File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\distutils\command\build.py", line 135, in run self.run_command(cmd_name) File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\distutils\cmd.py", line 313, in run_command self.distribution.run_command(command) File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\distutils\dist.py", line 985, in run_command cmd_obj.run() File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\site-packages\cx_Freeze\dist.py", line 217, in run freezer.Freeze() File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\site-packages\cx_Freeze\freezer.py", line 638, in Freeze self.finder = self._GetModuleFinder() File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\site-packages\cx_Freeze\freezer.py", line 377, in _GetModuleFinder finder.IncludeModule(name) File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\site-packages\cx_Freeze\finder.py", line 653, in IncludeModule namespace = namespace) File "C:\Users\NH55\anaconda3\envs\pdsim_stable\lib\site-packages\cx_Freeze\finder.py", line 349, in _ImportModule raise ImportError("No module named %r" % name) ImportError: No module named 'numpy.core._multiarray_tests.cp37-win_amd64'
cx_Freeze version is cx_Freeze-6.2-cp37-cp37m-win_amd64.whl numpy version is 1.19.11 glob2 version is 0.7