Skip to content

AttributeError: module 'site' has no attribute 'getsitepackages' #12

@jayargo

Description

@jayargo

% lx init
Initializing LightEx in current directory.
Traceback (most recent call last):
File "/disk/venv/p3/bin/lx", line 46, in
main(args)
File "/disk/venv/p3/bin/lx", line 28, in main
task_init()
File "/disk/venv/p3/bin/lx", line 12, in task_init
asset_dir = Path(site.getsitepackages()[0]) / 'lightex' / 'assets'
AttributeError: module 'site' has no attribute 'getsitepackages

Looks like this is a known issue in virtualenv with no fix:
pypa/virtualenv#737

Alas, most ML development is in a virtualenv...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions