avast / yls

YARA Language Server
https://avast.github.io/yls/
MIT License
67 stars 13 forks source link

Failing to install fixed version on Darwin #80

Open williamboman opened 1 year ago

williamboman commented 1 year ago

Hello! I'm experiencing issues installing newer versions of yls-yara via pip on Darwin (macOS) systems. I can reproduce this locally as well as on GitHub runners. The pip install logs are:

Collecting yls-yara==1.3.3
  Downloading yls_yara-1.3.3-py3-none-any.whl (4.6 kB)
Collecting yara-python<5.0.0,>=4.2.0
  Downloading yara-python-4.3.0.tar.gz (537 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 538.0/538.0 kB 20.5 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
Collecting yls<2.0.0,>=1.3.3
  Downloading yls-1.3.3-py3-none-any.whl (34 kB)
Collecting pluggy<2.0.0,>=1.0.0
  Downloading pluggy-1.0.0-py2.py3-none-any.whl (13 kB)
Collecting yaramod<4.0.0,>=3.19.1
  Downloading yaramod-3.19.1.tar.gz (878 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 878.5/878.5 kB 33.9 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
INFO: pip is looking at multiple versions of yara-python to determine which version is compatible with other requirements. This could take a while.
Collecting yara-python<5.0.0,>=4.2.0
  Downloading yara-python-4.2.3.tar.gz (457 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 457.2/457.2 kB 34.0 MB/s eta 0:00:00
  Preparing metadata (setup.py): started
  Preparing metadata (setup.py): finished with status 'done'
INFO: pip is looking at multiple versions of <Python from Requires-Python> to determine which version is compatible with other requirements. This could take a while.
INFO: pip is looking at multiple versions of yls-yara to determine which version is compatible with other requirements. This could take a while.
ERROR: Could not find a version that satisfies the requirement yari-py<0.2.0,>=0.1.6 (from yls) (from versions: none)
ERROR: No matching distribution found for yari-py<0.2.0,>=0.1.6

I'm at a loss as to why this is happening, but I figured this would be a good place to start.

The latest version that is installable is 0.10.0.

MatejKastak commented 1 year ago

Hi, currently we don't have a pipeline for building avast/yari on Darwin. I will try to look into it, if its possible.

Reference: https://github.com/avast/yari/issues/14

ssnkhan commented 1 year ago

I suspect the issues I am seeing trying to get this to work on an Ubuntu VM on a Apple Silicon Mac relate to the same issue.

MatejKastak commented 1 year ago

It is likely, especially if the VM is not emulating x86 architecture, but using the native arm architecture. You should be able to double-check by running uname -a in the VM.