<#21777 PEX not found resources> New discussion cr...
# github-notifications
c
#21777 PEX not found resources New discussion created by allcupsnotinprivate I have a service with the following structure:
Copy code
service/
├── src/
│   ├── app/
│   │   ├── data/
│   │   │   └── config.json
│   │   ├── __init__.py
│   │   └── main.py
└── BUILD
Contents of the BUILD file:
Copy code
# ===============================
# Sources and Requirements
# ===============================

python_sources(
    name="service",
    sources=["**/*.py"],
    dependencies=[
        ":service-reqs"
    ]
)

python_requirements(
    name="service-reqs"
)

files(
    name="service-files",
    sources=["**/config.json"]
)

# ===============================
# Binary Definitions
# ===============================

pex_binary(
    name="service-bin",
    output_path="service/package/bin.pex",
    execution_mode="venv",
    entry_point="app.main",
    environment=parametrize("macos", "linux"),
    layout="packed",
    dependencies=[
        ":service",
        ":service-files"
    ]
)
The problem is that the resulting .pex file does not contain any resources (specifically "data/config.json"). Why does this happen? pantsbuild/pants