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

conda debug fails when called on a path without trailing slash on Windows #4404

Closed
tobijk opened this issue Mar 24, 2022 · 0 comments · Fixed by #4448
Closed

conda debug fails when called on a path without trailing slash on Windows #4404

tobijk opened this issue Mar 24, 2022 · 0 comments · Fixed by #4448
Assignees
Labels
good first issue great for new contributors, code change is envisioned to be trivial/relatively straight-forward in-progress issue is actively being worked on locked [bot] locked due to inactivity severity::3 major; broken functionality with a workaround source::anaconda created by members of Anaconda, Inc. type::bug describes erroneous operation, use severity::* to classify the type

Comments

@tobijk
Copy link

tobijk commented Mar 24, 2022

I ran

conda debug C:\Users\builder\tkoch\git\aggregate\python-3.7-feedstock

which resulted in

...
Traceback (most recent call last):
  File "C:\MC3_x64\Scripts\conda-debug-script.py", line 10, in <module>
    sys.exit(main())
  File "C:\MC3_x64\lib\site-packages\conda_build\cli\main_debug.py", line 93, in main
    return execute(sys.argv[1:])
  File "C:\MC3_x64\lib\site-packages\conda_build\cli\main_debug.py", line 69, in execute
    activation_string = api.debug(thing_to_debug, verbose=(not _args.activate_string_only), **_args.__dict__)
  File "C:\MC3_x64\lib\site-packages\conda_build\api.py", line 410, in debug
    os.path.isdir(recipe_or_package_path_or_metadata_tuples) else [])
  File "C:\MC3_x64\lib\genericpath.py", line 42, in isdir
    st = os.stat(s)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not list

The expected result would have been for conda debug to realize that I was pointing it at a feedstock directory.

However, it worked when I added a trailing \.

@jezdez jezdez added type::bug describes erroneous operation, use severity::* to classify the type backlog issue has been triaged but has not been earmarked for any upcoming release source::anaconda created by members of Anaconda, Inc. good first issue great for new contributors, code change is envisioned to be trivial/relatively straight-forward severity::3 major; broken functionality with a workaround labels Mar 24, 2022
@CheeseMochi CheeseMochi added the in-progress issue is actively being worked on label Apr 20, 2022
@conda-bot conda-bot removed the backlog issue has been triaged but has not been earmarked for any upcoming release label Apr 20, 2022
@travishathaway travishathaway self-assigned this Apr 27, 2022
@github-actions github-actions bot added the locked [bot] locked due to inactivity label May 13, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
good first issue great for new contributors, code change is envisioned to be trivial/relatively straight-forward in-progress issue is actively being worked on locked [bot] locked due to inactivity severity::3 major; broken functionality with a workaround source::anaconda created by members of Anaconda, Inc. type::bug describes erroneous operation, use severity::* to classify the type
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

5 participants