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

use of --externals results in TypeError: 'Config' object does not support item assignment #206

Open
bhpayne opened this issue Jan 21, 2024 · 1 comment
Labels

Comments

@bhpayne
Copy link

bhpayne commented Jan 21, 2024

I just discovered this software and am grateful that it exists.

I tried using --externals but encountered an error:

pydeps --externals --noshow load_time.py 
Traceback (most recent call last):
  File "/usr/local/bin/pydeps", line 8, in <module>
    sys.exit(pydeps())
  File "/usr/local/lib/python3.9/site-packages/pydeps/pydeps.py", line 149, in pydeps
    _args['curdir'] = os.getcwd()
TypeError: 'Config' object does not support item assignment

I don't see a reason why that line https://github.com/thebjorn/pydeps/blob/master/pydeps/pydeps.py#L149
is sensitive to that flag.

Not including --externals does work,

pydeps --noshow load_time.py 

I'm running

python3 --version
Python 3.9.18
pydeps --version
pydeps v1.12.17

The script that I'm using pydeps to analyze is

cat load_time.py 
import time
@thebjorn thebjorn added the bug label Jan 22, 2024
@thebjorn
Copy link
Owner

Hi @bhpayne and thank you for your interest in pydeps. This bug is fixed in v.1.12.18 available on PyPI now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants