Results 1 to 3 of 3

Thread: How can I solve this problem with Python?

  1. #1

    Default How can I solve this problem with Python?

    After installation of Ninja IDE for development Python applications I type this in prompt

    Code:
    sudo ninja-ide
    But I get this error

    Traceback (most recent call last):
    File "/usr/bin/ninja-ide", line 5, in <module>
    from pkg_resources import load_entry_point
    ImportError: No module named pkg_resources
    I was looking for any solution on internet but I didn't found any solution.

    Can someone help me please?

    (Sorry for my bad English)

  2. #2
    Join Date
    May 2012
    Location
    Finland
    Posts
    2,004

    Default Re: How can I solve this problem with Python?

    What does: python -V say?

    Try installing python-setuptools if you use python 2.7, or python3-setuptools if you use python3. Alternatively install the python or python3 devel package.

    Also do you have a specific need to run it with sudo? ninja-ide should be run as your normal user.
    .: miuku #suse @ irc.freenode.net
    :: miuku@opensuse.org

    .: h​ttps://download.opensuse.org/repositories/home:/Miuku/

  3. #3

    Default Re: How can I solve this problem with Python?

    Quote Originally Posted by Miuku View Post
    What does: python -V say?

    Try installing python-setuptools if you use python 2.7, or python3-setuptools if you use python3. Alternatively install the python or python3 devel package.

    Also do you have a specific need to run it with sudo? ninja-ide should be run as your normal user.
    Exactly the problem it was I haven't install python-setuptools (my Python version is 2.7.8). Thanks to your help I can solve my problem. Thank you Miuku!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •