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

2017-03-15 Thread Роман Мещеряков
 > Are you running the latest `tox`? (tox --version == 2.6.0)Yes > This is not the first time you've run 'tox', or it would have the 'narrativedocs create' line above.  Did you see what happened on the earlier runs?  Did they all fail?Yes, they all failed. I don't have tox output from previous runs. As I remember, the first 'tox -e narrativedocs' run failed because of missing libffi dependency, so this is possible first step one needs to reproduce the problem with running 'narrativedocs inst-nodeps' instead of 'narrativedocs create'. > Did you copy this development environment from another machine, or move it to a different folder?No > Can you try re-creating the virtual environment?  Either `tox -r -e narrativedocs` or `rm -fr build/; tox -e narrativedocs` I tried the `tox -r -e narrativedocs` command and it succeeded! Docs built successfully. Thank you Glyph for helping :) And thanks to all who responded as well! :) One thing that is left unclear to me: the `narrativedocs installed` line in the tox output contains a long list of installed modules. Where were they installed? Because `pip list` doesn't show me them neither for the virtual environment which was active when I run tox nor for the global list. -- Kind regards, Roman Mescheryakov   15.03.2017, 08:45, "Glyph Lefkowitz" : On Mar 14, 2017, at 6:28 AM, Роман Мещеряков  wrote: I installed libffi-dev and libssl-dev Raspbian packages, and run "tox -e narrativedocs" again. Now the error was about missing "sphinx-build" executable. So I activated virtualenv where Sphinx was previously installed and again issued "tox -e narrativedocs". Now the output was: (twisted-dev-env) pi@zyuzino11:~/ColourDreams/Twisted-dev $ tox -e narrativedocsGLOB sdist-make: /home/pi/ColourDreams/Twisted-dev/setup.pynarrativedocs inst-nodeps: /home/pi/ColourDreams/Twisted-dev/build/dist/Twisted-17.1.0dev0.zipnarrativedocs installed: appdirs==1.4.3,asn1crypto==0.21.1,attrs==16.3.0,Automat==0.5.0,constantly==15.1.0,enum34==1.1.6,idna==2.5,incremental==16.10.1,ipaddress==1.0.18,packaging==16.8,pycparser==2.17,pyflakes==1.5.0,pyparsing==2.2.0,requests==2.13.0,six==1.10.0,Twisted==17.1.0.dev0,zope.interface==4.3.3narrativedocs runtests: PYTHONHASHSEED='496434055'narrativedocs runtests: commands[0] | python -c import sys; print(sys.prefix)/home/pi/ColourDreams/Twisted-dev/build/narrativedocsnarrativedocs runtests: commands[1] | python -c import sys; print(sys.exec_prefix)/home/pi/ColourDreams/Twisted-dev/build/narrativedocsnarrativedocs runtests: commands[2] | python -c import sys; print(sys.executable)/home/pi/ColourDreams/Twisted-dev/build/narrativedocs/bin/pythonnarrativedocs runtests: commands[3] | python --versionPython 2.7.9narrativedocs runtests: commands[4] | sphinx-build -aW -b html -d /home/pi/ColourDreams/Twisted-dev/docs/_build /home/pi/ColourDreams/Twisted-dev/docs /home/pi/ColourDreams/Twisted-dev/docs/_build/WARNING:test command found but not installed in testenv  cmd: /home/pi/twisted-dev-env/bin/sphinx-build  env: /home/pi/ColourDreams/Twisted-dev/build/narrativedocsMaybe you forgot to specify a dependency? See also the whitelist_externals envconfig setting.Running Sphinx v1.5.3 Exception occurred:  File "conf.py", line 45, in ImportError: No module named twistedThe full traceback has been saved in /tmp/sphinx-err-s9PZVd.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 . Thanks!ERROR: InvocationError: '/home/pi/twisted-dev-env/bin/sphinx-build -aW -b html -d /home/pi/ColourDreams/Twisted-dev/docs/_build /home/pi/ColourDreams/Twisted-dev/docs /home/pi/ColourDreams/Twisted-dev/docs/_build/'__ summary __ERROR:   narrativedocs: commands failed(twisted-dev-env) pi@zyuzino11:~/ColourDreams/Twisted-dev $ The error is "twisted" module missing. How could I fix that? Should I install Twisted Python package to my virtualenv? Now I only have Twisted Python package installed globally.From what I've seen here, it doesn't look like you've done anything wrong - this should work.  So it's going to require some investigation. I don't know why it would be choosing to 'inst-nodeps' when the deps clearly aren't installed yet.  When I do this, what I see is: GLOB sdist-make: /Users/glyph/Projects/Twisted/setup.pynarrativedocs create: /Users/glyph/Projects/Twisted/build/narrativedocsnarrativedocs inst: /Users/glyph/Projects/Twisted/build/dist/Twisted-17.1.0.dev0.zipnarrativedocs installed: alabaster==0.7.10,amptrac==0.1,appdirs==1.4.3,asn1crypto==0.21.1,astroid==1.4.9,attrs==16.3.0,Automat==0.5.0,Babel==2.3.4,cffi==1.9.1,colorama==0.3.7,constantly==15.1.0,cryptography==1.8.1,docutils==0.13.1,enum34==1.1.6,epydoc==3.0.1,extras==1.0.0,fixtures==3.0.0,idna==2

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

2017-03-15 Thread Glyph Lefkowitz

> On Mar 15, 2017, at 8:28 AM, Роман Мещеряков  
> wrote:
> 
>  
> > Are you running the latest `tox`? (tox --version == 2.6.0)
> Yes
>  
> > This is not the first time you've run 'tox', or it would have the 
> > 'narrativedocs create' line above.  Did you see what happened on the 
> > earlier runs?  Did they all fail?
> 
> Yes, they all failed. I don't have tox output from previous runs. As I 
> remember, the first 'tox -e narrativedocs' run failed because of missing 
> libffi dependency, so this is possible first step one needs to reproduce the 
> problem with running 'narrativedocs inst-nodeps' instead of 'narrativedocs 
> create'.
>  
> > Did you copy this development environment from another machine, or move it 
> > to a different folder?
> No
>  
> > Can you try re-creating the virtual environment?  Either `tox -r -e 
> > narrativedocs` or `rm -fr build/; tox -e narrativedocs`
>  
> I tried the `tox -r -e narrativedocs` command and it succeeded! Docs built 
> successfully.
>  
> Thank you Glyph for helping :) And thanks to all who responded as well! :)

You're welcome!  Glad we got you up and running, sorry we couldn't figure out 
what the problem was.

> One thing that is left unclear to me: the `narrativedocs installed` line in 
> the tox output contains a long list of installed modules. Where were they 
> installed? Because `pip list` doesn't show me them neither for the virtual 
> environment which was active when I run tox nor for the global list.

`tox` is a tool which creates multiple virtualenvs for testing a project in 
multiple configurations, and for running multiple tasks associated with a 
project.  (Like, for example, generating narrative documentation.)

Twisted is weird and puts its tox venvs in 'build/'; normally they're 
in '.tox/envname'. (see http://twistedmatrix.com/trac/ticket/9040).  You can 
find your venv in build/narrativedocs.

-glyph___
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python