cosmo-ethz / hide

A package for simulating of a single dish radio telescope survey
GNU General Public License v3.0
8 stars 9 forks source link

errors in running HIDE, (files missing then utf8 codec) #5

Open dlazarou opened 4 years ago

dlazarou commented 4 years ago

hi all,

i try to generate data with HIDE to process later with SEEK.

I am creating env in python 2.7 (since it is more suitable for ivy package) and run setup as in: conda create -n hide_env python=2.7; conda activate hide_env; git clone https://github.com/cosmo-ethz/hide.git; cd hide; pip install -r requirements.txt; python setup.py install --user

Then when i executed: $ hide --strategy-start=2016-03-21-00:00:00 --strategy-end=2016-03-21-23:59:00 --verbose=True hide.config.bleien7m

as described in the usage section: https://hide.readthedocs.io/en/latest/usage.html i got the following error:

IOError: /Users/dimitrioslazarou/.local/lib/python2.7/site-packages/hide-0.1.0-py2.7.egg/hide/data/sun_gain_template.dat not found.

I copy pasted this file from https://github.com/cosmo-ethz/seek/tree/master/seek/data as a workaround but now i am getting another error:

No such file or directory: u'/Users/dimitrioslazarou/.local/lib/python2.7/site-packages/hide-0.1.0-py2.7.egg/hide/data/full_scan_schedule.txt'

Is there any guide on how to create files in the data folder of HIDE?

Thanks a lot!

dlazarou commented 4 years ago

Solved the above issue by copy-pasting files manually, for some reason they didn't exist in the lib folder: cp hide/data/*.* /Users/dimitrioslazarou/.local/lib/python2.7/site-packages/hide-0.1.0-py2.7.egg/hide/data

By executing HIDE however got another error: UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 22: invalid start byte

dlazarou commented 4 years ago

same error exactly in Ubuntu 18

abhinavn17 commented 4 months ago

UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 22: invalid start byte

This error is due to incorrect version of numpy. The installed version of numpy is unable to read the saved data format. In my testing, I have used a conda environment with python 2.7 and numpy version 1.13.0. That seems to resolve this issue.