-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
The example in tests fails to run throwing a path error.
System Details:
- Windows 10
- Python 3.9 (venv)
- Installed version: 0.5.0
The example in tests fails to run with the following error:
from treeplotter.tree import Node, Tree, create_tree_diagram
root = Node(value=1.0, name=None)
child1 = Node(value=0.5, name=None)
child2 = Node(value=1.0, name=None)
child3 = Node(value=3.0, name="A")
root.children = {child1, child2, child3}
root.children
granchild1 = Node(value=0.5, name=None)
granchild2 = Node(value=3.0, name="B")
granchild3 = Node(value=2.0, name="C")
greatgrandchild = Node(value=1.0, name="D")
child1.add_children([granchild1, granchild2])
child2.add_child(granchild3)
granchild1.add_child(greatgrandchild)
tree = Tree(root=root)
create_tree_diagram(
tree=tree,
save_path='/Users/{{USER}}/Downloads', # also fails with `r"C:\\Users\{{USER}}\Downloads"`
webshot=True,
verbose=True
)Output (obfuscated):
-> Creating directory and writing tree to JSON...
-> Copying templates...
Traceback (most recent call last):
File "C:\Users\{{USER}}\PycharmProjects\{{PROJECT_NAME}}\main.py", line 42, in <module>
create_tree_diagram(
File "C:\Users\{{USER}}\PycharmProjects\{{PROJECT_NAME}}\venv\lib\site-packages\treeplotter\plotter.py", line 180, in create_tree_diagram
_prepare_docs_and_screenshot(
File "C:\Users\{{USER}}\PycharmProjects\{{PROJECT_NAME}}\venv\lib\site-packages\treeplotter\plotter.py", line 99, in _prepare_docs_and_screenshot
for this_file in os.listdir(treant_templates):
FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Users\\{{USER}}\\PycharmProjects\\{{PROJECT_NAME}}\\venv\\lib\\site-packages\\treeplotter/templates'
Pip Freeze
click==8.0.4
colorama==0.4.4
Jinja2==3.0.3
jsonpickle==2.1.0
MarkupSafe==2.1.0
treeplotter==0.5.0
Wand==0.6.7ishandutta2007
Metadata
Metadata
Assignees
Labels
No labels