abatten / fruitbat

A fast radio burst (FRB) redshift estimation package written in Python.
https://fruitbat.readthedocs.io
BSD 3-Clause "New" or "Revised" License
17 stars 5 forks source link

#question #45

Open astronmyphy opened 2 years ago

astronmyphy commented 2 years ago

I use pip to install the content in Figure 1, and finally I download it to the local installation C:\Users\61006\Desktop\fruitbat-2.0.1\fruitbat-2.0.1> python setup.py install and it appears File "C:\Users\61006\AppData\Local\Temp\easy_install-68ezzisq\pygedm-3.3.0\setup.py", line 143, in UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 7568: illegal multibyte sequence。I have not been able to solve through many methods

abatten commented 2 years ago

Hi, thanks for raising this issue.

I'm not sure immediately how to solve what going wrong. My guess it is a Windows vs Unix issue and the differences in the way text files are encoded on different operating systems. I have only tested fruitbat on MacOS and Linux systems so far because I know the required pygedm package was only tested on MacOS and Linux.

It appears that pygedm (a required package for galactic dispersion measure models) is not supported on windows. You could try installing it from here: https://github.com/FRBs/pygedm and see if you get the same issue. If you do, then we know it's an issue with pygedm and we could raise an issue there.

In the meantime, I'll have a look into this and see if I can find any solutions but you can help me out and answer a few questions:

astronmyphy commented 2 years ago

Thank you very much for your answer, sincerely

Not using a Linux system on windows, I'll try it out。

windows version:win 10: 19043.1387

Anaconda version: Anaconda Navigator 2.1.1

Pythonversion :3.9

------------------ Original ------------------ From: "abatten/fruitbat" @.>; Date: Tue, Dec 7, 2021 11:23 AM @.>; Cc: "Zhang @.**@.>; Subject: Re: [abatten/fruitbat] #question (Issue #45)

Hi, thanks for raising this issue.

I'm not sure immediately how to solve what going wrong. My guess is it's a Windows vs Unix issue and the differences in the way text files are encoded on different operating systems. I have only tested fruitbat on MacOS and Linux systems so far because I know the required pygedm package was only tested on MacOS and Linux.

It appears that pygedm (a required package for galactic dispersion measure models) is not supported on windows. You could try installing it from here: https://github.com/FRBs/pygedm and see if you get the same issue. If you do, then we know it's an issue with pygedm and we could raise an issue there.

In the meantime I'll have a look into this and see if I can find any solutions but you can help me out I have a few questions:

Are you using a Linux subsystem on windows? If not, can you see if installing it that using a Linux subsystem works?

What version of Windows are you using?

What version of Anaconda are you using?

What version of Python are you using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe. Triage notifications on the go with GitHub Mobile for iOS or Android.