Skip to content

[BUG] Does not import on Windows #144

@FaustinCarter

Description

@FaustinCarter

Describe the bug
Fails completely on Windows because resource is not available on Windows.

\lib\site-packages\fastapi_utils\timing.py", line 10, in <module> import resource
ModuleNotFoundError: No module named 'resource'

To Reproduce
Steps to reproduce the behavior:

  1. pip install fastapi-utils
    2.from fastapi_utils.timing import add_timing_middleware

Expected behavior
The import works.

Environment:

  • OS: Windows 10
  • Python version: 3.7

Additional context
https://stackoverflow.com/questions/37710848/importerror-no-module-named-resource

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions