thegooglecodearchive / sfepy

Automatically exported from code.google.com/p/sfepy
0 stars 0 forks source link

make html #119

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
make html
LANG=C sphinx-build -b html -d _build/doctrees   . _build/html
/home/nwagner/local/bin/sphinx-build:5: UserWarning: Module pkg_resources
was already imported from
/home/nwagner/local/lib64/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg
_resources.py,
but
/home/nwagner/local/lib64/python2.6/site-packages/distribute-0.6.4-py2.6.egg is
being added to sys.path
  from pkg_resources import load_entry_point
/home/nwagner/local/bin/sphinx-build:5: UserWarning: Module site was
already imported from /usr/lib64/python2.6/site.pyc, but
/home/nwagner/local/lib64/python2.6/site-packages/distribute-0.6.4-py2.6.egg is
being added to sys.path
  from pkg_resources import load_entry_point
Running Sphinx v1.0

Exception occurred:
  File "/home/nwagner/git/sfepy/script/config.py", line 164, in numpydoc_path
    raise ValueError(msg_numpydoc)
ValueError: could not find numpydoc!
If it is installed in a non-standard location, try setting it in
site_cfg.py manually.
The full traceback has been saved in /tmp/sphinx-err-CWVqfD.log, if you
want to report the issue to the author.
Please also report this if it was a user error, so that a better error
message can be provided next time.
Send reports to sphinx-dev@googlegroups.com. Thanks!
make: *** [html] Fehler 1

BTW, I can build the documentation for numpy, scipy, matplotlib without
problems.

Original issue reported on code.google.com by nils...@googlemail.com on 20 Apr 2010 at 5:32

GoogleCodeExporter commented 9 years ago
Can you import numpydoc in python or ipython?

The message speaks about site_cfg.py in the sfepy directory - I have there, for 
example:

numpydoc_path = 
'/home/share/software/usr/lib64/python2.6/site-packages/numpydoc/

as I installed numpydoc manually as a regular user (not system-wide).

What happens if you set the correct path in site_cfg.py?

Original comment by robert.c...@gmail.com on 21 Apr 2010 at 7:24

GoogleCodeExporter commented 9 years ago
Hi,

For my case, I have installed numpydoc through easy_install so it is in my
/usr/lib/python2.x/site-packages. If I remember correctly, the 
numpy/scipy/matplotlib
may include the numpydoc extension in their source packages.

Original comment by logan.so...@gmail.com on 21 Apr 2010 at 1:21

GoogleCodeExporter commented 9 years ago
I cannot import numpydoc from python.
However I found numpydoc.py in numpy/doc/sphinxext.

How can I install numpydoc via svn ?

Original comment by nils...@googlemail.com on 22 Apr 2010 at 7:19

GoogleCodeExporter commented 9 years ago
Hi Nils,

I guess you can do:

svn co http://svn.scipy.org/svn/numpy/trunk/doc/sphinxext numpydoc
export PYTHONPATH=/path/to/numpydoc

before running make html. If you wanted it to be more permanent, you could 
modify
sys.path in conf.py in the sfepy doc directory to point to the numpydoc 
location.

Original comment by logan.so...@gmail.com on 22 Apr 2010 at 7:40

GoogleCodeExporter commented 9 years ago
Oops, probably it is better to modify site_cfg.py in the sfepy as Robert has
suggested above.

Original comment by logan.so...@gmail.com on 22 Apr 2010 at 7:42

GoogleCodeExporter commented 9 years ago
...or just grab the numpydoc tarball at pypi:

http://pypi.python.org/pypi/numpydoc/0.3.1

unpack it somewhere, and add the path to it to site_cfg.py

Original comment by robert.c...@gmail.com on 23 Apr 2010 at 7:03

GoogleCodeExporter commented 9 years ago
latex also needed for make html - Documentation should be updated accordingly.

Original comment by freevryh...@gmail.com on 27 Apr 2010 at 1:47

GoogleCodeExporter commented 9 years ago
Good point! I will update the docs.

Original comment by robert.c...@gmail.com on 27 Apr 2010 at 7:56

GoogleCodeExporter commented 9 years ago
I unpacked http://pypi.python.org/pypi/numpydoc/0.3.1 to /home/nwagner/src
and added

numpydoc_path = '/home/nwagner/src/numpydoc-0.3.1'

to site_cfg.py in /home/nwagner/git/sfepy.

It doesn't work.
make html
LANG=C sphinx-build -b html -d _build/doctrees   . _build/html
/home/nwagner/local/bin/sphinx-build:5: UserWarning: Module pkg_resources was 
already
imported from
/home/nwagner/local/lib64/python2.6/site-packages/setuptools-0.6c9-py2.6.egg/pkg
_resources.py,
but 
/home/nwagner/local/lib64/python2.6/site-packages/distribute-0.6.4-py2.6.egg is
being added to sys.path
  from pkg_resources import load_entry_point
/home/nwagner/local/bin/sphinx-build:5: UserWarning: Module site was already 
imported
from /usr/lib64/python2.6/site.pyc, but
/home/nwagner/local/lib64/python2.6/site-packages/distribute-0.6.4-py2.6.egg is 
being
added to sys.path
  from pkg_resources import load_entry_point
Running Sphinx v1.0

Exception occurred:
  File "/home/nwagner/git/sfepy/script/config.py", line 164, in numpydoc_path
    raise ValueError(msg_numpydoc)
ValueError: could not find numpydoc!
If it is installed in a non-standard location, try setting it in
site_cfg.py manually.
The full traceback has been saved in /tmp/sphinx-err-5MRZJJ.log, if you want to
report the issue to the author.
Please also report this if it was a user error, so that a better error message 
can be
provided next time.
Send reports to sphinx-dev@googlegroups.com. Thanks!
make: *** [html] Fehler 1

Original comment by nils...@googlemail.com on 27 Apr 2010 at 5:28

GoogleCodeExporter commented 9 years ago
Exactly the same steps work for me:

PYTHONPATH=.. sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v0.6.5                                                
loading pickled environment... done                                  
building [html]: targets for 1 source files that are out of date
updating environment: 0 added, 2 changed, 0 removed
reading sources... [100%] terms_overview
looking for now-outdated files... none found
pickling environment... done
...

As you can see, I am running Sphinx v0.6.5 - could this be the problem? I did 
not
know v1.0 already existed.

Also, do you have the latest git version of sfepy? There was some problem in 
2010.1...

Original comment by robert.c...@gmail.com on 28 Apr 2010 at 7:03

GoogleCodeExporter commented 9 years ago
We now use sphinx 1.0.5, so this should be ok.

Original comment by robert.c...@gmail.com on 3 Dec 2010 at 1:19

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/sfepy/sfepy/issues/121

Original comment by robert.c...@gmail.com on 30 Jan 2012 at 10:26

GoogleCodeExporter commented 9 years ago
nils@linux-5fmr:~/git/sfepy/doc> make html
PYTHONPATH=.. sphinx-build -b html -d _build/doctrees   . _build/html
Running Sphinx v1.1.3
WARNING: extension 'ipython_console_highlighting' has no setup() function; is 
it really a Sphinx extension module?

Extension error:
Could not import extension gen_term_table (exception: sfepy extension modules 
are not compiled!
type "make")
make: *** [html] Fehler 1

Any idea ?

Original comment by nils...@googlemail.com on 7 Nov 2013 at 8:22

GoogleCodeExporter commented 9 years ago
You have to build the sfepy extension modules before building the docs - just 
type 'make' in the ~/git/sfepy/.

We have migrated the issues to github, see the link above your comment. Use 
that site for further comments/issues, please.

Original comment by robert.c...@gmail.com on 7 Nov 2013 at 10:24