jmscslgroup / bagpy

Python package for reading, and extracting data from rosbag files and performing any analysis on it.
https://jmscslgroup.github.io/bagpy/
Other
202 stars 39 forks source link

bagpy installation #23

Closed lb-code closed 2 years ago

lb-code commented 2 years ago

Hi,

I install bagpy using conda for my docker using RUN pip install bagpy The current behavior is such the installation doesn't proceed, and then after a long time it exits with an out of memory error. I didn't have this with 0.4.8 version.

rahulbhadani commented 2 years ago

You didn't specify your python version. Posting an error log is helpful. What you may be encountering is due to some dependency that has changed in other dependent packages for a later version of Python. I recommend creating Python virtual environment with Python version 3.7.5 and try to install it there.

lb-code commented 2 years ago

I am using python 3.7.7 and Ubuntu 18.04.1. This is the error I get while building docker.

RUN pip install -U bagpy
 ---> Running in e99bc100j8db
Removing intermediate container e99bc100j8db
Service 'imager' failed to build: The command 'conda run -n abc /bin/bash -c pip install -U bagpy' returned a non-zero code: 137

I have to use conda environment.

I have installed python 3.7.5 and it's been over 45 minutes and no progress on bagpy installation. It's stuck at this stage, and there is no message. RUN pip install -U bagpy

I tried installing 0.4.8 version, and I have attached the error error-bagpy.txt

rahulbhadani commented 2 years ago

I don't know what

Service 'imager' failed to build: The command 'conda run -n abc

is for but it is not related to bagpy. You can try with Python virtualenv. This is issue related to how to dependencies are resolved and I cannot do anythin about that. You can try cloning the repo and install using python setup.py install.

lb-code commented 2 years ago

The message means it failed to install bagpy, and since I use pip inside conda you see the 'conda run..' command. Is there any way I can resolve the dependency? Like use requirments.txt?

I couldn't find bagpy in conda and conda-forge.

I cloned the repo and ran python setup.py install

I get errors complaining about python 3.8

File "/tmp/easy_install-dwv00b10/numpy-1.22.3/setup.py", line 34, in <module>                                                                                                                                            
    required_packages.append('Sphinx==3.2.1')                                                                                                                                                                              
RuntimeError: Python version >= 3.8 required.  
lb-code commented 2 years ago

Issue is resolved now after py3rosmsgs fix.