Skip to content

FileNotFoundError: The system cannot find the path specified. pureapi schemas #15

Description

@carlosvega

To replicate:

python -m pip install git+https://github.com/UMNLibraries/pureapi.git

from pureapi import client
from pureapi.client import Config

response = client.get(
    "research-outputs",
    config=Config(base_url=..", key="..")
)

I get the error:

Traceback (most recent call last):
  File "... test_pure.py", line 1, in <module>
    from pureapi import client
  File "... \.venv\Lib\site-packages\pureapi\client.py", line 12, in <module>
    from pureapi import response
  File "... \.venv\Lib\site-packages\pureapi\response.py", line 6, in <module>
    from pureapi.common import validate_collection
  File "... \.venv\Lib\site-packages\pureapi\common.py", line 19, in <module>
    filter(lambda item: item.name if item.is_dir() else None, os.scandir(schemas_path))
                                                              ^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 3] The system cannot find the path specified: '... \\.venv\\Lib\\site-packages\\pureapi\\schemas'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions