PLEASE HELP -- TOTALLY NEW TO PYTHON
Gary Herron
gherron at digipen.edu
Sat Mar 26 12:50:48 EDT 2016
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
More information about the Python-list
mailing list