sphinx-quickstart not found, how to fix it


I am trying to run sphinx-quickstart from within PyCharm. But I get the following error. If I run the command on the bash command line it is found as /usr/bin/sphinx-quickstart. I installed PyCharm under /opt.

Does anybody have a suggestion for me how I can fix this?

/usr/bin/python2.7 /opt/pycharm-4.5/helpers/pycharm/pycharm_load_entry_point.py
Traceback (most recent call last):
  File "/opt/pycharm-4.5/helpers/pycharm/pycharm_load_entry_point.py", line 8, in <module>
    load_entry_point(dist, "console_scripts", name)()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 546, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 2665, in load_entry_point
    raise ImportError("Entry point %r not found" % ((group, name),))
ImportError: Entry point ('console_scripts', 'sphinx-quickstart') not found

Process finished with exit code 1
Comment actions Permalink
It looks like you are using your system Python, and that you installed sphinx using your system pip. As a suggestion, make a virtual environment for your Python project, tell PyCharm to use that virtual Python for that project, and install Sphinx into that virtual environment.
Comment actions Permalink
Hello Paul,

Thanks for your feedback.

Actually I am using the Sphinx which is installed with the system RPMs. My PyCharm is running on openSUSE 13.1.

Those are the package and the path to Sphinx.

srv:~> rpm -qa|grep -i sphinx
srv:~> :~> which sphinx-quickstart
srv:~> which sphinx-quickstart

My expectation is that PyCharm would be able to use the installed Python and the installed Sphinx as they are both in the standard paths.

I will try your suggestion with virtual environment but actually I am was hoping that PyCharm could be configured to use the correct path of the installed system.

Please sign in to leave a comment.