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

universal builds for 0.3.8, 0.3.9 are broken on macos arm64 #13

Open
banteg opened this issue Aug 15, 2023 · 2 comments
Open

universal builds for 0.3.8, 0.3.9 are broken on macos arm64 #13

banteg opened this issue Aug 15, 2023 · 2 comments

Comments

@banteg
Copy link

banteg commented Aug 15, 2023

Environment information

  • vvm Version: x.x.x
  • vyper Version: x.x.x
  • Python Version: x.x.x
  • OS: osx/linux/win

What was wrong?

Please include information like:

  • what command you ran
  • the code that caused the failure (see this link for help with formatting code)
  • full output of the error you received

How can it be fixed?

Fill this in if you know how the bug could be fixed.

@Ninjagod1251
Copy link

I am unable install with version 0.3.8 for windows Ubuntu WSL.

I am running this command vvm.install_vyper('0.3.8')

I get this error msg:
VyperInstallationError: Downloaded binary would not execute, or returned unexpected output.

Here is the output:

In [119]: vvm.install_vyper('0.3.8')
[10660] Error loading Python lib '/tmp/_MEIC6tUec/libpython3.11.so.1.0': dlopen: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.35' not found (required by /tmp/_MEIC6tUec/libpython3.11.so.1.0)
---------------------------------------------------------------------------
CalledProcessError                        Traceback (most recent call last)
File ~/virtualenvs/vyper/lib/python3.11/site-packages/vvm/install.py:309, in _validate_installation(version, vvm_binary_path)
    308 try:
--> 309     installed_version = wrapper._get_vyper_version(binary_path)
    310 except Exception:

File ~/virtualenvs/vyper/lib/python3.11/site-packages/vvm/wrapper.py:20, in _get_vyper_version(vyper_binary)
     18 if cache_key not in _version_cache:
     19     # cache the version info, because vyper binaries can be slow to load
---> 20     stdout_data = subprocess.check_output([vyper_binary, "--version"], encoding="utf8")
     21     version_str = stdout_data.split("+")[0]

File ~/.pyenv/versions/3.11.4/lib/python3.11/subprocess.py:466, in check_output(timeout, *popenargs, **kwargs)
    464     kwargs['input'] = empty
--> 466 return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    467            **kwargs).stdout

File ~/.pyenv/versions/3.11.4/lib/python3.11/subprocess.py:571, in run(input, capture_output, timeout, check, *popenargs, **kwargs)
    570     if check and retcode:
--> 571         raise CalledProcessError(retcode, process.args,
    572                                  output=stdout, stderr=stderr)
    573 return CompletedProcess(process.args, retcode, stdout, stderr)

CalledProcessError: Command '[PosixPath('/home/chris/.vvm/vyper-0.3.8'), '--version']' returned non-zero exit status 255.

During handling of the above exception, another exception occurred:

VyperInstallationError                    Traceback (most recent call last)
Cell In[119], line 1
----> 1 vvm.install_vyper('0.3.8')

File ~/virtualenvs/vyper/lib/python3.11/site-packages/vvm/install.py:267, in install_vyper(version, show_progress, vvm_binary_path, headers)
    264     if os_name != "windows":
    265         install_path.chmod(install_path.stat().st_mode | stat.S_IEXEC)
--> 267     _validate_installation(version, vvm_binary_path)
    269 return version

File ~/virtualenvs/vyper/lib/python3.11/site-packages/vvm/install.py:312, in _validate_installation(version, vvm_binary_path)
    310 except Exception:
    311     binary_path.unlink()
--> 312     raise VyperInstallationError(
    313         "Downloaded binary would not execute, or returned unexpected output."
    314     )
    315 if installed_version.truncate() != version.truncate():
    316     binary_path.unlink()

VyperInstallationError: Downloaded binary would not execute, or returned unexpected output.

@charles-cooper
Copy link
Member

note -- v0.3.9 binary was updated a few weeks ago (vyperlang/vyper-builds@f953cc2), but not v0.3.8. it is recommended to use v0.3.9 over v0.3.8, anyways!

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

3 participants