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

create-character errors out at end #17

Closed
bitsandbooks opened this issue Feb 16, 2019 · 3 comments
Closed

create-character errors out at end #17

bitsandbooks opened this issue Feb 16, 2019 · 3 comments

Comments

@bitsandbooks
Copy link

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?

@jacobdmoore
Copy link

jacobdmoore commented Apr 24, 2019

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'

@PJBrs
Copy link
Contributor

PJBrs commented Jun 30, 2024

I think this bug is not present anymore (if it ever was).

@canismarko
Copy link
Owner

Probably true. I'm going to close it then. Thanks @PJBrs

@bitsandbooks Feel free to reopen if you have more steps to reproduce.

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

4 participants