Hi all, 1st timer here: I created new project directory called "hello_project'
When I run truffle init
on it i get the following error
ImportError: cannot import name 'get_directory_tree' from 'filetools'
06:29 ~/vyper-venv/hello_project $ truffle init
Traceback (most recent call last):
File "/home/Vyper/.local/bin/truffle", line 5, in <module>
from truffle.app import main
File "/home/Vyper/.local/lib/python3.9/site-packages/truffle/app.py", line 2, in <module>
from filetools import get_directory_tree, get_scan_path, _get_name
ImportError: cannot import name 'get_directory_tree' from 'filetools' (/home/Vyper/.local/lib/python3.9/site-packages/filetools/__init__.py)
I look into the filetools file here:
https://www.pythonanywhere.com/user/Vyper/files/home/Vyper/.local/lib/python3.9/site-packages/truffle/filetools.py
and the code is here
def _get_directory_tree(path):
"""Helper function for get_directory_tree"""
tree = {"name": path, "short_name": _get_short_name(path), "children": []}
How do you import name **get_directory_tree**
?
Thank you for your help. Bless You.