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 narrativedocs
GLOB sdist-make: /home/pi/ColourDreams/Twisted-dev/setup.py
narrativedocs inst-nodeps: /home/pi/ColourDreams/Twisted-dev/build/dist/Twisted-17.1.0dev0.zip
narrativedocs 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.3
narrativedocs runtests: PYTHONHASHSEED='496434055'
narrativedocs runtests: commands[0] | python -c import sys; print(sys.prefix)
/home/pi/ColourDreams/Twisted-dev/build/narrativedocs
narrativedocs runtests: commands[1] | python -c import sys; print(sys.exec_prefix)
/home/pi/ColourDreams/Twisted-dev/build/narrativedocs
narrativedocs runtests: commands[2] | python -c import sys; print(sys.executable)
/home/pi/ColourDreams/Twisted-dev/build/narrativedocs/bin/python
narrativedocs runtests: commands[3] | python --version
Python 2.7.9
narrativedocs 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/narrativedocs
Maybe 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 <module>
ImportError: No module named twisted
The 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 <https://github.com/sphinx-doc/sphinx/issues>. 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.
 
-- 
Kind regards, Roman Mescheryakov
 
 
 
14.03.2017, 11:49, "Glyph Lefkowitz" <gl...@twistedmatrix.com>:
 
On Mar 14, 2017, at 12:53 AM, Роман Мещеряков <romanmescherya...@yandex.ru> wrote:
 
I decided to try Glyph's suggestion first.
By the way, I'm trying to compile twisted documentation on Raspbian, is this platform suitable for that?
The steps I performed just were:
  1. sudo pip install tox (Glyph said I shouldn't install packages globally but it's too late for this Raspbian installation...)
  2. Changed current directory to that where tox.ini resides
  3. I didn't activate any virtual environments
  4. tox -e narrativedocs
The result was fail, if I understood correctly, due to this error:
 
  Running setup.py bdist_wheel for cryptography: started
  Running setup.py bdist_wheel for cryptography: finished with status 'error'
  Complete output from command /home/pi/ColourDreams/Twisted-dev/build/narrativedocs/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-LEVwwA/cryptography/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpTiRC7Rpip-wheel- --python-tag cp27:
  Package libffi was not found in the pkg-config search path.
  Perhaps you should add the directory containing `libffi.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'libffi' found
 
Maybe it's because Raspbian is not suitable for twisted development? If this is the case, can I use Windows?
 
Raspbian should be fine, but you do have to have enough dependencies installed.  In this case you need to apt install libffi-dev and openssl-dev; it will be slow to build the first time (for each version of python) but it will speed up a lot after that due to build caching.
 
(Specifically this is because it is building Cryptography, which does not yet ship a manylinux1 wheel.)
 
Let me know if that works,
 
-g
 

 
 
,

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

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

Reply via email to