We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Error message occurs during import of networkx dependency in docker image.
I suspect the issue is due to an update to the api/syntax with the networkx dependency.
This can be resolved by forcing installation of the conda version of networkx.
in Dockerfile add this line after the torchvision reinstallation.
Dockerfile
conda install networkx -y
make build-image
=> ERROR [12/14] RUN python -u docker_prepare.py --continue-on-error 3.1s ------ > [12/14] RUN python -u docker_prepare.py --continue-on-error: 2.578 Traceback (most recent call last): 2.578 File "/app/docker_prepare.py", line 3, in <module> 2.578 from manga_translator.utils import ModelWrapper 2.578 File "/app/manga_translator/__init__.py", line 7, in <module> 2.579 from .manga_translator import * 2.579 File "/app/manga_translator/manga_translator.py", line 24, in <module> 2.579 from .args import DEFAULT_ARGS, translator_chain 2.579 File "/app/manga_translator/args.py", line 6, in <module> 2.579 from .ocr import OCRS 2.579 File "/app/manga_translator/ocr/__init__.py", line 4, in <module> 2.579 from .common import CommonOCR, OfflineOCR 2.579 File "/app/manga_translator/ocr/common.py", line 5, in <module> 2.579 import networkx as nx 2.579 File "/opt/conda/lib/python3.10/site-packages/networkx/__init__.py", line 23, in <module> 2.579 config = utils.backends._set_configs_from_environment() 2.579 File "/opt/conda/lib/python3.10/site-packages/networkx/utils/backends.py", line 574, in _set_configs_from_environment 2.579 backends=Config( 2.579 File "/opt/conda/lib/python3.10/site-packages/networkx/utils/configs.py", line 84, in __new__ 2.579 cls = dataclass( 2.579 File "/opt/conda/lib/python3.10/dataclasses.py", line 1175, in wrap 2.579 return _process_class(cls, init, repr, eq, order, unsafe_hash, 2.579 File "/opt/conda/lib/python3.10/dataclasses.py", line 1024, in _process_class 2.579 _init_fn(all_init_fields, 2.579 File "/opt/conda/lib/python3.10/dataclasses.py", line 579, in _init_fn 2.579 return _create_fn('__init__', 2.579 File "/opt/conda/lib/python3.10/dataclasses.py", line 432, in _create_fn 2.579 exec(txt, globals, ns) 2.579 File "<string>", line 1 2.579 def __create_fn__(_type_nx-loopback, MISSING, _HAS_DEFAULT_FACTORY, __dataclass_builtins_object__, _return_type): 2.579 ^ 2.579 SyntaxError: invalid syntax
The text was updated successfully, but these errors were encountered:
thanks for reporting i am trying to do a fix
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Issue
Error message occurs during import of networkx dependency in docker image.
I suspect the issue is due to an update to the api/syntax with the networkx dependency.
This can be resolved by forcing installation of the conda version of networkx.
in
Dockerfile
add this line after the torchvision reinstallation.Command Line Arguments
Console logs
The text was updated successfully, but these errors were encountered: