Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sphinx docs won't build (related to lazyimports?) #102

Closed
arokem opened this issue Jun 7, 2012 · 6 comments
Closed

sphinx docs won't build (related to lazyimports?) #102

arokem opened this issue Jun 7, 2012 · 6 comments

Comments

@arokem
Copy link
Member

arokem commented Jun 7, 2012

Running Sphinx v1.1.2
/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/matplotlib/init.py:908: UserWarning: This call to matplotlib.use() has no effect
because the the backend has already been chosen;
matplotlib.use() must be called before pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.

if warn: warnings.warn(_use_error_msg)
WARNING: extension 'ipython_console_highlighting' has no setup() function; is it really a Sphinx extension module?
loading pickled environment... not yet created
building [html]: targets for 71 source files that are out of date
updating environment: 71 added, 0 changed, 0 removed
/Users/arokem/projects/nitime/doc/sphinxext/docscrape.py:117: UserWarning: Unknown section Note
warn("Unknown section %s" % key)
/Users/arokem/projects/nitime/doc/sphinxext/docscrape.py:117: UserWarning: Unknown section Warning
warn("Unknown section %s" % key)
/Users/arokem/projects/nitime/doc/sphinxext/docscrape.py:117: UserWarning: Unknown section Example
warn("Unknown section %s" % key)
reading sources... [ 29%] api/generated/nitime.lazyimports
Exception occurred:
File "/Library/Frameworks/EPD64.framework/Versions/7.2/lib/python2.7/site-packages/sphinx/environment.py", line 828, in read_doc
pickle.dump(doctree, f, pickle.HIGHEST_PROTOCOL)
PicklingError: Can't pickle <type 'module'>: attribute lookup builtin.module failed
The full traceback has been saved in /var/folders/sf/3b6q6p1d7518rpb4882pzsxw0000gn/T/sphinx-err-9UpBlB.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.
Either send bugs to the mailing list at http://groups.google.com/group/sphinx-dev/,
or report them in the tracker at http://bitbucket.org/birkenfeld/sphinx/issues/. Thanks!
make: *** [htmlonly] Error 1

@ivanov
Copy link
Member

ivanov commented Jun 7, 2012

i'm looking into this right now, but need to update my sphinx first... stay tuned

@arokem
Copy link
Member Author

arokem commented Jun 7, 2012

Great. I have also started taking a look at this myself, but sphinx is
hard to figure out.

Here's one possible direction:

arokem@4be2fce

What do you think?

I am heading for the train, so I will be offline for about 1.5 hours,
but will be back to this afterwards.

On Wed, Jun 6, 2012 at 7:01 PM, Paul Ivanov
reply@reply.github.com
wrote:

i'm looking into this right now, but need to update my sphinx first... stay tuned


Reply to this email directly or view it on GitHub:
#102 (comment)

@ivanov
Copy link
Member

ivanov commented Jun 7, 2012

argh, i'm having trouble with a different sphinx error that's preventing me frfom getting to the one you're seeing.


reading sources... [ 12%] api/generated/nitime.analysis                        
Exception occurred:
  File "/home/foo/code/nitime/doc/sphinxext/inheritance_diagram.py", line 76, in __init__
    raise ValueError("No classes found for inheritance diagram")
ValueError: No classes found for inheritance diagram

@arokem
Copy link
Member Author

arokem commented Jun 7, 2012

Interesting. I saw that one when I set the debugging flag thingee to
false. That gives you the lambda, but I think this issue has to do
with a lambda not being a class, which is why the inheritance diagram
thing comes up.

Ariel

••••••••••••••••••••••••••
Sent from my mobile

On Jun 6, 2012, at 7:53 PM, Paul Ivanov
reply@reply.github.com
wrote:

argh, i'm having trouble with a different sphinx error that's preventing me frfom getting to the one you're seeing.


reading sources... [ 12%] api/generated/nitime.analysis
Exception occurred:
 File "/home/foo/code/nitime/doc/sphinxext/inheritance_diagram.py", line 76, in __init__
   raise ValueError("No classes found for inheritance diagram")
ValueError: No classes found for inheritance diagram

Reply to this email directly or view it on GitHub:
#102 (comment)

@arokem
Copy link
Member Author

arokem commented Jun 7, 2012

Oh wait, you're seeing this for other modules as well. No clue what that is

Ariel

••••••••••••••••••••••••••
Sent from my mobile

On Jun 6, 2012, at 7:53 PM, Paul Ivanov
reply@reply.github.com
wrote:

argh, i'm having trouble with a different sphinx error that's preventing me frfom getting to the one you're seeing.


reading sources... [ 12%] api/generated/nitime.analysis
Exception occurred:
 File "/home/foo/code/nitime/doc/sphinxext/inheritance_diagram.py", line 76, in __init__
   raise ValueError("No classes found for inheritance diagram")
ValueError: No classes found for inheritance diagram

Reply to this email directly or view it on GitHub:
#102 (comment)

@ivanov
Copy link
Member

ivanov commented Jun 7, 2012

if your proposed commit fixes the issue, it should work to just make that LazyImport replacement function pickleable using something like this ivanov/nitime@3ad77b9 which you can pull from my lazy-sphinx-issue branch

ivanov added a commit to ivanov/nitime that referenced this issue Jun 7, 2012
@ivanov ivanov closed this as completed in d7b7226 Jun 7, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants