Skip to content

module' object has no attribute 'ulog2csv' #32

@mymultiverse

Description

@mymultiverse

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions