question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Poetry build can't find source files

See original GitHub issue

I’m trying to poetry build a Python project, but it fails with the message:

  [ValueError]                          
  No file/folder found for package fig

poetry install and poetry update work fine, and I can build using the standard setup.py bdist_wheel. I have trying adding the following to my pyproject.toml but no luck:

[package]
include = ["src/*.py"]

Any pointers as to what I’m doing wrong would be highly appreciated.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

21reactions
monkeezcommented, May 7, 2018

I was wondering this also. By default it seems like if you call your project example-project it’ll make the python package example_project. However, I’d rather the package be named exampleproject.

9reactions
sdispatercommented, May 7, 2018

Not exactly. Let’s say the structure of your project is a package you would need to have something like this:

my-package/
└── src/
    └── my_package/
        └── __init__.py

If your project is a module, it would be:

my-package/
└── src/
    └── my_package.py
Read more comments on GitHub >

github_iconTop Results From Across the Web

Why does poetry build raise ModuleOrPackageNotFound ...
The reason it can't be found is most likely because the directory hierarchy is incorrect. The released package is not directly the source...
Read more >
Repositories | Documentation | Poetry - Python dependency ...
Poetry treats repositories to which you publish packages as user specific and not project specific configuration unlike package sources. Poetry, today, only ...
Read more >
Introduction | Documentation | Poetry - Python dependency ...
Introduction Poetry is a tool for dependency management and packaging in Python. It allows you to declare the libraries your project depends on...
Read more >
Configuration | Documentation | Poetry - Python dependency ...
This file can typically be found in one of the following directories: macOS: ... Create a new virtual environment if one doesn't already...
Read more >
Announcing Poetry 1.2.0 | Blog
If the group does not already exist, it will be created automatically. ... Warning: The file chosen for install of cryptography 37.0.3 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found