soft-matter / trackpy

Python particle tracking toolkit
http://soft-matter.github.io/trackpy
Other
443 stars 131 forks source link

object has no attribute 'long_name' (when inspecting 'frame') #737

Open rodrigo-j-goncalves opened 1 year ago

rodrigo-j-goncalves commented 1 year ago

I'm trying to run the walkthrough notebook with my own mp4 video. When I try to inspect the video using the instruction frame in a code cell, I get the following error:

File av/stream.pyx:112, in av.stream.Stream.__getattr__()
AttributeError: 'av.video.codeccontext.VideoCodecContext' object has no attribute 'long_name'

I work with pip on Linux.

pranavp656 commented 1 year ago

Seems like it's an issue that arose after the versions updated. Changing the version to 9.2.0 worked for me (pip install av==9.2.0).

EricThomson commented 1 year ago

Same issue here, among others: got things to work the same way with: mamba install -c conda-forge "av<10.0"