Skip to content

AttributeError: 'NoneType' object has no attribute 'find' #5

@bradisbell

Description

@bradisbell

The utilty doesn't seem to work for some of the DASH-IF test assets:

python dashproxy.py "https://dash.akamaized.net/dash264/TestCasesHD/MultiPeriod_OnDemand/TwoPeriods/TwoPeriod_OnDemand.mpd" -o .
�[32mRunning dash proxy for stream https://dash.akamaized.net/dash264/TestCasesHD/MultiPeriod_OnDemand/
TwoPeriods/TwoPeriod_OnDemand.mpd. Output goes in .�[0m
�[32mmpd=[<Element '{urn:mpeg:dash:schema:mpd:2011}Period' at 0x5675890>, <Element '{urn:mpeg:dash:sche
ma:mpd:2011}Period' at 0x567e470>]�[0m
�[32mStarting a downloader for Representation (period=0 adaptation-set=0 representation=0)�[0m
Traceback (most recent call last):
  File "dashproxy.py", line 289, in <module>
    main()
  File "dashproxy.py", line 286, in main
    run(args)
  File "dashproxy.py", line 275, in run
    return proxy.run()
  File "dashproxy.py", line 115, in run
    self.refresh_mpd()
  File "dashproxy.py", line 129, in refresh_mpd
    self.handle_mpd(mpd)
  File "dashproxy.py", line 155, in handle_mpd
    self.ensure_downloader(mpd, rep_addr)
  File "dashproxy.py", line 173, in ensure_downloader
    downloader.handle_mpd(mpd, self.get_base_url(mpd))
  File "dashproxy.py", line 204, in handle_mpd
    segment_timeline = self.mpd.segment_timeline(self.rep_addr)
  File "dashproxy.py", line 77, in segment_timeline
    return self.segment_template(rep_addr).find('mpd:SegmentTimeline', ns)
AttributeError: 'NoneType' object has no attribute 'find'

Python 2.7.14 on Windows 10 x64

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