Skip to content

vvm-vyper builds are not aware of my active python #34

@antazoey

Description

@antazoey

Environment information

  • vvm Version: 0.3.2
  • vyper Version: 0.4.0
  • Python Version: 3.13.1
  • OS: macOS

What was wrong?

Lemme show ya.

Using vyper installed from pypi (also have snekmate installed in the same env):

vyper tests/contracts/passing_contracts/zero_four.vy 

0x6100a061000f6000396100a06000f35f3560e01c60026003821660011b61009801601e395f51565b638dfe4a5481186100825760243610341761009457600160405260206040f35b63bae496a58118610082576024361034176100945760206100596040610086565b6040f35b635eea837e81186100825760243610341761009457602061007e604061008d565b6040f35b5f5ffd5b6001815250565b6001815250565b5f80fd00180038005d008285582054be65f0f456dcef731e54b81f88d194a46f9e9bf066bd03ae6bf5ab0e83646618a0810800a1657679706572830004010035

Using vyper installed from vvm:

 ~/.vvm/vyper-0.4.0 tests/contracts/passing_contracts/zero_four.vy              
Error compiling: tests/contracts/passing_contracts/zero_four.vy
vyper.exceptions.ModuleNotFound: snekmate.auth.ownable

How can it be fixed?

Maybe we can pass in python= kwarg to vvm install methods and then set that in the environment of the subprocess call?

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