Skip to content

KeyError: token name from DSL #1

@Alsanea-Ala

Description

@Alsanea-Ala

i run the code with python Main.py -n 10 in fedora 36 and and i got

Traceback (most recent call last):
  File "/home/ala/Desktop/sketched-webpages-generator/Main.py", line 223, in <module>
    generateDataset(KEEP_INTERMEDIATE_OUTPUTS=args.intermediate,
  File "/home/ala/Desktop/sketched-webpages-generator/Main.py", line 155, in generateDataset
    compileDSL(GENERATOR_OUTPUT_PATH + fileName + '_0.dsl')
  File "/home/ala/Desktop/sketched-webpages-generator/Compiler/WebCompiler.py", line 51, in compileDSL
    compiler.compile(input_file_path, output_file_path, rendering_function=render_content_with_text)
  File "/home/ala/Desktop/sketched-webpages-generator/Compiler/classes/Compiler.py", line 46, in compile
    output_html += self.root.render(self.dsl_mapping, rendering_function=rendering_function)
  File "/home/ala/Desktop/sketched-webpages-generator/Compiler/classes/Node.py", line 34, in render
    content += child.render(mapping, rendering_function)
  File "/home/ala/Desktop/sketched-webpages-generator/Compiler/classes/Node.py", line 36, in render
    value = mapping[self.key]
KeyError: 'navba'

and i also made change in Render.py
self.driver = webdriver.PhantomJS()
to
self.driver = webdriver.Chrome()

so what is the problem ??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions