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

FileNotFoundError errors #3

Open
kelvinlim opened this issue Jan 1, 2023 · 0 comments
Open

FileNotFoundError errors #3

kelvinlim opened this issue Jan 1, 2023 · 0 comments

Comments

@kelvinlim
Copy link

Errors when running the test.py from examples directory (f5 debugging in vscode)

  1. Got error:

    Exception has occurred: FileNotFoundError
    [Errno 2] No such file or directory: 'uml2django_output/svelte_app/src/tailwind.css'
    File "/home/kolim/Projects/plantuml_django/uml2django/parsers/files/file_writer.py", line 14, in file_writer
        with open(file_path, mode) as file:
    File "/home/kolim/Projects/plantuml_django/uml2django/parsers/svelte/start_svelte_app.py", line 77, in start_svelte_app
        file_writer(
    File "/home/kolim/Projects/plantuml_django/test.py", line 10, in <module>
        start_svelte_app()
    

    added

        mode = "w" if override else "a"
        
        # try to create the src directory
        os.makedirs(Path(file_path).parent, exist_ok=True)
        with open(file_path, mode) as file:
    
  2. Error line 90 start_svelte_app.py about filepath

    Exception has occurred: FileNotFoundError
    [Errno 2] No such file or directory: 'uml2django_output/svelte_app/src/routes/__layout.svelte'
    File "/home/kolim/Projects/plantuml_django/uml2django/parsers/svelte/start_svelte_app.py", line 93, in start_svelte_app
        shutil.copyfile(
    File "/home/kolim/Projects/plantuml_django/test.py", line 10, in <module>
        start_svelte_app()
    

    added

        os.remove(svelte_app_path_layout_path) if os.path.isfile(
            svelte_app_path_layout_path) else None
        
        # add makedirs
        os.makedirs(Path(svelte_app_path_layout_path).parent)
    
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

1 participant