Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 28 Aug 2014, 03:22
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Python-magic module not found
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
april

Joined: 14 Sep 2013
Posts: 45

PostPosted: Mon 14 Oct 2013, 17:54    Post subject:  Python-magic module not found  

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
Back to top
View user's profile Send private message 
chapchap70

Joined: 18 Nov 2010
Posts: 125
Location: The Island Of Long (NY, USA)

PostPosted: Mon 14 Oct 2013, 22:49    Post subject:  

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.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2236

PostPosted: Tue 15 Oct 2013, 11:05    Post subject:  

Yeah, it's part of the 'file' sources.
Back to top
View user's profile Send private message 
april

Joined: 14 Sep 2013
Posts: 45

PostPosted: Tue 15 Oct 2013, 17:40    Post subject:  

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 ?
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 1660
Location: wales

PostPosted: Wed 16 Oct 2013, 05:13    Post subject:  

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

_________________
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
LÖVE2d, a collection of 27 lua gameshttp://www.murga-linux.com/puppy/viewtopic.php?t=76739
Back to top
View user's profile Send private message 
april

Joined: 14 Sep 2013
Posts: 45

PostPosted: Thu 17 Oct 2013, 05:04    Post subject:  

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:
# 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 ?
Back to top
View user's profile Send private message 
mikeb


Joined: 23 Nov 2006
Posts: 8213

PostPosted: Thu 17 Oct 2013, 08:34    Post subject:  

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
Back to top
View user's profile Send private message 
666philb


Joined: 07 Feb 2010
Posts: 1660
Location: wales

PostPosted: Thu 17 Oct 2013, 11:33    Post subject:  

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

_________________
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
LÖVE2d, a collection of 27 lua gameshttp://www.murga-linux.com/puppy/viewtopic.php?t=76739
Back to top
View user's profile Send private message 
april

Joined: 14 Sep 2013
Posts: 45

PostPosted: Wed 04 Jun 2014, 18:22    Post subject:  

Missed that reply 666philb Thanks
Got it away , just having trouble with the pyqtgraph bit -cheers
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0535s ][ Queries: 12 (0.0038s) ][ GZIP on ]