Public bug reported:

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

** Affects: file (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: python

-- 
python-magic is incomplete on Ubuntu 10.04 LTS?
https://bugs.launchpad.net/bugs/603128
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to