Code Monkey home page Code Monkey logo

Comments (3)

canismarko avatar canismarko commented on June 12, 2024 1

from dungeon-sheets.

canismarko avatar canismarko commented on June 12, 2024

I can't seem to reproduce this behavior. Mind checking a couple of things for me?

  1. It looks like you're pulling from bacook17's fork. Mind pulling from my repo and checking again?

  2. Running makesheets from inside the examples directory shouldn't be possible without first installing the package somehow. Make sure to run pip install -e dungeon-sheets/ after the git clone ... command.

Let me know if either of those fixes the issue. If not, I'll have to take a closer look.

from dungeon-sheets.

jakewilliami avatar jakewilliami commented on June 12, 2024

Huh, I didn't realise I wasn't pulling from your repo—sorry about that! The reason I was pulling from bacook17's clone was because the link in the README (line 66) to the examples directory leads to their clone. Trying this with your repo, here is what I get:

 $ git clone https://github.com/canismarko/dungeon-sheets/
Cloning into 'dungeon-sheets'...
remote: Enumerating objects: 133, done.
remote: Counting objects: 100% (133/133), done.
remote: Compressing objects: 100% (93/93), done.
remote: Total 1959 (delta 83), reused 74 (delta 40), pack-reused 1826
Receiving objects: 100% (1959/1959), 13.52 MiB | 4.53 MiB/s, done.
Resolving deltas: 100% (1465/1465), done.

 $ cd dungeon-sheets/examples/

 $ makesheets
Processing rogue2...done
Processing barbarian1...done
Processing fighter2...done
Processing warlock1...done
Processing wizard2...done
Processing sorceror1...done
Processing paladin1...done
Processing ranger2...done
Processing monk1...done
Processing ranger3...done
Processing druid1...done
Processing multiclass1...done
Processing cleric2...done
Processing bard1...done
Processing monk2...done
Processing druid2...done
Processing multiclass2...done
Processing cleric1...done
Processing bard2...done
Processing sorceror2...done
Processing wizard1...done
Processing paladin2...done
Processing ranger1...done
Processing druid3...done
Processing warlock2...done
Processing rogue1...done
Processing barbarian2...done
Processing artificer1...failed
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dungeonsheets/character.py", line 187, in add_class
    cls = getattr(classes, cls)
AttributeError: module 'dungeonsheets.classes' has no attribute 'Artificer'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.7/bin/makesheets", line 8, in <module>
    sys.exit(main())
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dungeonsheets/make_sheets.py", line 554, in main
    make_sheet(character_file=filename, flatten=(not args.editable), debug=args.debug)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dungeonsheets/make_sheets.py", line 453, in make_sheet
    character = _char.Character.load(character_file)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dungeonsheets/character.py", line 722, in load
    char = Character(**char_props)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dungeonsheets/character.py", line 154, in __init__
    feature_choices=attrs.get('feature_choices', []))
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dungeonsheets/character.py", line 220, in add_classes
    **params)
  File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/dungeonsheets/character.py", line 190, in add_class
    'class was not recognized from classes.py: {:s}'.format(cls))
AttributeError: class was not recognized from classes.py: Artificer

I have already run pip install dungeonsheets as per the instructions for the character sheet setup, but running your suggested pip install command seems to work:

$ pip install -e dungeon-sheets/
Obtaining file:///Users/jakeireland/git-workspace/dungeon-sheets
Requirement already satisfied: fdfgen in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from dungeonsheets==0.10.1) (0.16.1)
Requirement already satisfied: npyscreen in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from dungeonsheets==0.10.1) (4.10.5)
Requirement already satisfied: jinja2 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from dungeonsheets==0.10.1) (2.11.2)
Requirement already satisfied: pdfrw in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from dungeonsheets==0.10.1) (0.4)
Requirement already satisfied: MarkupSafe>=0.23 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from jinja2->dungeonsheets==0.10.1) (1.1.1)
Installing collected packages: dungeonsheets
  Attempting uninstall: dungeonsheets
    Found existing installation: dungeonsheets 0.10.1
    Uninstalling dungeonsheets-0.10.1:
      Successfully uninstalled dungeonsheets-0.10.1
  Running setup.py develop for dungeonsheets
Successfully installed dungeonsheets

 $ cd dungeon-sheets/examples/

 $ makesheets
Processing rogue2...
Processing fighter2...
Processing wizard2...
Processing paladin1...
rogue2 done
Processing barbarian1...
wizard2 done
Processing sorceror1...
fighter2 done
Processing warlock1...
barbarian1 done
Processing monk1...
paladin1 done
Processing ranger2...
monk1 done
Processing ranger3...
sorceror1 done
Processing druid1...
ranger2 done
Processing cleric2...
warlock1 done
Processing monk2...
ranger3 done
Processing multiclass2...
monk2 done
Processing druid2...
cleric2 done
Processing bard1...
multiclass2 done
Processing cleric1...
druid1 done
Processing multiclass1...
druid2 done
Processing bard2...
cleric1 done
Processing wizard1...
bard1 done
Processing ranger1...
multiclass1 done
Processing warlock2...
bard2 done
Processing sorceror2...
ranger1 done
Processing druid3...
wizard1 done
Processing paladin2...
warlock2 done
Processing rogue1...
rogue1 done
Processing barbarian2...
sorceror2 done
Processing fighter1...
paladin2 done
barbarian2 done
Processing artificer1...
druid3 done
fighter1 done
artificer1 done

Thank you so much for your help on this. Do you know why pip install dungeonsheets does not work?

from dungeon-sheets.

Related Issues (20)

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.