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

FileNotFoundError in graph_cli #120

Open
gregwalters opened this issue Oct 3, 2022 · 0 comments
Open

FileNotFoundError in graph_cli #120

gregwalters opened this issue Oct 3, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@gregwalters
Copy link

Describe the bug
FileNotFoundError: [Errno 2] No such file or directory: '/Users//Library/Application Support/com.nccgroup.principalmapper/aws-us-gov'

To Reproduce

git checkout v1.2.0-dev
pip install .
pmapper --profile <my profile> graph create

Expected behavior
Graph creates correctly.

Full stacktrace

$ pmapper --profile <my profile> graph create
Traceback (most recent call last):
  File "/usr/local/bin/pmapper", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/principalmapper/__main__.py", line 151, in main
    return graph_cli.process_arguments(parsed_args)
  File "/usr/local/lib/python3.9/site-packages/principalmapper/graphing/graph_cli.py", line 160, in process_arguments
    for subdir in org_tree_search_dir.iterdir():
  File "/usr/local/Cellar/python@3.9/3.9.13_1/Frameworks/Python.framework/Versions/3.9/lib/python3.9/pathlib.py", line 1160, in iterdir
    for name in self._accessor.listdir(self):
FileNotFoundError: [Errno 2] No such file or directory: '/Users/<my user>/Library/Application Support/com.nccgroup.principalmapper/aws-us-gov'

Running this worked around the issue:

mkdir Library/Application\ Support/com.nccgroup.principalmapper/aws-us-gov
@gregwalters gregwalters added the bug Something isn't working label Oct 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant