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

str has no attribute removeprefix error in CUDA container #146

Closed
ssube opened this issue Feb 15, 2023 · 0 comments
Closed

str has no attribute removeprefix error in CUDA container #146

ssube opened this issue Feb 15, 2023 · 0 comments
Labels
status/fixed issues that have been fixed and released type/bug broken features
Milestone

Comments

@ssube
Copy link
Owner

ssube commented Feb 15, 2023

The CUDA container is broken because of some 3.9+ method calls:

2023-02-15T03:18:04.216743077Z Traceback (most recent call last):
2023-02-15T03:18:04.216758288Z   File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
2023-02-15T03:18:04.216763657Z     return _run_code(code, main_globals, None,
2023-02-15T03:18:04.216767328Z   File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
2023-02-15T03:18:04.216771048Z     exec(code, run_globals)
2023-02-15T03:18:04.216774708Z   File "/onnx-web/api/onnx_web/convert/__main__.py", line 331, in <module>
2023-02-15T03:18:04.216779516Z     exit(main())
2023-02-15T03:18:04.216783547Z   File "/onnx-web/api/onnx_web/convert/__main__.py", line 304, in main
2023-02-15T03:18:04.216787547Z     convert_models(ctx, args, base_models)
2023-02-15T03:18:04.216791036Z   File "/onnx-web/api/onnx_web/convert/__main__.py", line 208, in convert_models
2023-02-15T03:18:04.216795016Z     source = fetch_model(
2023-02-15T03:18:04.216798947Z   File "/onnx-web/api/onnx_web/convert/__main__.py", line 167, in fetch_model
2023-02-15T03:18:04.216803116Z     hub_source = source.removeprefix(model_source_huggingface)
2023-02-15T03:18:04.216807556Z AttributeError: 'str' object has no attribute 'removeprefix'
@ssube ssube added this to the v0.7 milestone Feb 15, 2023
@ssube ssube added status/new issues that have not been confirmed yet type/bug broken features status/progress issues that are in progress and have a branch and removed status/new issues that have not been confirmed yet labels Feb 15, 2023
@ssube ssube mentioned this issue Feb 15, 2023
51 tasks
@ssube ssube added status/fixed issues that have been fixed and released and removed status/progress issues that are in progress and have a branch labels Feb 15, 2023
@ssube ssube closed this as completed Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/fixed issues that have been fixed and released type/bug broken features
Projects
None yet
Development

No branches or pull requests

1 participant