wahlflo / metadump Goto Github PK
View Code? Open in Web Editor NEWMetadata dump utility
License: BSD 2-Clause "Simplified" License
Metadata dump utility
License: BSD 2-Clause "Simplified" License
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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.