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

sbank error #51

Open
MariaAssiduo opened this issue Jan 4, 2023 · 1 comment
Open

sbank error #51

MariaAssiduo opened this issue Jan 4, 2023 · 1 comment

Comments

@MariaAssiduo
Copy link

Hi. I'm trying to generate a template bank with a copy of sbank in my CIT directory.
The path directory is /home/maria.assiduo/test_gwastro7/New_TemplateBanks/SEOB/.

As usual, I activate the source with the following command line:

source /home/maria.assiduo/gwastro7/sbank_Python3/bin/activate

But I have an error that never happened before and I don't understand:

Traceback (most recent call last): File "/home/maria.assiduo/gwastro7/sbank_Python3/bin/sbank_pipe", line 293, in <module> dag = bank_DAG(options.user_tag) File "/home/maria.assiduo/gwastro7/sbank_Python3/bin/sbank_pipe", line 64, in __init__ fh = open( logfile, "w" ) FileNotFoundError: [Errno 2] No such file or directory: '/usr1/maria.assiduo/tmpdfjgwinn'

Any suggestion? Thanks in advance.

@spxiwh
Copy link
Collaborator

spxiwh commented Jan 5, 2023

@MariaAssiduo Thanks for reporting this. I think this is an issue that has appeared after CIT has transitioned to Red Hat 8. The problem seems to be in this function:

https://github.com/gwastro/sbank/blob/master/bin/sbank_pipe#L50

and that the /usr1 directory no longer exists. Can you try editing the function so it does the much simpler:

def log_path():
    return tempfile.gettempdir()

and if this works can you post it as a pull request?

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