Skip to content

Installation from git repo is broken #9

@TimmRuppert

Description

@TimmRuppert

Description

It seems like installing directly from git does not work

Details

For testing purpose I tried to install osi-python using the git repo directly.

Setup

timm@Persival-PB-007:/tmp/test_install$ mkdir test_install && cd test_install
timm@Persival-PB-007:/tmp/test_install$ pip install osi-python@git+https://github.com/OpenSimulationInterface/osi-python.git@feature/osi3trace-mcap-support
Collecting osi-python@ git+https://github.com/OpenSimulationInterface/osi-python.git@feature/osi3trace-mcap-support
  Cloning https://github.com/OpenSimulationInterface/osi-python.git (to revision feature/osi3trace-mcap-support) to /tmp/pip-install-clz6dt2n/osi-python_eb6463bd4def4de6814b06866af1ecad
  Running command git clone --filter=blob:none --quiet https://github.com/OpenSimulationInterface/osi-python.git /tmp/pip-install-clz6dt2n/osi-python_eb6463bd4def4de6814b06866af1ecad
  Running command git checkout -b feature/osi3trace-mcap-support --track origin/feature/osi3trace-mcap-support
  Switched to a new branch 'feature/osi3trace-mcap-support'
  branch 'feature/osi3trace-mcap-support' set up to track 'origin/feature/osi3trace-mcap-support'.
  Resolved https://github.com/OpenSimulationInterface/osi-python.git to commit 8d990b7564ba72964632bb3cc14da1d12625119d
  Running command git submodule update --init --recursive -q
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting mcap>=1.2.2 (from osi-python@ git+https://github.com/OpenSimulationInterface/osi-python.git@feature/osi3trace-mcap-support)
  Using cached mcap-1.3.0-py3-none-any.whl.metadata (381 bytes)
Collecting mcap-protobuf-support>=0.5.3 (from osi-python@ git+https://github.com/OpenSimulationInterface/osi-python.git@feature/osi3trace-mcap-support)
  Using cached mcap_protobuf_support-0.5.3-py3-none-any.whl.metadata (1.3 kB)
Collecting protobuf>=6.30.2 (from osi-python@ git+https://github.com/OpenSimulationInterface/osi-python.git@feature/osi3trace-mcap-support)
  Using cached protobuf-6.32.1-cp39-abi3-manylinux2014_x86_64.whl.metadata (593 bytes)
Collecting lz4 (from mcap>=1.2.2->osi-python@ git+https://github.com/OpenSimulationInterface/osi-python.git@feature/osi3trace-mcap-support)
  Using cached lz4-4.4.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (3.8 kB)
Collecting zstandard (from mcap>=1.2.2->osi-python@ git+https://github.com/OpenSimulationInterface/osi-python.git@feature/osi3trace-mcap-support)
  Using cached zstandard-0.25.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (3.3 kB)
Using cached mcap-1.3.0-py3-none-any.whl (20 kB)
Using cached mcap_protobuf_support-0.5.3-py3-none-any.whl (7.3 kB)
Using cached protobuf-6.32.1-cp39-abi3-manylinux2014_x86_64.whl (322 kB)
Using cached lz4-4.4.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.3 MB)
Using cached zstandard-0.25.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl (5.5 MB)
Building wheels for collected packages: osi-python
  Building wheel for osi-python (pyproject.toml) ... done
  Created wheel for osi-python: filename=osi_python-0.0.1.dev19+8d990b7-py3-none-any.whl size=11865 sha256=7307f64ec6dbb84fba00126025b75342646de4257b030a6336a841efe0287720
  Stored in directory: /tmp/pip-ephem-wheel-cache-zrtbvcye/wheels/bb/4d/fc/4146fa363f76c1ec8c02b90573c700780b4c963c89730ee6ea
Successfully built osi-python
Installing collected packages: zstandard, protobuf, lz4, mcap, mcap-protobuf-support, osi-python
Successfully installed lz4-4.4.4 mcap-1.3.0 mcap-protobuf-support-0.5.3 osi-python-0.0.1.dev19+8d990b7 protobuf-6.32.1 zstandard-0.25.0

Note: Above I was using the feature/osi3trace-mcap-support branch but it also fails with the default branch.

Accessing OSI

timm@Persival-PB-007:/tmp/test_install$ python3
Python 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from osi3.osi_sensorview_pb2 import SensorView
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'osi3'

The content of the installed module

tree venv/lib64/python3.12/site-packages/osi_python-0.0.1.dev14+ae33ef0.dist-info/
venv/lib64/python3.12/site-packages/osi_python-0.0.1.dev14+ae33ef0.dist-info/
├── direct_url.json
├── entry_points.txt
├── INSTALLER
├── licenses
│   └── LICENSE
├── METADATA
├── RECORD
├── REQUESTED
└── WHEEL

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions