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

module' object has no attribute 'ulog2csv' #32

Open
mymultiverse opened this issue Apr 23, 2018 · 3 comments
Open

module' object has no attribute 'ulog2csv' #32

mymultiverse opened this issue Apr 23, 2018 · 3 comments

Comments

@mymultiverse
Copy link

I am getting attribute error while reading the file in jupyter notebook.

import px4tools
from px4tools import pandas
import pylab as plt

plt.rcParams['figure.figsize'] = (10, 5)
plt.rcParams['lines.linewidth'] = 3

Works fine but

d = px4tools.read_ulog('mylg.ulg')

AttributeError                            Traceback (most recent call last)
<ipython-input-7-b94e281a6984> in <module>()
----> 1 d = px4tools.read_ulog('mylg.ulg')

/home/yograj/anaconda2/lib/python2.7/site-packages/px4tools/ulog.pyc in read_ulog(ulog_filename, messages, verbose)
    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' object has no attribute 'ulog2csv'
@mymultiverse
Copy link
Author

With pyulog tool I can convert .ulg to .csv.

@fredowski
Copy link

Hi, I have the same problem. I figured out that the pyulog package has removed the automatic import of optional packages (ulog2csv). See:

PX4/pyulog@1c6d31c#diff-258fcf38784c80d71edd3df19e60a4bc

Therefore ulog2csv is unknown.

@fredowski
Copy link

I solved this by not using the px4tools package from conda-forge (which is 0.7.7) and instead used the version via pip (0.9.3).

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

2 participants