Skip to content
This repository was archived by the owner on Dec 25, 2024. It is now read-only.
This repository was archived by the owner on Dec 25, 2024. It is now read-only.

pip install & import library issue #225

@sambk17

Description

@sambk17
Description

Prior to using openapi-json-schema-generator (v3.0.0), I was using openapi-generator (v6.6.0). With openapi-generator, I was able to both pip install and import the package (repo) locally. For openapi-json-schema-generator, I am encountering an issue with both pip install and import

openapi-json-schema-generator version

v3.0.0

OpenAPI declaration file content or url

There is a openapi.yaml file (I can provide any details if required) at the root level. Nothing fancy with this file.

Command line used for generation

[BEFORE] Using openapi-generator:

openapi-generator-cli generate \
  -g python \
  -i openapi.yaml \
  -o . \
  --package-name mlp

Directory output (at the root):
image

[CURRENT] Using openapi-json-schema-generator:

java -jar openapi-json-schema-generator-cli.jar generate \
  -g python \
  -i openapi.yaml \
  -o . \
  --package-name mlp

Directory output (at the root):
image

Steps to reproduce

When I perform pip install https://github.com/{repo_name}, I get the following error:

ERROR: HTTP error 404 while getting https://github.com/{repo_name}
ERROR: Could not install requirement https://github.com/{repo_name} because of HTTP error 404 Client Error: Not Found for url: https://github.com/{repo_name} for URL https://github.com/{repo_name}

When I perform import mlp (from the src/ directory) within a Jupyter Notebook, I get:

TypeError: Cannot create a consistent method resolution
order (MRO) for bases Generic, immutabledict
Related issues/PRs

N/A

Suggest a fix/enhancement

Is the current process that I will need to manually create a setup.py file at the root? And/or do I need to modify anything else in order to be able to import mlp?

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem right

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions