[Twisted-Python] Minor fixes in the “Customizing twistd logging” section

James Broadhead jamesbroadhead at gmail.com
Mon Mar 13 16:04:29 MDT 2017


Hey there --

One way would be to use virtualenv to gather the dependencies without
installing them globally:

mkdir -p ~/venv
virtualenv ~/venv/twisted_docs   # `sudo pip install virtualenv` first if
you don't have this command
source ~/venv/twisted_docs/bin/activate
pip install sphinx twisted
cd <repo>/docs
make html

James

On 13 March 2017 at 19:58, Роман Мещеряков <romanmescheryakov at yandex.ru>
wrote:

>
> Hello,
>
> I managed to read documentation finally. I made a fork of Twisted
> repository using these commands:
>
>
> git clone https://github.com/<yourusername>/twisted.git Twisted
> cd Twisted
> git remote add upstream https://github.com/twisted/twisted.git
> git fetch upstream
> git branch -u upstream/trunk trunk
>
> Then created python virtualenv and installed Sphinx into it. Then I tried
> to generate narrative HTML documentation:
>
> (twisted-dev-env) pi at zyuzino11:~/ColourDreams/Twisted-dev $ cd docs
> (twisted-dev-env) pi at zyuzino11:~/ColourDreams/Twisted-dev/docs $ make html
> sphinx-build -b html -d _build/doctrees   . _build/html
> Running Sphinx v1.5.3
>
> Exception occurred:
>   File "conf.py", line 45, in <module>
>     from twisted import version as twisted_version_object
> ImportError: No module named twisted
> The full traceback has been saved in /tmp/sphinx-err-75zxJ8.log, if you
> want to report the issue to the developers.
> Please also report this if it was a user error, so that a better error
> message can be provided next time.
> A bug report can be filed in the tracker at <https://github.com/sphinx-
> doc/sphinx/issues>. Thanks!
> Makefile:53: ошибка выполнения рецепта для цели «html»
> make: *** [html] Ошибка 1
> (twisted-dev-env) pi at zyuzino11:~/ColourDreams/Twisted-dev/docs $
>
> Please help me to resolve this error!
>
> --
> Kind regards, Roman Mescheryakov
>
>
>
> 03.03.2017, 15:25, "Jean-Paul Calderone" <exarkun at twistedmatrix.com>:
>
> On Fri, Mar 3, 2017 at 2:57 AM, Роман Мещеряков <
> romanmescheryakov at yandex.ru> wrote:
>
> Hi everyone,
>
>
> *On the documentation web page
> https://twistedmatrix.com/documents/current/core/howto/application.html
> <https://twistedmatrix.com/documents/current/core/howto/application.html>
> in the “Customizing twistd logging” section there are 2 examples which as I
> can see are a bit outdated in terms of imported module names and some other
> minor details. I would like to fix that. Is this change is worth doing? If
> so, please guide how can I do it. My GitHub login, if it’s needed, is
> RomanMeR.*
>
>
> Hi Роман,
>
> Thanks for your interest in improving Twisted!  Have a look at
> https://twistedmatrix.com/trac/wiki/TwistedDevelopment and then let us
> know if you have further questions.
>
> Jean-Paul
>
> ,
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20170313/9f09665d/attachment-0002.html>


More information about the Twisted-Python mailing list