Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8845915
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T11:50:55+00:00 2026-06-14T11:50:55+00:00

I am trying to link my Sphinx documentation with ReadtheDocs . I can build

  • 0

I am trying to link my Sphinx documentation with ReadtheDocs. I can build the documentation locally but when I try to have ReadtheDocs automatically generate the documentation I get the following error:

Sphinx Standard Error

Making output directory...

Exception occurred:
  File "/var/build/user_builds/mousedb/checkouts/latest/Docs/source/conf.py", line 25, in <module>
    from mousedb import settings
ImportError: No module named mousedb
The full traceback has been saved in /tmp/sphinx-err-n_8fkR.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!

My project name is mousedb. I don’t understand why I get this import error in the auto-build but not locally.

Update

Based on the comments I think that this is an issue for importing my settings file into a sibling Docs directory. Rather than doing an absolute import (as I had been doing) I should be doing a relative import based on the location of settings.py and conf.py.

I want to import my settings file into my conf.py with the following directory structure:

-mousedb
--settings.py
-Docs
--source
---conf.py
--build
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T11:50:56+00:00Added an answer on June 14, 2026 at 11:50 am

    You originally talked about a “local absolute path to my code” and now about setting up relative paths to your code. This probably means you’re not using a setup.py file and also not a virtualenv.

    In the same directory as Docs/ and mousedb/, add a setup.py:

    from setuptools import setup
    
    setup(name='mousedb',
          version='0.1',
          description="My sample package",
          long_description="",
          author='TODO',
          author_email='todo@example.org',
          license='TODO',
          packages=['mousedb'],
          zip_safe=False,
          install_requires=[
              'Django',
              # 'Sphinx',
              # ^^^ Not sure if this is needed on readthedocs.org
              # 'something else?',
              ],
          )
    

    After committing/pushing/whatever this file, you can go to your readthedocs settings for your project. Enable the “use virtualenv” setting. This will “nstall your project inside a virtualenv using setup.py install”.

    The end result is that everything python-related that readthedocs does will have your project in it’s sys.path.

    The probable cause of your problems is that you run sphinx from within your “root” directory on your local system, where python magically finds the mousedb/ package in your current directory. But readthedocs apparently runs it from within the Docs/ directory and thus cannot find mousedb.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to link an executable against libcutils.so, but I get the following
I am trying to link a static library that I created, but I get
I am trying to link a input box with a url given but its
I'm trying to link my XPCOM extension against the 1.9.3a3pre SDK and I get
I'm trying to link two string together recursively, but not getting the expected results:
When trying to link with gccgo on Precise, I get this linking error: matt@matt-1005P:~/src/gopath/src/meme$
Im trying to link up the array[1] to launch an activity but its showing
I'm trying to link to a shared library with a template class, but it
I am trying to link anchors inside jquery tabbed content. I have gotten it
I'm trying to link the Boost Serialization Library to my Code. But it doesn't

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.