Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 975C2200BAD for ; Tue, 25 Oct 2016 22:47:33 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 95F10160AF3; Tue, 25 Oct 2016 20:47:33 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DCDBA160AD8 for ; Tue, 25 Oct 2016 22:47:32 +0200 (CEST) Received: (qmail 98828 invoked by uid 500); 25 Oct 2016 20:47:32 -0000 Mailing-List: contact commits-help@beam.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.incubator.apache.org Delivered-To: mailing list commits@beam.incubator.apache.org Received: (qmail 98819 invoked by uid 99); 25 Oct 2016 20:47:32 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2016 20:47:32 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 8B96FC0781 for ; Tue, 25 Oct 2016 20:47:31 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -7.019 X-Spam-Level: X-Spam-Status: No, score=-7.019 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id A8Cxq6U7EPNN for ; Tue, 25 Oct 2016 20:47:28 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id B935B5F4E7 for ; Tue, 25 Oct 2016 20:47:27 +0000 (UTC) Received: (qmail 51329 invoked by uid 99); 25 Oct 2016 19:44:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2016 19:44:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 670632C2A67 for ; Tue, 25 Oct 2016 19:44:58 +0000 (UTC) Date: Tue, 25 Oct 2016 19:44:58 +0000 (UTC) From: "Marco Buccini (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-693) pydoc is not working MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 25 Oct 2016 20:47:33 -0000 [ https://issues.apache.org/jira/browse/BEAM-693?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15606272#comment-15606272 ] Marco Buccini commented on BEAM-693: ------------------------------------ Hello Ahmet, I have spent some time investigating this issue. I think pydoc is supposed to be used exactly as you did, in case you want to have it in a browser. I mean, if you run it from a directory, it will show you all the packages installed in Python + the .py modules available in that directory. Basically, it tries to import your Python modules + the path you are in and recursively all the (sub) members of the modules present in that directory. To quote the docs (https://docs.python.org/2/library/pydoc.html): > For modules, classes, functions and methods, the displayed documentation is derived from the docstring (i.e. the __doc__ attribute) of the object, and recursively of its documentable members. and > When pydoc generates documentation, it uses the current environment and path to locate modules. Thus, invoking pydoc spam documents precisely the version of the module you would get if you started the Python interpreter and typed import spam. To answer your question, pydoc is a tiny module, so I am not sure if there is really a standard for it. Some projects provide a Jenkins job to generate the docs and serve them - after all, they are just HTML files (e.g., pydoc -w `find apache_beam -name '*.py'`). However, I see this less and less happening; now, the de-facto standard is read-the-docs, but that requires reStructuredText/Markdown documentation, meaning manual documentation, which needs to be kept up-to-date, etc. > pydoc is not working > -------------------- > > Key: BEAM-693 > URL: https://issues.apache.org/jira/browse/BEAM-693 > Project: Beam > Issue Type: Bug > Components: sdk-py > Reporter: Ahmet Altay > Priority: Minor > > Repro: > Start the pydoc server (pydoc -p 8888) and navigate to the apache_beam root: > http://localhost:8888/apache_beam.html > Following errors are shown instead of the actual documentation: > problem in apache_beam - : No module named avro > problem in apache_beam - : cannot import name coders -- This message was sent by Atlassian JIRA (v6.3.4#6332)