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

[feature] pysqa error message does not help much #331

Open
samwaseda opened this issue Sep 17, 2024 · 0 comments
Open

[feature] pysqa error message does not help much #331

samwaseda opened this issue Sep 17, 2024 · 0 comments

Comments

@samwaseda
Copy link
Member

from pysqa import QueueAdapter

QueueAdapter()

raises the error:

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[30], line 3
      1 from pysqa import QueueAdapter
----> 3 QueueAdapter()

File [~/conda/lib/python3.11/site-packages/pysqa/queueadapter.py:77](https://jupyter-cloud.gwdg.de/jhub/user/0741289/lab/tree/RESEARCH/2024/0909/UNITS/conda/lib/python3.11/site-packages/pysqa/queueadapter.py#line=76), in QueueAdapter.__init__(self, directory, execute_command)
     75     primary_queue = config["cluster_primary"]
     76 else:
---> 77     raise ValueError(
     78         "Neither a queue.yaml file nor a clusters.yaml file were found in "
     79         + directory
     80     )
     81 self._adapter = self._queue_dict[primary_queue]

ValueError: Neither a queue.yaml file nor a clusters.yaml file were found in ~/.queues

At this point, it should tell how to generate batch files. There should be a function like pysqa.install.generate_flux or pysqa.install.generate_slurm that generates files given here.

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

1 participant