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

Traceback when invoking `canu` in a local env #237

Closed
rustydb opened this issue Nov 17, 2022 · 0 comments · Fixed by #238
Closed

Traceback when invoking `canu` in a local env #237

rustydb opened this issue Nov 17, 2022 · 0 comments · Fixed by #238
Assignees
Labels
bug Something isn't working

Comments

@rustydb
Copy link
Contributor

rustydb commented Nov 17, 2022

Describe the bug
A clear and concise description of what the bug is.
After installing canu locally, running any validate commands produce a Traceback.

canu validate shcd -a V1 --shcd Cray\ Inc-Shasta\ RiverSystemForServiceTraining_SHCD_RevA8.xlsx --tabs 40G_10G,NMN,HMN --corners J28,T54,J15,T31,J20,U58 --json
Traceback (most recent call last):
  File "/Users/cspiller/brook/canu-venv/bin/canu", line 33, in <module>
    sys.exit(load_entry_point('canu==1.6.20.post94', 'console_scripts', 'canu')())
  File "/Users/cspiller/brook/canu-venv/lib/python3.10/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Users/cspiller/brook/canu-venv/lib/python3.10/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Users/cspiller/brook/canu-venv/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/cspiller/brook/canu-venv/lib/python3.10/site-packages/click/core.py", line 1659, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/Users/cspiller/brook/canu-venv/lib/python3.10/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/cspiller/brook/canu-venv/lib/python3.10/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/cspiller/brook/canu-venv/lib/python3.10/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/cspiller/brook/canu-venv/lib/python3.10/site-packages/canu/validate/shcd/shcd.py", line 147, in shcd
    json_output(node_list, factory, architecture, shcd, out)
  File "/Users/cspiller/brook/canu-venv/lib/python3.10/site-packages/canu/validate/shcd/shcd.py", line 1227, in json_output
    factory.validate_paddle(paddle)
  File "/Users/cspiller/brook/canu-venv/lib/python3.10/site-packages/network_modeling/NetworkNodeFactory.py", line 405, in validate_paddle
    with open(ccj_schema_file, "r") as file:
FileNotFoundError: [Errno 2] No such file or directory: '/Users/cspiller/brook/canu-venv/lib/python3.10/site-packages/network_modeling/schema/paddle-schema.json'

This only happens in local environments, it seems the RPM doesn't have this problem.

canu Version

If able, please include:

  • The output of canu --version

To Reproduce
Steps to reproduce the behavior:

  1. Install canu

    pip install .
    pip install .[network_modeling]
  2. Grab an SCHD and try to validate it.

Expected behavior
A clear and concise description of what you expected to happen.

Should produce valid JSON; no Traceback.

@rustydb rustydb added the bug Something isn't working label Nov 17, 2022
rustydb added a commit that referenced this issue Nov 17, 2022
@rustydb rustydb assigned rustydb and unassigned trad511 and lukebates123 Nov 17, 2022
@rustydb rustydb changed the title Traceback when invoking canu in a local env Traceback when invoking &#x60;canu&#x60; in a local env Nov 17, 2022
rustydb added a commit that referenced this issue Nov 17, 2022
rustydb added a commit that referenced this issue Nov 17, 2022
@rustydb rustydb mentioned this issue Nov 17, 2022
@rustydb rustydb linked a pull request Nov 17, 2022 that will close this issue
6 tasks
rustydb added a commit that referenced this issue Nov 17, 2022
rustydb added a commit that referenced this issue Nov 17, 2022
rustydb added a commit that referenced this issue Nov 17, 2022
lukebates123 pushed a commit that referenced this issue Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants