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 7077521
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T06:26:01+00:00 2026-05-28T06:26:01+00:00

I am already in my virtualenv, and I am sure everything is on the

  • 0

I am already in my virtualenv, and I am sure everything is on the python path.

(myenv)admin@ubuntu:/var/lib/mydirectory/doc$ sphinx-apidoc -o . ../testproject/

Creating file ./testproject.rst.
Creating file ./testproject.apps.rst.
# ... and many more .... #
Creating file ./modules.rst.

(myenv)admin@ubuntu:/var/lib/mydirectory/doc$ make html
sphinx-build -b html -d _build/doctrees   . _build/html
Making output directory...
Running Sphinx v1.1.2
loading pickled environment... not yet created
building [html]: targets for 17 source files that are out of date
updating environment: 17 added, 0 changed, 0 removed

Traceback (most recent call last):t                                                                                  
  File "/var/lib/server/myenv/lib/python2.6/site-packages/sphinx/ext/autodoc.py", line 321, in import_object
    __import__(self.modname)
ImportError: No module named webclient.__init__
# ... and many more .... #

/var/lib/mydirectory/doc/testproject.rst:7: WARNING: autodoc can't import/find module 'testproject.__init__', it reported error: "No module named testproject.__init__", please check your spelling and sys.path
# ... and many more .... #

When I open the html files, I only see headlines and section titles. No autodocs.

What is causing this problem? I am already on my virtual environment…

Any idea? I am using Sphinx 1.1.2.

Thanks.

  • 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-05-28T06:26:02+00:00Added an answer on May 28, 2026 at 6:26 am

    I am not an expert in Sphinx. But the answer is pretty clear IMHO.

    First, the error messages show you that the modules are not importable. This means import statements in some of the .py files are wrong.

    Possible causes:

    1. Legacy import statements
    2. Inproper import statements
      • level-depth import
      • typo
    3. Modules not on the working python path

    2.b is of particular interest. If you are in myapp/mysubapp/models.py, and you want to import myapp/views.py you need to provide the following statement:

    # myapp/mysubapp/models.py
    import mysite.myapp.view         # correct
    import myapp.view                # incorrect
    

    Check each of the WARNING message, and look at each of the corresponding .py file. Find the corresponding import statement, and double check the availability.

    Now back to the virtualenv problem. It seems to me your virtualenv might be a major cause as well. Just look at the first error:

    ImportError: No module named webclient.__init__
    

    This is a damn problem. Double check that your path variables have been setup correctly.

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

Sidebar

Related Questions

Already looked for a solution but nothing seems to be helpfull, I'm doing everything
I'm writing a Python-based shell script to boilerplate a Django app with virtualenv, pip,
When I installed Python's setuptools I absent mindedly tacked on a --prefix path I
I've already been using pip and virtualenv (and actually sometimes still prefer a well
The documentation says that if I already have virtualenv installed, then pip is available
I'm using the most recent versions of all software (Django, Python, virtualenv, MySQLdb) and
I install virtualenv with command sudo /usr/bin/pip-2.6 install virtualenv And it says Requirement already
I've installed python-virtualenv and python-virtualenvwrapper, and created a virtual environment by using mkvirtualenv NAME,
I am installing an egg packaged for pip, inside my virtualenv, under Python 2.7.2.
Already finished implementing the player. I want to implement the progress bar. But I

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.