Skip to content

Error: pkg_resources.DistributionNotFound: The 'pysqlite3' distribution was not found and is required by cross-sysroot #9

@g7fernandes

Description

@g7fernandes

I installed your package with pip3 and got the following error:

❯ cross-sysroot --distribution ubuntu --distribution-version focal --architecture amd64  --build-root ~/ubuntu-sysroot
Traceback (most recent call last):
  File "/home/gabriel/.local/bin/cross-sysroot", line 6, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3252, in <module>
    def _initialize_master_working_set():
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3235, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 583, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 900, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python3.8/site-packages/pkg_resources/__init__.py", line 786, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pysqlite3' distribution was not found and is required by cross-sysroot

However it is installed

❯ python3 -c "import sqlite3; print(sqlite3.version)"
2.6.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions