Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #105733
| Path | csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Juan Dent <juandent@mac.com> |
| Newsgroups | comp.lang.python |
| Subject | PLEASE HELP -- TOTALLY NEW TO PYTHON |
| Date | Fri, 25 Mar 2016 23:31:57 -0600 |
| Lines | 27 |
| Message-ID | <mailman.23.1458986352.28225.python-list@python.org> (permalink) |
| Mime-Version | 1.0 (Mac OS X Mail 9.2 \(3112\)) |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | news.uni-berlin.de HLqRIL9pSK3y9IopQcYI8QgE04pJIh3cKSdoWUhW3H0A== |
| Return-Path | <juandent@mac.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.000 |
| X-Spam-Evidence | '*H*': 1.00; '*S*': 0.00; 'else:': 0.03; 'skip:[ 20': 0.03; 'warnings': 0.03; 'root': 0.04; 'layers': 0.05; 'sys': 0.05; '__name__': 0.07; 'dependency': 0.07; 'f.close()': 0.07; 'filename:fname piece:py': 0.07; 'indicated': 0.07; 'main()': 0.07; 'optparse': 0.07; 'skip:% 20': 0.07; '#print': 0.09; "'%s": 0.09; "'''": 0.09; "'rb')": 0.09; '-1,': 0.09; '5)]': 0.09; 'basename': 0.09; 'c/c++': 0.09; 'components.': 0.09; 'files:': 0.09; 'hashlib': 0.09; 'indicates': 0.09; 'large-scale': 0.09; 'os.path': 0.09; 'path)': 0.09; 'size)': 0.09; 'skip:o 60': 0.09; 'typeerror:': 0.09; 'way:': 0.09; 'python': 0.10; 'def': 0.13; 'url:)': 0.14; 'digest': 0.15; 'headers': 0.15; "skip:' 30": 0.15; 'variables': 0.15; '%d:': 0.16; '%s,': 0.16; "'*'": 0.16; "'+'": 0.16; "':'": 0.16; "'__main__':": 0.16; '-1):': 0.16; '0):': 0.16; '2))': 0.16; "\\n'": 0.16; 'adjacent': 0.16; 'afterwards.': 0.16; 'cfile': 0.16; 'comp': 0.16; 'elem': 0.16; 'header:': 0.16; 'headers:': 0.16; 'hex': 0.16; 'lambda': 0.16; 'layering': 0.16; 'main():': 0.16; 'node,': 0.16; 'nodes': 0.16; 'nodes):': 0.16; 'range(0,': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'represents.': 0.16; 'set()': 0.16; 'skip:= 80': 0.16; 'skip:d 60': 0.16; 'skip:f 90': 0.16; 'skip:n 50': 0.16; 'string:': 0.16; 'stripped': 0.16; 'stripped:': 0.16; 'subject:PYTHON': 0.16; 'time.time()': 0.16; 'value:': 0.16; 'string': 0.17; 'byte': 0.18; 'config': 0.18; 'detect': 0.18; 'skip:g 40': 0.18; 'try:': 0.18; '(in': 0.18; '>>>': 0.20; 'math': 0.20; '(all': 0.22; 'cycles': 0.22; 'parser': 0.22; 'parsing': 0.22; 'skip:% 10': 0.22; "skip:' 40": 0.22; 'strip': 0.22; 'suppose': 0.22; 'pass': 0.22; 'trying': 0.22; 'seems': 0.23; 'chapter': 0.23; 'component': 0.23; 'ignored.': 0.23; 'skip:( 40': 0.23; 'specified': 0.23; 'import': 0.24; '(most': 0.24; 'xml': 0.24; 'header': 0.24; "doesn't": 0.26; 'error': 0.27; 'skip:# 10': 0.27; 'received:17': 0.27; 'skip:e 30': 0.27; 'skip:i 40': 0.27; 'subject: -- ': 0.27; 'url:gov': 0.27; 'url:moin': 0.27; 'yield': 0.27; "skip:' 10": 0.28; 'skip:( 20': 0.28; 'depth': 0.29; 'indirectly': 0.29; 'initialized': 0.29; 'issues.': 0.29; 'node': 0.29; 'selecting': 0.29; 'str': 0.29; 'convert': 0.29; 'skip:b 40': 0.29; 'print': 0.30; 'url:wiki': 0.30; 'code': 0.30; 'minimal': 0.30; 'skip:g 30': 0.30; 'skip:[ 10': 0.31; 'entry': 0.31; 'skip:s 30': 0.31; 'included': 0.32; 'skip:_ 10': 0.32; 'direct': 0.68; 'design.': 0.72; '(outside': 0.84; '11:': 0.84; '12:': 0.84; '2.5.': 0.84; 'ccd': 0.84; 'dict()': 0.84; 'ind': 0.84; 'reachable': 0.84; 'subject:NEW': 0.91 |
| X-Proofpoint-Virus-Version | vendor=fsecure engine=2.50.10432:,, definitions=2016-03-26_01:,, signatures=0 |
| X-Proofpoint-Spam-Details | rule=notspam policy=default score=0 spamscore=0 clxscore=1011 suspectscore=4 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1510270003 definitions=main-1603260083 |
| X-Mailer | Apple Mail (2.3112) |
| X-Mailman-Approved-At | Sat, 26 Mar 2016 05:59:11 -0400 |
| X-Content-Filtered-By | Mailman/MimeDel 2.1.21 |
| 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:105733 |
Show key headers only | View raw
I am trying to run ‘python cppdep.py’ but get the following:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
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
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
PLEASE HELP -- TOTALLY NEW TO PYTHON Juan Dent <juandent@mac.com> - 2016-03-25 23:31 -0600 Re: PLEASE HELP -- TOTALLY NEW TO PYTHON Ned Batchelder <ned@nedbatchelder.com> - 2016-03-26 04:51 -0700 Re: PLEASE HELP -- TOTALLY NEW TO PYTHON Steven D'Aprano <steve@pearwood.info> - 2016-03-26 22:52 +1100
csiph-web