-
Notifications
You must be signed in to change notification settings - Fork 276
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
Path issue in tuf import in examples/client and examples/repository #2786
Comments
Can you provide the error message and actual reproduction instructions? I'm guessing this might be a result of 4e889e7: the source dir is not installed anymore -- it may be that it actually should be installed in Can you confirm if the above sounds like your problem or if |
Following is the error i got when I run ./client Traceback (most recent call last): Line 19 is as follows
The following two statements overcome the issue
Python Version I am using: Python 3.9.2 In my initial query, suggested the following as an alternate solution to overcome the issue however this also shows error. Hence drop the following suggestion. |
pip install -e . Yes, the above resolved the issue |
Thanks for the extra info. I think we want to add I'm not fond of using sys.path.append as that would prevent trying the example code with tuf installed from other sources. |
This one may also be considered. I am in a network where proxy is used hence I have to set proxy in my system. When I run the ./examples/repository/client then I fail to download the default files. The following resolved my issue
This may be given in the TODO to help someone who has the proxy setting. |
fyi in case you are running git version of python-tuf: we've just broken proxy env var settings temporarily in the develop branch. They should came back in #2789 |
While running /examples/client/client and /examples/repository/_simplerepo.py, encountered with errors because of the path issue with the tuf.
The following statements resolved the error.
or it can be as follows.
The above can be updated in the actual code.
The text was updated successfully, but these errors were encountered: