Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
antazoey opened this issue Jan 14, 2025 · 1 comment
Open

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

antazoey opened this issue Jan 14, 2025 · 1 comment

Comments

@antazoey
Copy link
Contributor

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?

@antazoey
Copy link
Contributor Author

I was able to get around this via this: #35

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant