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

apero_remove exiting w/o doing the job #792

Open
clairem789 opened this issue Nov 13, 2024 · 3 comments
Open

apero_remove exiting w/o doing the job #792

clairem789 opened this issue Nov 13, 2024 · 3 comments
Assignees

Comments

@clairem789
Copy link
Collaborator

I had to do this to save disk space:
apero_remove.py --file_prefix DEBUG

(It used to work with v0.7.290 and --prefix instead of --file_prefix)

Now I get
15:28:22.005-!!|REMOVE| Current working directory within paths to be reset. Please change directory
15:28:22.005-!!|REMOVE| Current dir: /Volumes/dataDRS/spirou/red
15:28:22.006-!!|REMOVE| Block: /Volumes/dataDRS/spirou/red
15:28:22.026-|REMOVE| ***************************************************************************
15:28:22.033-@!|REMOVE| W[40-003-00005]: Recipe apero_remove has NOT been successfully completed (5.264
15:28:22.033-@!|REMOVE| seconds)
15:28:22.039-
|REMOVE| ***************************************************************************

When it requires confirmation, the prompt does not go to the next line as it's used to:

Warning this will remove files from disk and the database are you sure you want to continue?
[Y]es or [N]oY

I wonder whether this is related.

@njcuk9999
Copy link
Owner

No this is unrelated... there is a protection again having your console in the directory you are trying to remove from...

15:28:22.005-!!|REMOVE| Current working directory within paths to be reset. Please change directory

Just make sure you are not in an apero data directory and it should work!

@clairem789
Copy link
Collaborator Author

Ahah! it does! I thought I had tried this but this times it works.
what a funny rule!
thanks

@njcuk9999
Copy link
Owner

I had problems that some of the remove/delete scripts delete directories, if you are inside a directory that python deletes it can screw things up afterwards (console becomes invalid) - in most cases with apero_remove you wont be doing this but its harder to figure out when you are/aren't versus just avoiding the problem altogether!

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