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


Groups > comp.lang.python > #105766

Re: PLEASE HELP -- TOTALLY NEW TO PYTHON

From Gary Herron <gherron@digipen.edu>
Newsgroups comp.lang.python
Subject Re: PLEASE HELP -- TOTALLY NEW TO PYTHON
Date 2016-03-26 09:50 -0700
Message-ID <mailman.42.1459011606.28225.python-list@python.org> (permalink)
References <30049892-D089-451B-A839-03D825448588@mac.com>

Show all headers | 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