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 Wed 26 Nov 2014, 07:24
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 Posts_count  
Author Message
april

Joined: 14 Sep 2013
Posts: 54

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: 148
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: 2278

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: 54

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: 1877
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

_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=96178
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
Back to top
View user's profile Send_private_message 
april

Joined: 14 Sep 2013
Posts: 54

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: 8692

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: 1877
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

_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=96178
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
Back to top
View user's profile Send_private_message 
april

Joined: 14 Sep 2013
Posts: 54

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:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


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