Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Gary Herron Newsgroups: comp.lang.python Subject: Re: PLEASE HELP -- TOTALLY NEW TO PYTHON Date: Sat, 26 Mar 2016 09:50:48 -0700 Lines: 50 Message-ID: References: <30049892-D089-451B-A839-03D825448588@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Trace: news.uni-berlin.de zqLYlqENWi5XHgMowI9cBwJP+whtcYxSA0Lkx+qN8wgA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.060 X-Spam-Evidence: '*H*': 0.88; '*S*': 0.00; 'main()': 0.07; '-1,': 0.09; 'typeerror:': 0.09; 'python': 0.10; '-1):': 0.16; 'buggy': 0.16; 'python3.': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'subject:PYTHON': 0.16; 'wrote:': 0.16; 'fixed.': 0.18; 'questions:': 0.22; 'trying': 0.22; 'wrote': 0.23; '(most': 0.24; 'downloaded': 0.24; 'written': 0.24; 'header:In-Reply-To:1': 0.24; 'header:User-Agent:1': 0.26; '(which': 0.26; 'converting': 0.27; 'subject: -- ': 0.27; 'ago': 0.29; 'code': 0.30; 'guess': 0.31; 'run': 0.33; 'traceback': 0.33; 'file': 0.34; 'installing': 0.35; 'skip:" 50': 0.35; 'but': 0.36; 'instead': 0.36; 'to:addr:python- list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; "won't": 0.38; 'wrong': 0.38; 'received:192': 0.39; 'to:addr:python.org': 0.40; 'some': 0.40; 'please,': 0.63; 'talking': 0.67; 'dr.': 0.69; 'received:204': 0.75; 'institute': 0.77; '(425)': 0.84; '895-4418': 0.84; 'dent': 0.84; 'digipen': 0.84; 'herron': 0.84; 'ind': 0.84; 'subject:NEW': 0.91 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 In-Reply-To: <30049892-D089-451B-A839-03D825448588@mac.com> X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:105766 On 03/25/2016 10:31 PM, Juan Dent wrote: > I am trying to run =E2=80=98python cppdep.py=E2=80=99 but get the follo= wing: I would guess that this code was written some time ago for Python2,=20 but that you have downloaded and run it with Python3. Try installing Python2 instead of Python3. Or try talking whoever=20 wrote it into converting it to Python3. Or my guess is completely wrong and the code is buggy and won't run=20 until fixed. (Which brings up the questions: What is cppdep.py? Who=20 wrote it? How do you know that it runs?) Gary Herron > > @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@= @@@@@@@@@ > analyzing dependencies among all components ... > Traceback (most recent call last): > File "cppdep.py", line 675, in > main() > File "cppdep.py", line 643, in main > calculate_graph(digraph) > File "cppdep.py", line 570, in calculate_graph > (cycles, dict_node2cycle) =3D make_DAG(digraph, key_node) > File "/Users/juandent/Downloads/cppdep-master/networkx_ext.py", line= 79, in make_DAG > for ind in range(len(subgraphs)-1, -1, -1): > TypeError: object of type 'generator' has no len() > > > Please, I know no python and am in a hurry to get this working=E2=80=A6= Please help > > > Regards, > Juan --=20 Dr. Gary Herron Department of Computer Science DigiPen Institute of Technology (425) 895-4418