megalut / sewpy

Source Extractor Wrapper for Python
GNU General Public License v3.0
22 stars 11 forks source link

Using sewpy under Debian for Windows - 'image file does not exist' error #21

Open HelenUsher opened 5 years ago

HelenUsher commented 5 years ago

Hi, Thanks for this development, it has the potential to be realy helpful for my PhD.

I'm just starting out with sewpy and running it in the Debian app for windows 10 (I'm new to LINUX too..). I'm hitting a problem getting the image file recognised. I've tried the full path ('C:\ etc ), tried copying the fits file into the debian subfolders, but keeping getting error messages. eg latest one (after I'd copied the fits file into a new directory data) - OSError: The image file /usr/data/coj0m405-kb97-20181202-0051-e00.fits does not exist

I'm thinking it might be a windows/linux directory structure/format issue, but I've tried lots of options for slashes, backslashes, even pathlib, but nothing works.

Any suggestions please?

Many thanks Helen

mtewes commented 5 years ago

Hi Helen,

this sounds indeed like an issue that is not related to sewpy. Try to open an interactive python session (i.e., type python in a terminal) from the directory where your FITS-file is.

import os
print(os.getcwd())

... gives you the path to this directory. Check with

print(os.listdir)

that the FITS file is there.

Cheers, Malte

HelenUsher commented 5 years ago

Thanks Malte, I'll give that a go 😊I have a steep learning curve of all the new operating systems, languages and packages I need to master!Best wishesHelenOn 14 Oct 2019 09:39, mtewes notifications@github.com wrote:Hi Helen, this sounds indeed like an issue that is not related to sewpy. Try to open an interactive python session (i.e., type python in a terminal) from the directory where your FITS-file is. import os print(os.getcwd())

... gives you the path to this directory. Check with print(os.listdir) that the FITS file is there. Cheers, Malte

—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.