[Bug 603128] Re: python-magic is incomplete on Ubuntu LTS?
Pander
603128 at bugs.launchpad.net
Fri Nov 2 15:50:15 UTC 2018
** Tags removed: bionic cosmic
** Tags added: disco
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to file in Ubuntu.
https://bugs.launchpad.net/bugs/603128
Title:
python-magic is incomplete on Ubuntu LTS?
Status in file package in Ubuntu:
Confirmed
Bug description:
Binary package hint: file
I'm running Ubuntu 10.04 LTS.
I installed python-magic with: sudo apt-get install python-magic (the
file that gets installed is python-magic_5.03-5ubuntu1_i386.deb)
However, when I start Python (version 2.6.5) and I "import magic" and
I then do "dir(magic)", it seems as though the module does not contain
all the definitions that I can see on python-magic's github repo (i.e.
the Ubuntu package seems outdated):
['MAGIC_APPLE', 'MAGIC_CHECK', 'MAGIC_COMPRESS', 'MAGIC_CONTINUE',
'MAGIC_DEBUG', 'MAGIC_DEVICES', 'MAGIC_ERROR', 'MAGIC_MIME',
'MAGIC_MIME_ENCODING', 'MAGIC_MIME_TYPE', 'MAGIC_NONE',
'MAGIC_NO_CHECK_APPTYPE', 'MAGIC_NO_CHECK_CDF',
'MAGIC_NO_CHECK_COMPRESS', 'MAGIC_NO_CHECK_ELF',
'MAGIC_NO_CHECK_ENCODING', 'MAGIC_NO_CHECK_SOFT',
'MAGIC_NO_CHECK_TAR', 'MAGIC_NO_CHECK_TEXT', 'MAGIC_NO_CHECK_TOKENS',
'MAGIC_PRESERVE_ATIME', 'MAGIC_RAW', 'MAGIC_SYMLINK', '__doc__',
'__file__', '__name__', '__package__', 'error', 'open']
What's up? Am I doing something wrong?
Joubert
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/file/+bug/603128/+subscriptions
More information about the foundations-bugs
mailing list