johan12345 / gcs_python

Graduated cylindrical shell CME model in Python
MIT License
18 stars 10 forks source link

Problem Installing GUI #16

Closed NakoteyMinta closed 5 months ago

NakoteyMinta commented 5 months ago

I installed this GCS from the mirrored repository: https://gitlab.physik.uni-kiel.de/ET/gcs_python. which worked well. B I have changed my laptop and need to reinstall the tool again, but it is giving me an error message. Can someone help me fix the error or help me locate the mirriored repo since I cant find it again?

PS C:\Users.......> python -m gcs.gui "2020-04-15 06:00" STA SOHO WARNING: SunpyDeprecationWarning: The HelioviewerClient class is deprecated and may be removed in version 5.1. Use hvpy - https://hvpy.readthedocs.io/en/stable instead. [gcs.utils.helioviewer] Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "C:.........\anaconda3\envs\gcs_CME\Lib\site-packages\gcs\gui.py", line 296, in main() File "C:...........\anaconda3\envs\gcs_CME\Lib\site-packages\gcs\gui.py", line 289, in main app = GCSGui(args.date, args.spacecraft, args.running_difference, detector_stereo=args.stereo, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:.........\anaconda3\envs\gcs_CME\Lib\site-packages\gcs\gui.py", line 126, in init self.create_widgets() File "C:.......\anaconda3\envs\gcs_CME\Lib\site-packages\gcs\gui.py", line 133, in create_widgets self._s_half_angle = SliderAndTextbox('Half angle, \u03B1 [°]', 0, 90, params['half_angle']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:..........\anaconda3\envs\gcs_CME\Lib\site-packages\gcs\utils\widgets.py", line 16, in init self.slider.setMinimum(min / resolution) TypeError: setMinimum(self, a0: int): argument 1 has unexpected type 'float'

johan12345 commented 5 months ago

Hi, I no longer work at Kiel University, so I don't have access to the mirrored repository anymore. As far as I know, the gitlab.physik.uni-kiel.de instance has been shut down. But I don't think anyone there has continued working on this tool, so this repo should have the latest version.

I suspect the issue appears only with newer versions of dependencies - specifically, in this case, PyQt. The error message (at the very bottom) is quite straightforward, would you like to take a look at that place in the code and contribute a fix?

NakoteyMinta commented 5 months ago

Problem solved, Thanks

Preity-bit commented 2 months ago

Problem solved, Thanks

Hi, I am also getting the same error, can you please help me out how you fixed this? I am quite new to the GCS package. Thanks in advance :) """"" WARNING: SunpyDeprecationWarning: The HelioviewerClient class is deprecated and may be removed in version 5.1. Use hvpy - https://hvpy.readthedocs.io/en/stable instead. [gcs.utils.helioviewer] Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/home/preity/anaconda3/lib/python3.11/site-packages/gcs/gui.py", line 296, in main() File "/home/preity/anaconda3/lib/python3.11/site-packages/gcs/gui.py", line 289, in main app = GCSGui(args.date, args.spacecraft, args.running_difference, detector_stereo=args.stereo, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/preity/anaconda3/lib/python3.11/site-packages/gcs/gui.py", line 126, in init self.create_widgets() File "/home/preity/anaconda3/lib/python3.11/site-packages/gcs/gui.py", line 133, in create_widgets self._s_half_angle = SliderAndTextbox('Half angle, \u03B1 [°]', 0, 90, params['half_angle']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/preity/anaconda3/lib/python3.11/site-packages/gcs/utils/widgets.py", line 16, in init self.slider.setMinimum(min / resolution) TypeError: setMinimum(self, a0: int): argument 1 has unexpected type 'float' """

NakoteyMinta commented 2 months ago

Hi

Sorry for the late reply.

I found out that GCS python version is not compatible with higher versions of python 3 ( eg. 3.11)

So I'll advise you downgrade the python version to 3.7, 3. 8 or 3.9 and try to install the GCS tool again and problem will be resolved.

Keep me updated.

Best regards

On Thu, Jul 4, 2024, 04:14 Preity-bit @.***> wrote:

Problem solved, Thanks

Hi, I am also getting the same error, can you please help me out how you fixed this? I am quite new to the GCS package. Thanks in advance :) """"" WARNING: SunpyDeprecationWarning: The HelioviewerClient class is deprecated and may be removed in version 5.1. Use hvpy - https://hvpy.readthedocs.io/en/stable instead. [gcs.utils.helioviewer] Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway. Traceback (most recent call last): File "", line 198, in _run_module_as_main File "", line 88, in _run_code File "/home/preity/anaconda3/lib/python3.11/site-packages/gcs/gui.py", line 296, in main() File "/home/preity/anaconda3/lib/python3.11/site-packages/gcs/gui.py", line 289, in main app = GCSGui(args.date, args.spacecraft, args.running_difference, detector_stereo=args.stereo,

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/preity/anaconda3/lib/python3.11/site-packages/gcs/gui.py", line 126, in init self.create_widgets() File "/home/preity/anaconda3/lib/python3.11/site-packages/gcs/gui.py", line 133, in create_widgets self._s_half_angle = SliderAndTextbox('Half angle, \u03B1 [°]', 0, 90, params['half_angle']) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/preity/anaconda3/lib/python3.11/site-packages/gcs/utils/widgets.py", line 16, in init self.slider.setMinimum(min / resolution) TypeError: setMinimum(self, a0: int): argument 1 has unexpected type 'float' """

— Reply to this email directly, view it on GitHub https://github.com/johan12345/gcs_python/issues/16#issuecomment-2208495704, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXUMK3Z6YIAOEXEATSDYGT3ZKUHAPAVCNFSM6AAAAABFWO2IXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBYGQ4TKNZQGQ . You are receiving this because you modified the open/close state.Message ID: @.***>

Preity-bit commented 2 months ago

Hi,

Thank you for your help. It works fine now!

NakoteyMinta commented 2 months ago

Glad to hear it!

On Fri, Jul 5, 2024, 09:14 Preity-bit @.***> wrote:

Hi,

Thank you for your help. It works fine now!

— Reply to this email directly, view it on GitHub https://github.com/johan12345/gcs_python/issues/16#issuecomment-2210956583, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXUMK35EWIMNJK7RZZISAZ3ZK2S5DAVCNFSM6AAAAABFWO2IXOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMJQHE2TMNJYGM . You are receiving this because you modified the open/close state.Message ID: @.***>

Preity-bit commented 2 months ago

Thank you again!

johan12345 commented 2 months ago

@NakoteyMinta @Preity-bit I have just released a new version where this issue should be fixed, also with newer versions of Python / PyQt: https://github.com/johan12345/gcs_python/commit/6419ed995ca707cd8f5c4381a4779f2ca5c58e99

Preity-bit commented 2 months ago

Thank you! Will try this out!