Giter Club home page Giter Club logo

uml2django's People

Contributors

jv-cunha avatar

Stargazers

 avatar  avatar

Watchers

 avatar

uml2django's Issues

FileNotFoundError errors

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)
    

Configuration notes to get working

Trying out uml2django using wsl2.

Hope these will be helpful to others!

Configurations

  1. Did a git clone of repository as pypi seemed to have an older version

    git clone https://github.com/J-hanks/uml2django.git
    
  2. For debugging, I had to copy the src directory from the github directory at the same level as my test.py directory.

    cp -r uml2django_github/src/uml2django .
    
  3. Need to create a script to run plantuml, put this in ~/bin, make it executable and add ~/bin to path.
    This can be done in ~/.profile

    #! /bin/bash
    # run the plantul jar file on command line
    
    java -jar ~/bin/plantuml.jar $*
    
    
  4. svelte needs npm!

    sudo apt install npm -y
    
    

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.