Giter VIP home page Giter VIP logo

Comments (4)

sbraz avatar sbraz commented on May 25, 2024

Well, the documentation states that MediaInfo must be installed. If it is, the lib is installed as well :)
I'll update the doc to make it more clear.
As for your error, I don't think it's related to pymediainfo but rather to libzen on which mediainfo and its lib depend. Can you run the mediainfo binary?

from pymediainfo.

rlskoeser avatar rlskoeser commented on May 25, 2024

I thought sure I had tested it, but I see now that I'm getting the same error when I run mediainfo on the command line. So, clearly this was an issue with the mediainfo install. I guess the package dependencies were configured wrong, it looks like libzen didn't get installed with it. We put that on the system and now it's working fine both on the command line and through python.

I knew the library had to be installed. :-) I just wasn't sure if there were any more specifics than that, different versions of libmediainfo or anything like that.

Thanks so much for the swift response. Sorry for assuming the issue was with the new version of pymediainfo!

from pymediainfo.

devxpy avatar devxpy commented on May 25, 2024

@sbraz Can we have this as a check while installing?

from pymediainfo.

sbraz avatar sbraz commented on May 25, 2024

@devxpy I'm not sure how you would like to proceed. AFAIK other similar libraries do not have any requirement set at install time. I guess that those linking to libraries fail to build while those using ctypes like python-magic or pymediainfo will just fail at runtime.
If you're installing pymediainfo via one of the existing packages, you shouldn't have to worry about that.
What's more, pymediainfo can be used to load XML files generated by MediaInfo elsewhere so the library isn't a hard requirement, that's why this function was added:

def can_parse(cls, library_file=None):

from pymediainfo.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.