Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
HelenUsher opened this issue Oct 13, 2019 · 2 comments

Comments

@HelenUsher
Copy link

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
Copy link
Collaborator

mtewes commented Oct 14, 2019

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
Copy link
Author

HelenUsher commented Oct 14, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants