aleph-im / aleph-vm

Aleph.im VM execution engine

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot install aleph-sdk-python and aleph-vm

hoh opened this issue · comments

Describe the bug

There is a conflict and it is not possible to use the SDK if installed after aleph-vm.

To Reproduce

import aleph.sdk after installing aleph-vm and import aleph.vm.

Expected behavior

from aleph import sdk, vm

cannot reproduce the error. Using python3.10 compiled from source on ubuntu, aleph-sdk 0.7 from pypi and aleph-vm from the git

[olivier:~] % python3.10 -m venv ~/.virtualenvs/aleph436
[olivier:~] 4s % source ~/.virtualenvs/aleph436/bin/activate
[olivier:~] [aleph436] % touch packtestb/bla/beta/__init__.py                    
[olivier:~] [aleph436] 130 % pip install "git+https://github.com/aleph-im/aleph-vm.git"
Collecting git+https://github.com/aleph-im/aleph-vm.git
  Cloning https://github.com/aleph-im/aleph-vm.git to /tmp/pip-req-build-9lhjvjky
  Running command git clone --filter=blob:none --quiet https://github.com/aleph-im/aleph-vm.git /tmp/pip-req-build-9lhjvjky
  Resolved https://github.com/aleph-im/aleph-vm.git to commit 85089853c5bf35c1b0e9225cece119992228d2eb
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
[.... snip]

[notice] A new release of pip is available: 23.0.1 -> 23.3.1
[notice] To update, run: pip install --upgrade pip
[olivier:~] [aleph436] 36s % pip install  aleph-sdk-python                             

Collecting aleph-sdk-python
  Using cached aleph_sdk_python-0.7.0-py3-none-any.whl (32 kB)
[.... snip]

[notice] A new release of pip is available: 23.0.1 -> 23.3.1
[notice] To update, run: pip install --upgrade pip
[olivier:~] [aleph436] 3s % python -c 'from aleph import sdk, vm; dir(sdk); dir(vm)'  
[olivier:~] [aleph436] % 

I can also do the sub import and I have tried installing them in the other order and it still works.

Could not reproduce neither on a clean environment.