LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-08-2011, 03:04 AM   #1
yimaizhe
LQ Newbie
 
Registered: May 2011
Posts: 11

Rep: Reputation: Disabled
A question about python


Hi,Everyone,
I am using ubuntu 10.10 and the python installed by "command:sudo apt-get install python" is python2.6.6
And I am intended to run a software compile by python2.6.6 from 2 egg files.

what is the matter when occurring this type of error ?
Thanks.


p8h61@p8h61-System-Product-Name:~/pipeline$ ./birdsuite_converter --familyfile /home/p8h61/TEST/Output.fam --plateroot /home/p8h61/TEST/plates --metadir /home/p8h61/TEST/installed_metadata --outputdir ~/output --celmap /home/p8h61/TEST/Output.celMap --ignorefam
=========================================================
= BIRDSUITE FORMAT CONVERTER =
=========================================================

FAWKES->GVAR:
Looking SNP map: genomewidesnp_6.rs_snp_map
Traceback (most recent call last):
File "./birdsuite_converter", line 9, in <module>
load_entry_point('plinkpipeline==1.6.6', 'console_scripts', 'birdsuite_converter')()
File "/usr/local/lib/python2.6/dist-packages/plinkpipeline-1.6.6-py2.5.egg/plink_pipeline/birdsuite_to_plink.py", line 125, in main
fawkes_to_gvar.main(current_args)
File "/usr/local/lib/python2.6/dist-packages/plinkpipeline-1.6.6-py2.5.egg/plink_pipeline/fawkes_to_gvar.py", line 83, in main
if len(map_files > 0):
TypeError: object of type 'bool' has no len()
 
Old 06-08-2011, 03:06 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
well it looks like exactly what the error says, you can't get the length of a boolean value. How long is "True" ??? it makes no sense. presumably the code is supposed to read "if len(map_files) > 0:"
 
1 members found this post helpful.
Old 06-09-2011, 09:20 AM   #3
yimaizhe
LQ Newbie
 
Registered: May 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
well it looks like exactly what the error says, you can't get the length of a boolean value. How long is "True" ??? it makes no sense. presumably the code is supposed to read "if len(map_files) > 0:"
Thanks a lot for your answer,but how can I make it work ?what should I do to resolve it ?
 
Old 06-09-2011, 09:31 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
I already told you... ?? change that line...
 
1 members found this post helpful.
Old 06-12-2011, 07:03 PM   #5
yimaizhe
LQ Newbie
 
Registered: May 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
I already told you... ?? change that line...

Thanks very much ,whereas I am a total newbie on ubuntu ,and I really do not know how to change it .
could you please show me an example ?
 
Old 06-13-2011, 01:48 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Are you joking?? I already did.
 
Old 06-20-2011, 08:43 AM   #7
yimaizhe
LQ Newbie
 
Registered: May 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
Are you joking?? I already did.

Sorry ,I gotta it.
Thanks a lot.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Python 3 question darran Linux - Software 4 07-07-2010 01:33 PM
Python Question Alexvader Programming 2 02-11-2010 06:44 PM
Python question gamehack Programming 5 01-03-2005 05:21 AM
python question ywchen2000 Programming 1 04-20-2004 11:46 PM
A Python question gamehack Programming 2 03-17-2004 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:39 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration