Skip to content

Vyper 0.8.9 does not compile when site-packages is used instead of dist-packages in path #156

@BlockEnthusiast

Description

@BlockEnthusiast

Environment information

ape version 0.8.33

Installed Plugins
alchemy 0.8.8
etherscan 0.8.4
foundry 0.8.7
vyper 0.8.9

  • Python Version: 3.10.12
  • OS: Pop!_OS 22.04 LTS

What went wrong?

ape compile fails

ERROR:    (VyperCompileError) FileNotFoundError: [Errno 2] No such file or directory: '/home/.venvs/just_ape_it/local/'

I just kept adding the folders it said was missing:
Added /local/lib/python3.11/dist-packages/'

/lib/ existed but
Added lib/python3/dist-packages/

/lib/python3.11/ existed but
Added lib/python3.11/dist-packages/
notably site-packages exists as an alternative there.

Now it compiles, however none of my installed dependencies are in this folder, so unsure if that will cause trouble.

If i delete any of the newly added folders it does not compile w/ above error.
There is nothing in any of these folders...

How can it be fixed?

I checked lower versions of vyper plugin successfully compile fine with the same code.

I believe that perhaps there is a check for a list of various paths but it is not checking for "site-packages" in that list in this version.

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