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

TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType' #132

Open
skupr-anaconda opened this issue Nov 27, 2024 · 0 comments

Comments

@skupr-anaconda
Copy link
Contributor

I tried to run percy aggregate downstream -f "$PACKAGE_NAME-feedstock" and got an error:

Traceback (most recent call last):
  File "/miniconda3/envs/percy/bin/percy", line 10, in <module>
    sys.exit(cli())
             ^^^^^
  File "//miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 1078, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 1688, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 1685, in invoke
    super().invoke(ctx)
  File "/miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 1434, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/percy/lib/python3.12/site-packages/click/core.py", line 783, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/percy/lib/python3.12/site-packages/click/decorators.py", line 33, in new_func
    return f(get_current_context(), *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/percy/lib/python3.12/site-packages/percy/commands/aggregate.py", line 219, in aggregate
    aggregate_path = get_configured_aggregate(aggregate)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/miniconda3/envs/percy/lib/python3.12/site-packages/percy/commands/aggregate.py", line 32, in get_configured_aggregate
    return Path(cmd_line)
           ^^^^^^^^^^^^^^
  File "/miniconda3/envs/percy/lib/python3.12/pathlib.py", line 1162, in __init__
    super().__init__(*args)
  File "/miniconda3/envs/percy/lib/python3.12/pathlib.py", line 373, in __init__
    raise TypeError(
TypeError: argument should be a str or an os.PathLike object where __fspath__ returns a str, not 'NoneType'

cmd_line should be str or an os.PathLike object.

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

No branches or pull requests

1 participant