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

TypeError: load() takes no arguments (1 given) #18

Open
bolausson opened this issue Aug 18, 2023 · 1 comment
Open

TypeError: load() takes no arguments (1 given) #18

bolausson opened this issue Aug 18, 2023 · 1 comment

Comments

@bolausson
Copy link

Hej,

indeed, the default yaml loader is slow!
Before I go ahead and start to parse strings manually, I wanted to give your lib a go!

Thanks for trying to fix this!

I was trying to replace
yaml.load(output, Loader=CLoader)
with
yaml_obj = zaml.load(output)

but got the following error:

Traceback (most recent call last):
  File "./glljobstat_testing.py", line 508, in <module>
    JobStatsParser().RunBEO()
  File "./glljobstat_testing.py", line 498, in RunBEO
    self.run_once_retry(HOSTS, STATSPARAM, SSHUSER, SSHKEY, SSHKEYTYPE, "stats", HOSTPARAM)
  File "./glljobstat_testing.py", line 392, in run_once_retry
    return self.run_once_ser(HOSTS, STATSPARAM, SSHUSER, SSHKEY, SSHKEYTYPE, TYPE, HOSTPARAM)
  File "./glljobstat_testing.py", line 329, in run_once_ser
    obj = self.parse_single_job_stats(data)
  File "./glljobstat_testing.py", line 225, in parse_single_job_stats
    yaml_obj = zaml.load(output)
TypeError: load() takes no arguments (1 given)

I installed zaml into my venv with:
python3 -m pip install zaml

Any suggestions on how to solve this?

Thanks a lot,
Bjoern

@melMass
Copy link

melMass commented Sep 13, 2023

Same 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

2 participants