Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #105766

Re: PLEASE HELP -- TOTALLY NEW TO PYTHON

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Gary Herron <gherron@digipen.edu>
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 <mailman.42.1459011606.28225.python-list@python.org> (permalink)
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 <gherron@digipen.edu>
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 <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:105766

Show key headers only | View raw


On 03/25/2016 10:31 PM, Juan Dent wrote:
> I am trying to run ‘python cppdep.py’ but get the following:

  I would guess that this code was written some time ago for Python2, 
but that you have downloaded and run it with Python3.

Try installing Python2 instead of Python3.   Or try talking whoever 
wrote it into converting it to Python3.

Or my guess is completely wrong and the code is buggy and won't run 
until fixed.  (Which brings up the questions: What is cppdep.py? Who 
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 <module>
>      main()
>    File "cppdep.py", line 643, in main
>      calculate_graph(digraph)
>    File "cppdep.py", line 570, in calculate_graph
>      (cycles, dict_node2cycle) = 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… Please help
>
>
> Regards,
> Juan


-- 
Dr. Gary Herron
Department of Computer Science
DigiPen Institute of Technology
(425) 895-4418

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: PLEASE HELP -- TOTALLY NEW TO PYTHON Gary Herron <gherron@digipen.edu> - 2016-03-26 09:50 -0700

csiph-web