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

cannot run from csv without pretrust file #20

Open
hypnagonia opened this issue Aug 31, 2024 · 0 comments
Open

cannot run from csv without pretrust file #20

hypnagonia opened this issue Aug 31, 2024 · 0 comments
Assignees

Comments

@hypnagonia
Copy link
Contributor

scores = a.run_eigentrust_from_csv('examples/lt.csv')
print(scores)

throws

  File "/Users/jenya/IdeaProjects/karma/august-prototypes/dry_run.py", line 33, in <module>
    scores = a.run_eigentrust_from_csv('examples/lt.csv')
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/jenya/IdeaProjects/karma/august-prototypes/openrank_sdk/eigentrust_client.py", line 517, in run_eigentrust_from_csv
    pt_url = 'file:' + os.path.realpath(pretrust_filename)
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen posixpath>", line 434, in realpath
TypeError: expected str, bytes or os.PathLike object, not NoneType
@hypnagonia hypnagonia changed the title cannot from run csv without pretrust cannot run from csv without pretrust Aug 31, 2024
@hypnagonia hypnagonia changed the title cannot run from csv without pretrust cannot run from csv without pretrust file Aug 31, 2024
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