Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with ulog analysis.ipynb #24

Open
AlexandreBorowczyk opened this issue Jul 25, 2017 · 7 comments
Open

Issue with ulog analysis.ipynb #24

AlexandreBorowczyk opened this issue Jul 25, 2017 · 7 comments

Comments

@AlexandreBorowczyk
Copy link

Hi I'm running in the following issue will trying the example.

    365 
    366     tmp_dir = tempfile.mkdtemp()
--> 367     pyulog.ulog2csv.convert_ulog2csv(
    368         ulog_filename, messages, tmp_dir, ',')
    369     log_name = os.path.splitext(os.path.basename(ulog_filename))[0]

AttributeError: module 'pyulog' has no attribute 'ulog2csv'
@lefamz
Copy link

lefamz commented Aug 14, 2017

Same here. Tried also to run example outside anaconda with arch linux's python 3.6.2 (and px4tools + other deps installed via pip), but:

`px4tools.estimator_analysis(d_concat_computed)
File "/usr/lib/python3.6/site-packages/px4tools/ulog.py", line 404, in estimator_analysis
df.t_vehicle_attitude_0__f_roll_error.mean()),
File "/usr/lib/python3.6/site-packages/pandas/core/generic.py", line 3081, in getattr
return object.getattribute(self, name)

AttributeError: 'DataFrame' object has no attribute 't_vehicle_attitude_0__f_roll_error'
`
Looks like some incompatibility with new PX4 firmware. At least review on https://review.px4.io/ is working.

@mzahana
Copy link

mzahana commented Jan 2, 2018

@AlexandreBorowczyk Any solution to the ttributeError: module 'pyulog' has no attribute 'ulog2csv' issue?

I am getting the same error.

@AlexandreBorowczyk
Copy link
Author

nothing new, I'm using https://github.com/PX4/flight_review now.

@mzahana
Copy link

mzahana commented Jan 2, 2018

Ok. I just found a way to get rid of that error. I built px4tools from source and uninstalled the versions that were installed by either conda or pip

pip uninstall px4tools

and while being inside conda environment:

conda uninstall px4tools

install px4tools from source while being inside conda environment:

. conda_env
git clone https://github.com/dronecrew/px4tools.git
cd px4tools
python setup.py build install

Hope this helps.

@anandbhaskaran
Copy link

As the error suggests the issue comes from pyulog. I just found a way to get rid of it. Uninstall pyulog and reinstall from source.

pip uninstall pyulog

install pyulog from source

. conda_env
git clone https://github.com/PX4/pyulog.git
cd pyulog
python setup.py build install

The solution is almost similar to @mzahana but its enough to build only pyulog from the source! Hope it helps!

@lefamz
Copy link

lefamz commented Feb 21, 2018

Thank you very much, guys!

@ArkadiuszNiemiec
Copy link

I just did the same thing but without . conda_env (which I don't use) and I still have the same error. Any idea what's wrong? How to build it on Windows machine without conda?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants