dungeon-sheets icon indicating copy to clipboard operation
dungeon-sheets copied to clipboard

create-character errors out at end

Open bitsandbooks opened this issue 6 years ago • 1 comments

I set up a venv and installed dungeonsheets. I ran through the create-character utility and when I got to the end, instead of writing out my character.py file, I got the following error:

Traceback (most recent call last):
  File "/usr/local/bin/create-character", line 10, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.7/site-packages/dungeonsheets/create_character.py", line 383, in main
    my_app.save_character()
  File "/usr/local/lib/python3.7/site-packages/dungeonsheets/create_character.py", line 79, in save_character
    ).get_template(src_filename).render(context)
  File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 830, in get_template
    return self._load_template(name, self.make_globals(globals))
  File "/usr/local/lib/python3.7/site-packages/jinja2/environment.py", line 804, in _load_template
    template = self.loader.load(self, name, globals)
  File "/usr/local/lib/python3.7/site-packages/jinja2/loaders.py", line 113, in load
    source, filename, uptodate = self.get_source(environment, name)
  File "/usr/local/lib/python3.7/site-packages/jinja2/loaders.py", line 187, in get_source
    raise TemplateNotFound(template)
jinja2.exceptions.TemplateNotFound: character_template.txt

Anyone else get this?

bitsandbooks avatar Feb 16 '19 02:02 bitsandbooks

Getting the same issue. I "solved" that particular error by copying the character_template.txt file from the GitHub to the filepath "/usr/local/lib/python3.7/site-packages/dungeonsheets/". Now the error I receive is... Traceback (most recent call last): File "/home/cub/.local/bin/makesheets", line 6, in from dungeonsheets.make_sheets import main File "/home/cub/.local/lib/python3.7/site-packages/dungeonsheets/make_sheets.py", line 13, in import pdfrw ModuleNotFoundError: No module named 'pdfrw'

jacobdmoore avatar Apr 24 '19 02:04 jacobdmoore