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


Groups > comp.lang.python > #105766 > unrolled thread

Re: PLEASE HELP -- TOTALLY NEW TO PYTHON

Started byGary Herron <gherron@digipen.edu>
First post2016-03-26 09:50 -0700
Last post2016-03-26 09:50 -0700
Articles 1 — 1 participant

Back to article view | Back to comp.lang.python

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

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

#105766 — Re: PLEASE HELP -- TOTALLY NEW TO PYTHON

FromGary Herron <gherron@digipen.edu>
Date2016-03-26 09:50 -0700
SubjectRe: PLEASE HELP -- TOTALLY NEW TO PYTHON
Message-ID<mailman.42.1459011606.28225.python-list@python.org>
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

[toc] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web