Giter Club home page Giter Club logo

metadump's People

Contributors

wahlflo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jonike hartl3y94

metadump's Issues

Exempi library not found.

I installed the the script as recommended in the read me and have all necessary packages shown when I do a pip freeze

lxml==4.3.3
Pillow==6.0.0
PyPDF2==1.26.0
python-xmp-toolkit==2.0.1
pytz==2019.1
zipfile36==0.1.3

But when I start the tool I always get the error "Exempi library not found." even thow the python-xmp-toolkit is installed. What am I missing?

python metadump.py -h
Traceback (most recent call last):
  File "metadump.py", line 149, in <module>
    PLUGINS = _load_plugins()
  File "metadump.py", line 145, in _load_plugins
    specification.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "~/metadump/plugins/XMP.py", line 6, in <module>
    from libxmp.utils import file_to_dict
  File "~/metadump/venv/lib/python3.7/site-packages/libxmp/__init__.py", line 50, in <module>
    from .core import XMPMeta, XMPIterator
  File "~/metadump/venv/lib/python3.7/site-packages/libxmp/core.py", line 50, in <module>
    from . import exempi as _cexempi
  File "~/metadump/venv/lib/python3.7/site-packages/libxmp/exempi.py", line 69, in <module>
    EXEMPI = _load_exempi()
  File "~/metadump/venv/lib/python3.7/site-packages/libxmp/exempi.py", line 60, in _load_exempi
    raise ExempiLoadError('Exempi library not found.')
libxmp.ExempiLoadError: Exempi library not found.

Errors when running against a directory with ppt files

Hi

got the error below when running in WSL

`Traceback (most recent call last):------------------------------------------------------| 0.00%
File "/home/kekec/metadump/plugins/PDF.py", line 30, in __extract_metadata
pdf_file = PyPDF2.PdfFileReader(file_stream, strict=False)
File "/home/kekec/.local/lib/python3.10/site-packages/PyPDF2/_reader.py", line 1974, in init
deprecation_with_replacement("PdfFileReader", "PdfReader", "3.0.0")
File "/home/kekec/.local/lib/python3.10/site-packages/PyPDF2/_utils.py", line 369, in deprecation_with_replacement
deprecation(DEPR_MSG_HAPPENED.format(old_name, removed_in, new_name))
File "/home/kekec/.local/lib/python3.10/site-packages/PyPDF2/_utils.py", line 351, in deprecation
raise DeprecationError(msg)
PyPDF2.errors.DeprecationError: PdfFileReader is deprecated and was removed in PyPDF2 3.0.0. Use PdfReader instead.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/kekec/metadump/metadump.py", line 416, in
metadata_of_files = __extract_metadata_of_list_of_files(file_paths=input_list, path_to_input=path_to_input, arguments=arguments)
File "/home/kekec/metadump/metadump.py", line 233, in __extract_metadata_of_list_of_files
metadata = extract_metadata_of_file(path_to_file=path_to_file, specified_plugins=arguments.plugins)
File "/home/kekec/metadump/metadump.py", line 164, in extract_metadata_of_file
metadata += plugin.extract_metadata(path_to_file)
File "/home/kekec/metadump/plugins/PDF.py", line 16, in extract_metadata
metadata = self.__extract_metadata(path_to_pdf=path_to_file)
File "/home/kekec/metadump/plugins/PDF.py", line 34, in __extract_metadata
except PyPDF2.utils.PdfReadError:
AttributeError: module 'PyPDF2' has no attribute 'utils'. Did you mean: '_utils'?`

Any idea what is wrong?
Thank you!

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.