Opened 6 years ago

Closed 6 years ago

#786 closed defect (duplicate)

Installation of xapian-binding for python3 fails.

Reported by: Gaurav Arora Owned by: Olly Betts
Priority: normal Milestone:
Component: Xapian-bindings (Python) Version:
Severity: normal Keywords:
Cc: Blocked By:
Blocking: Operating System: All

Description (last modified by Gaurav Arora)

It seems like in configuration we check if sphinx.main function is present whereas sphinx doesn't have

sphinx.main for python3

Which seems to be failing the installation.

I checked while installing it on MacOS.

Need to reproduce for different system if it's a real issue. I was just helping someone install xapian so not sure if this is something they did wrong.


Last login: Sat May 18 10:06:40 2019 from 10.13.111.9
ubuntu@automatic-fact-verification:~$ python3
Python 3.6.7 (default, Oct 22 2018, 11:32:17)
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sphinx
>>> sphinx.main
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'sphinx' has no attribute 'main'
>>>

Change History (6)

comment:1 by Gaurav Arora, 6 years ago

Description: modified (diff)

comment:2 by Gaurav Arora, 6 years ago

Component: OtherXapian-bindings (Python)
Owner: changed from Olly Betts to Richard Boulton

comment:3 by Gaurav Arora, 6 years ago

Owner: changed from Richard Boulton to Olly Betts

comment:4 by Gaurav Arora, 6 years ago

Seems like make is failing after that. Must be a issue with laptop.

comment:5 by James Aylett, 6 years ago

I believe that the problem is that recent versions of sphinx have a different API, and we were relying perhaps on something a little too internal. Short term we could probably lock to an earlier version of sphinx, but it might be easier to figure out how to invoke it properly with more recent versions. (We'd then need to consider what the packaged versions are and whether we'd have to support both.)

comment:6 by Olly Betts, 6 years ago

Resolution: duplicate
Status: newclosed

Thanks for reporting, but this was actually already reported as #778. Closing this as a duplicate.

Note: See TracTickets for help on using tickets.