Python-magic module not found

Using applications, configuring, problems
Post Reply
Message
Author
april

Python-magic module not found

#1 Post by april »

My package manager reports Python is installed but when I try installing the binwalk software which relies on it the python-magic module cant be found .

Is this put in an unexpected directory and needs a link or is there some other reason please?

Puppy Precise 5.6.1

chapchap70
Posts: 210
Joined: Thu 18 Nov 2010, 05:39
Location: The Island Of Long (NY, USA)

#2 Post by chapchap70 »

I never ran Precise. It is possible that this is a dependency. Did you check to see if python-magic is in the package manager? A quick search indicates it may be part of libmagic.

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#3 Post by amigo »

Yeah, it's part of the 'file' sources.

april

#4 Post by april »

Thanks I dont understand
Package manager says I have magic and magic-dev installed
Also have file-5.03-w5c installed but when compiling binwalk the compile process is not finding the python modules .

Have the modules been moved in the distro from where they are expected to be ? Do I need a link created so the compiler finds them?

has anyone worked with python and become familiar with where the modules are supposed to be ?

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#5 Post by 666philb »

hi april,

make sure that you have the 'devx.sfs' installed, then install python-setuptools and its dependencies from the PPM

and then try compiling binwalk again
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

april

#6 Post by april »

Thanks Phil . Tried your suggestion but still not finding the magic module ?

I think it may have done a magic disappearing trick? Hai

I downloaded the latest "file 5.15" as it must be > 5.05
as below from that site but am still getting some error

Code: Select all

# python setup.py build
checking pre-requisites

*******************************************************************************************************************
Pre-requisite failure: 'module' object has no attribute 'MAGIC_NO_CHECK_TEXT'
It looks like you have an old or incompatible magic module installed.
Please install the official python-magic module, or download and install it from source: ftp://ftp.astron.com/pub/file/
******************************************************************************************************************* 
Can anyone help further a bit ?

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#7 Post by mikeb »

https://pypi.python.org/pypi/filemagic/

installed by python from the python source it would seem.... not something I am familiar with but have done it in the dim past....

mike

User avatar
666philb
Posts: 3615
Joined: Sun 07 Feb 2010, 12:27
Location: wales ... by the sea

#8 Post by 666philb »

ok .... this was tried on a vanilla precise 5.7.1..

install the devx
install python-setuptools and it's dependencies from the PPM

the next two packages are in the devx, but reinstall them from the PPM

python-magic
libmagic

you should be good to go then
Bionicpup64 built with bionic beaver packages http://murga-linux.com/puppy/viewtopic.php?t=114311
Xenialpup64, built with xenial xerus packages http://murga-linux.com/puppy/viewtopic.php?t=107331

april

#9 Post by april »

Missed that reply 666philb Thanks
Got it away , just having trouble with the pyqtgraph bit -cheers

Post Reply