Skip to content

Migrating Ecoindex from micro services to polylith... #127

Closed Answered by DavidVujic
vvatelot asked this question in Q&A
Discussion options

You must be logged in to vote

Hello again @vvatelot!

I think I have found the issue, and it has something to do with pkg_resources. I tried out running the code in the development folder in a REPL and found the cause for the error:

It was the call to get_distribution https://github.com/vvatelot/ecoindex_monorepo/blob/main/components/ecoindex/models/compute.py#L39

I haven't any experience with pkg_resources and what it does, but it seems that importlib is a replacement?

Here's what I tried out:

Here I'm using a local virtual environment (recommended) with the poetry.toml confi.

Here, being able to run the code in the development folder:

Replies: 4 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by vvatelot
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@DavidVujic
Comment options

@vvatelot
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants