Skip to content

yaml-to-latex.py error: AttributeError: 'str' object has no attribute 'name' #10

Description

@weinman

I am trying to use the convenient script for generating the metadata.tex file, but I get an error.

Host Platforms: macOS 10.14.6 and Ubuntu 18.04
Python: 3.7 (both cases)
PyYAML-5.3.1 pyaml-20.4.0

Here is the command invoked: ./yaml-to-latex.py -i metadata.yaml -o metadata.tex

and the error:

Traceback (most recent call last):
  File "./yaml-to-latex.py", line 88, in <module>
    content = generate_latex_metadata(filename_in, article)
  File "./yaml-to-latex.py", line 49, in generate_latex_metadata
    "".format(filename=filename, _=article, abstract=abstract))
AttributeError: 'str' object has no attribute 'name'

(Although I don't think it's the source of the problem, I note it looks like the version on Overleaf differs from the current version of the template. Whereas I already burned over an hour trying to get the template to work on a local system (an failed) and opted instead to go to Overleaf, this seems like an unfortunate place to have outdated code.)

Pointers welcome! The overhead to submission so far has been quite steep.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions