raystack / raccoon

Raccoon is a high-throughput, low-latency service to collect events in real-time from your web, mobile apps, and services using multiple network protocols.
https://raystack.github.io/raccoon/
Apache License 2.0
199 stars 29 forks source link

Python Client Installation does not work #98

Closed turtleDev closed 1 month ago

turtleDev commented 2 months ago

Description Installing raccon's python client using pip causes an error

To Reproduce

foo@~$ mkdir py-raccon-test
foo@~$ cd py-raccon-test
foo@~/py-raccon-test$ python3 -m venv .venv
foo@~/py-raccon-test$ source .venv/bin/activate
foo@~/py-raccon-test$ pip install raccoon_client@git+https://github.com/raystack/raccoon@v0.2.5#subdirectory=clients/python
  Cloning https://github.com/raystack/raccoon (to revision v0.2.5) to /tmp/pip-install-jc4_t2cd/raccoon-client_f6505ae98ad44d67b13ed0121348256b
  Running command git clone -q https://github.com/raystack/raccoon /tmp/pip-install-jc4_t2cd/raccoon-client_f6505ae98ad44d67b13ed0121348256b
  Running command git checkout -q ed65b3ea0047b0acd32aad070f242a2c3330dfd3
    ERROR: Error [Errno 2] No such file or directory: '/tmp/pip-install-jc4_t2cd/raccoon-client_f6505ae98ad44d67b13ed0121348256b/clients/python' while executing command python setup.py egg_info
ERROR: Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/tmp/pip-install-jc4_t2cd/raccoon-client_f6505ae98ad44d67b13ed0121348256b/clients/python'

Expected behavior pip install should successfully install raccoon client.

Additional context As of now, raccoon_client is not available on pypi.org

punit-kulal commented 1 month ago

The doucmentation needs an update try pip3 install "raccoon_client@git+https://github.com/raystack/raccoon.git#subdirectory=clients/python", this worked for me

turtleDev commented 1 month ago

Just tried it on my system and it works.

It doesn't seem to work with tagged releases, but works with master branch just fine.