top button
Flag Notify
    Connect to us
      Facebook Login
      Site Registration Why to Join

Facebook Login
Site Registration
Print Preview

Running Python command - Error on Fedora

0 votes
50 views

Fedora 18

Where do I find the setuptools module ? For error below

$python setup.py install

Traceback (most recent call last):
 File "setup.py", line 2, in 
 from setuptools import setup, find_packages
ImportError: No module named setuptools

Below is the setup.py

#!/usr/bin/env python
from setuptools import setup, find_packages

setup(name="python-instagram",
 version="0.8.0",
 description="Instagram API client",
 license="MIT",
 install_requires=["simplejson","httplib2"],
 author="Instagram, Inc",
 author_email="apidevelopers@instagram.com",
 url="http://github.com/Instagram/python-instagram",
 packages = find_packages(),
 keywords= "instagram",
 zip_safe = True)
posted May 14, 2013 by anonymous

Share this question
Facebook Share Button Twitter Share Button Google+ Share Button LinkedIn Share Button Multiple Social Share Button

1 Answer

0 votes

It is python-setuptools.

answer May 14, 2013 by anonymous
Similar Questions
+3 votes

Here is what I have tried:

root@secure [~]# which python3
/usr/bin/python3

root@secure [~]# which pip
/usr/bin/pip

root@secure [~]# yum install pip3
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.secrel.com.br
 * epel: mirror.imt-systems.com
 * extras: centos.secrel.com.br
 * remi: mirror5.layerjet.com
 * updates: mirrors.ucr.ac.cr
Setting up Install Process
No package pip3 available.
Error: Nothing to do
+1 vote

I'm using Python 2.7 under Windows and am trying to run a command line program and process the programs output as it is running. A number of web searches have indicated that the following code would work.

import subprocess

p = subprocess.Popen("D:PythonPython27Scriptspip.exe list -o",
 stdout=subprocess.PIPE,
 stderr=subprocess.STDOUT,
 bufsize=1,
 universal_newlines=True,
 shell=False)
for line in p.stdout:
 print line

When I use this code I can see that the Popen works, any code between the Popen and the for will run straight away, but as soon as it gets to the for and tries to read p.stdout the code blocks until the command
line program completes, then all of the lines are returned. Does anyone know how to get the results of the program without it blocking?

0 votes

I need to run xmlrpc Server under Python 3.3 and Client under Python 2.7. But when I try to do so, I receive the following exception:

":global name 'xmlrpclib' is not defined"

What is the reason for such an exception. As far as I understand xmlrpc is language independent.

+1 vote

I have been having this weird problem; everytime I there is a selinux-policy update, I get the following error:

 libsepol.print_missing_requirements: hotplug's global requirements  were not met: bool init_systemd (No such file or directory).
 libsemanage.semanage_link_sandbox: Link packages failed (No such file or directory).
 semodule: Failed!

FWIW, this machine was updated from F17 to F19 with yum. I tried searching for the error above, but could not make sense of what I found.


Useful Links with Similar Problem
Contact Us
+91 9880187415
sales@queryhome.net
support@queryhome.net
#470/147, 3rd Floor, 5th Main,
HSR Layout Sector 7,
Bangalore - 560102,
Karnataka INDIA.
QUERY HOME
...