Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Question regarding 2 modules installed via 'pip'

47 views
Skip to first unread message

Ferrous Cranus

unread,
Nov 16, 2013, 3:52:24 AM11/16/13
to
Finally i have managed to install 'Python' and 'Python-pip' from rpms from EPEL repository.

That good BUT:

root@secure [~]# pip install pymysql
Downloading/unpacking pymysql
Downloading PyMySQL-0.6.1.tar.gz (51kB): 51kB downloaded
Running setup.py egg_info for package pymysql
Installing collected packages: pymysql
Running setup.py install for pymysql
Successfully installed pymysql
Cleaning up...
root@secure [~]# pip install pygeoip
Downloading/unpacking pygeoip
Downloading pygeoip-0.3.0.tar.gz (97kB): 97kB downloaded
Running setup.py egg_info for package pygeoip
Installing collected packages: pygeoip
Running setup.py install for pygeoip
Successfully installed pygeoip
Cleaning up...
root@secure [~]#
root@secure [~]# pip list py*
distribute (0.6.10)
ethtool (0.6)
iniparse (0.3.1)
iwlib (1.0)
pycurl (7.19.0)
pygeoip (0.3.0)
pygpgme (0.1)
PyMySQL (0.6.1)
urlgrabber (3.9.1)
yum-metadata-parser (1.1.2)
root@secure [~]#

but when is: http://superhost.gr
i get the error you will like 'pymysql' and 'pymysql' are missing
Since they are install how can they be missing?

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

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

The only thing i can think of is that those packages have installed under default python 2.6.6 and not under Python 3.3.2.

Can this be the case here?
And if yes then, how will i e those 2 packages with latest python?

Antoon Pardon

unread,
Nov 16, 2013, 5:41:03 AM11/16/13
to pytho...@python.org
Op 16-11-13 09:52, Ferrous Cranus schreef:
>
> but when is: http://superhost.gr
> i get the error you will like 'pymysql' and 'pymysql' are missing
> Since they are install how can they be missing?
>
> root@secure [~]# which python
> /usr/bin/python
>
> root@secure [~]# which python3
> /usr/bin/python3
> root@secure [~]#
>
> The only thing i can think of is that those packages have installed under default python 2.6.6 and not under Python 3.3.2.
>
> Can this be the case here?

It can be the case. Now think of a way to verify this.

--
Antoon Pardon

Ferrous Cranus

unread,
Nov 16, 2013, 8:10:18 AM11/16/13
to

Perhaps by doing:

locate pymysql
locate pygeoip

or perhaps by using find as follows:
/usr/local/lib/python3.4/site-packages/PyMySQL-0.6.1-py3.4.egg/pymysql
/usr/lib/python2.6/site-packages/pymysql
/var/tmp/pip-build-root/pymysql
/var/tmp/pip-build-root/pymysql/pymysql
/var/tmp/pip-build-root/pymysql/build/lib/pymysql
/tmp/pip-build-root/pymysql
/tmp/pip-build-root/pymysql/pymysql
/tmp/pip-build-root/pymysql/build/lib/pymysql

root@secure [~]# find / -name pygeoip
/usr/lib/python2.6/site-packages/pygeoip
/var/tmp/pip-build-root/pygeoip
/var/tmp/pip-build-root/pygeoip/build/lib/pygeoip
/var/tmp/pip-build-root/pygeoip/pygeoip
/tmp/pip-build-root/pygeoip
/tmp/pip-build-root/pygeoip/build/lib/pygeoip
/tmp/pip-build-root/pygeoip/pygeoip
root@secure [~]#

Ferrous Cranus

unread,
Nov 16, 2013, 8:45:51 AM11/16/13
to
What the difference between locate and find?

and seen find show me some results, what now?

'rm -rf' those files or i will break something?

and then how i'am gonna install those 2 modules for python 3.3.2?

Joel Goldstick

unread,
Nov 16, 2013, 8:53:42 AM11/16/13
to Ferrous Cranus, pytho...@python.org
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
not related to python
> --
> https://mail.python.org/mailman/listinfo/python-list



--
Joel Goldstick
http://joelgoldstick.com

Ned Batchelder

unread,
Nov 16, 2013, 8:54:26 AM11/16/13
to
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
For locate vs find, you should find a Unix tutorial online, there are many, and will be a better resource than us. Please keep in mind that some of your questions are about how to operate Unix, which is off-topic for this list.

Just as you use "which python" to figure out what "python" was executing, "which pip" will help you figure out what "pip" is running.

--Ned.

Roy Smith

unread,
Nov 16, 2013, 9:25:39 AM11/16/13
to
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
In article <cfd71610-1e34-4fec...@googlegroups.com>,
Ned Batchelder <n...@nedbatchelder.com> wrote:

> Just as you use "which python" to figure out what "python" was executing,
> "which pip" will help you figure out what "pip" is running.

And along those lines, if you're unsure where you're importing a module
from, you can examine the __file__ attribute to find out:

>>> import requests
>>> requests.__file__
'/home/songza/deploy/rel-2013-11-14d/python/local/lib/python2.7/site-pack
ages/requests/__init__.pyc'

Νίκος

unread,
Nov 16, 2013, 8:59:13 AM11/16/13
to Joel Goldstick, pytho...@python.org
HELP MEEEEE!!!!
Στις 16/11/2013 3:53 μμ, ο/η Joel Goldstick έγραψε:
> not related to python
>
> On Sat, Nov 16, 2013 at 8:10 AM, Ferrous Cranus <nikos...@gmail.com> wrote:
>> --
>> https://mail.python.org/mailman/listinfo/python-list
>
>
>
> --
> WebHost <http://superhost.gr>

Robert Kern

unread,
Nov 16, 2013, 10:01:15 AM11/16/13
to pytho...@python.org
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
On 2013-11-16 13:59, Νίκος wrote:
> HELP MEEEEE!!!!

The kind people at http://serverfault.com/ can help you with your system
administration problems. I'm afraid that we cannot.

--
Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it had
an underlying truth."
-- Umberto Eco

Ned Batchelder

unread,
Nov 16, 2013, 10:04:41 AM11/16/13
to
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
On Saturday, November 16, 2013 8:59:13 AM UTC-5, Ferrous Cranus wrote:
> HELP MEEEEE!!!!
> Στις 16/11/2013 3:53 μμ, ο/η Joel Goldstick έγραψε:
> > not related to python
> >

Nikos, stop this. You are sending repeated emails with no new information, and no evidence that you have tried anything, about off-topic questions. This will only annoy people on the list.

--Ned.

Ferrous Cranus

unread,
Nov 16, 2013, 10:11:15 AM11/16/13
to
My first post had information within it.
Alo i have managed to utilize EPEL repository and install python33 and python-pip using it without ZERO help from you.

Now i cant overcome the moules obstacle although i ave installed it like

pip install pymysql
pip install pygeoip

Why cant i use it?

How can i unistall it and install it properly?
If you know and wont tell me but instead you devote time to make ironic comments against me i will re-post the exact same question each time.

Ferrous Cranus

unread,
Nov 16, 2013, 10:13:14 AM11/16/13
to
Τη Σάββατο, 16 Νοεμβρίου 2013 5:01:15 μ.μ. UTC+2, ο χρήστης Robert Kern έγραψε:
> On 2013-11-16 13:59, Νίκος wrote:
>
> > HELP MEEEEE!!!!
>
>
>
> The kind people at http://serverfault.com/ can help you with your system
>
> administration problems. I'm afraid that we cannot.
>
>
>
> --
>
> Robert Kern
>

Robert i have followed your advise and akse there the other time for why yum cannot detect python and pip and what i should do.

i received no reply 2-3 days now.
I will nto ask there again.

Ferrous Cranus

unread,
Nov 16, 2013, 10:15:01 AM11/16/13
to
Also there are leftovers form python3.4a

Iam thinking fo deleting those as:

'locate pythοn3.4 | rm -rf'

will this help or do any accidental damage?

Chris Angelico

unread,
Nov 16, 2013, 10:19:21 AM11/16/13
to pytho...@python.org
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
On Sun, Nov 17, 2013 at 2:11 AM, Ferrous Cranus <nikos...@gmail.com> wrote:
> If you know and wont tell me but instead you devote time to make ironic comments against me i will re-post the exact same question each time.

Then you will quickly get killfiled by more and more people, and in
the process will be working hard to destroy this group.

Your questions are NOT PYTHON QUESTIONS and they should be taken
elsewhere. You have been advised of this. Go, confront the problem.
Fight! Win!

ChrisA
not finishing the quote from Edna Mode as it's applicable only that far

Mark Lawrence

unread,
Nov 16, 2013, 10:20:51 AM11/16/13
to pytho...@python.org
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
On 16/11/2013 13:45, Ferrous Cranus wrote:
> What the difference between locate and find?

I neither know nor care as it's not Python related.

>
> and seen find show me some results, what now?
>
> 'rm -rf' those files or i will break something?

Ditto.

>
> and then how i'am gonna install those 2 modules for python 3.3.2?
>

I assume you can navigate to the Python 3.3.2 directory where pip is
installed and run it from there.

--
Python is the second best programming language in the world.
But the best has yet to be invented. Christian Tismer

Mark Lawrence

Ferrous Cranus

unread,
Nov 16, 2013, 10:32:36 AM11/16/13
to
Τη Σάββατο, 16 Νοεμβρίου 2013 5:20:51 μ.μ. UTC+2, ο χρήστης Mark Lawrence έγραψε:
> On 16/11/2013 13:45, Ferrous Cranus wrote:
>
> > What the difference between locate and find?
>
>
>
> I neither know nor care as it's not Python related.
>
>
>
> >
>
> > and seen find show me some results, what now?
>
> >
>
> > 'rm -rf' those files or i will break something?

> Ditto.
Doe 'ditto' mean 'yes'?
Here si what i ahve tried:

root@secure [~]# locate *python3.4*
/root/.local/lib/python3.4
/usr/local/include/python3.4m
/usr/local/lib/libpython3.4m.a
/usr/local/lib/python3.4
/usr/local/share/man/man1/python3.4.1

root@secure [~]# locate *python3.4* | rm -rf

root@secure [~]# locate *python3.4*
/root/.local/lib/python3.4
/usr/local/include/python3.4m
/usr/local/lib/libpython3.4m.a
/usr/local/lib/python3.4
/usr/local/share/man/man1/python3.4.1

root@secure [~]# find / -name *python3.4* | rm -rf

root@secure [~]# locate python3.4
/root/.local/lib/python3.4
/usr/local/include/python3.4m
/usr/local/lib/libpython3.4m.a
/usr/local/lib/python3.4
/usr/local/share/man/man1/python3.4.1

many files of python's 3.4a have been deleted this way, but the aboe displayed persist.

> > and then how i'am gonna install those 2 modules for python 3.3.2?

> I assume you can navigate to the Python 3.3.2 directory where pip is
> installed and run it from there.

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

root@secure [~]# cd /usr/bin/python3
-bash: cd: /usr/bin/python3: Not a directory

It seems that i cannot even cd into this folder, wtf....

Ferrous Cranus

unread,
Nov 16, 2013, 10:33:55 AM11/16/13
to
Τη Σάββατο, 16 Νοεμβρίου 2013 5:19:21 μ.μ. UTC+2, ο χρήστης Chris Angelico έγραψε:
> On Sun, Nov 17, 2013 at 2:11 AM, Ferrous Cranus <nikos...@gmail.com> wrote:
>
> > If you know and wont tell me but instead you devote time to make ironic comments against me i will re-post the exact same question each time.
>
>
>
> Then you will quickly get killfiled by more and more people, and in
>
> the process will be working hard to destroy this group.
>
>
>
> Your questions are NOT PYTHON QUESTIONS and they should be taken
>
> elsewhere. You have been advised of this. Go, confront the problem.
>
> Fight! Win!

I have no intention to destroy this fine group, all i need is some imple help.
Please just help me solve this since you are see me trying and not just make unhelpful remarks.

Ferrous Cranus

unread,
Nov 16, 2013, 10:43:21 AM11/16/13
to

> Just as you use "which python" to figure out what "python" was executing, >"which pip" will help you figure out what "pip" is running.

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

root@secure [~]# cd /usr/bin/python3
-bash: cd: /usr/bin/python3: Not a directory

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

root@secure [~]# cd /usr/bin/pip
-bash: cd: /usr/bin/pip: Not a directory

WHAT THE FUCK IS GOING ON WITH THIS DAMN CentOS 6.4?

WHY CANT I JUST CD INTO HESE DAMN FOLDERS?

Andreas Perstinger

unread,
Nov 16, 2013, 10:43:22 AM11/16/13
to pytho...@python.org
Why this is marked as abuse? It has been marked as abuse.
Report not abuse
On 16.11.2013 16:13, Ferrous Cranus wrote:
> Τη Σάββατο, 16 Νοεμβρίου 2013 5:01:15 μ.μ. UTC+2, ο χρήστης Robert
> Kern έγραψε:
>> The kind people at http://serverfault.com/ can help you with your
>> system administration problems. I'm afraid that we cannot.
>
> Robert i have followed your advise and akse there the other time for
> why yum cannot detect python and pip and what i should do.
>
> i received no reply 2-3 days now.
> I will nto ask there again.

The only question I've found from you on serverfault

http://serverfault.com/questions/555054/python-pip-installation-under-centos-6-4

was answered within one hour (you asked at 2013-11-14 17:27:33Z,
"yoonix" answered at 2013-11-14 18:19:54Z). But since he didn't spoonfed
you, no wonder that you ignore that answer.

Bye, Andreas

Johannes Findeisen

unread,
Nov 16, 2013, 10:45:38 AM11/16/13
to pytho...@python.org
Nikos, please stop now! We can not teach you in Unix/Linux basics here.
You really have to learn a lot. You are missing tons of basics so it
makes no sense to help you here because you need to learn a lot before
you can understand answers to this!

BTW, /usr/bin/python3 is a file and not a directory! This is what the
error message says!

You are really destroying this list! Go to other places like
stackoverflow and ask your questions there. You are mixing a lot of
topics and this is not helpful to others!

Johannes

Ned Batchelder

unread,
Nov 16, 2013, 10:56:47 AM11/16/13
to
On Saturday, November 16, 2013 10:45:38 AM UTC-5, Johannes Findeisen wrote:
> On Sat, 16 Nov 2013 07:32:36 -0800 (PST)
> Ferrous Cranus wrote:
>
> > Τη Σάββατο, 16 Νοεμβρίου 2013 5:20:51 μ.μ. UTC+2, ο χρήστης Mark Lawrence έγραψε:
> > > On 16/11/2013 13:45, Ferrous Cranus wrote:
>
> > root@secure [~]# cd /usr/bin/python3
> > -bash: cd: /usr/bin/python3: Not a directory
> >
> > It seems that i cannot even cd into this folder, wtf....
>
> Nikos, please stop now! We can not teach you in Unix/Linux basics here.
> You really have to learn a lot. You are missing tons of basics so it
> makes no sense to help you here because you need to learn a lot before
> you can understand answers to this!
>
> BTW, /usr/bin/python3 is a file and not a directory! This is what the
> error message says!

Johannes, in cases like this, it is very important to have a clear message. I liked that you said, "We cannot teach you Unix basics here". It weakens that message if you then teach some Unix basics. Better to keep things very simple.

Unix questions are off-topic, and will not be answered in this forum. Do not answer them.

--Ned.

>
> Johannes

Johannes Findeisen

unread,
Nov 16, 2013, 11:06:21 AM11/16/13
to pytho...@python.org
On Sat, 16 Nov 2013 07:56:47 -0800 (PST)
Ned Batchelder wrote:
> Johannes, in cases like this, it is very important to have a clear message. I liked that you said, "We cannot teach you Unix basics here". It weakens that message if you then teach some Unix basics. Better to keep things very simple.
>
> Unix questions are off-topic, and will not be answered in this forum. Do not answer them.

Hi Ned,

You are totally right, I agree with you! Thanks for your reply! I will
not do that anymore.

Johannes

YBM

unread,
Nov 16, 2013, 11:48:19 AM11/16/13
to
Le 16.11.2013 16:32, Ferrous Cranus a écrit :
> root@secure [~]# locate python3.4
> /root/.local/lib/python3.4
> /usr/local/include/python3.4m
> /usr/local/lib/libpython3.4m.a
> /usr/local/lib/python3.4
> /usr/local/share/man/man1/python3.4.1
>
> many files of python's 3.4a have been deleted this way, but the aboe displayed persist.

I doubt it, find ... | rm ... does absolutely nothing as you'd have
figured out by yourself if you had a brain.

>>> and then how i'am gonna install those 2 modules for python 3.3.2?
>
>> I assume you can navigate to the Python 3.3.2 directory where pip is
>> installed and run it from there.
>
> root@secure [~]# which python3
> /usr/bin/python3
>
> root@secure [~]# cd /usr/bin/python3
> -bash: cd: /usr/bin/python3: Not a directory
>
> It seems that i cannot even cd into this folder, wtf....
>

Perhaps because this is not a folder. Learn to read.


YBM

unread,
Nov 16, 2013, 11:49:17 AM11/16/13
to
What don't you understand in what bash told you with
"Not a directory" ?


Ned Batchelder

unread,
Nov 16, 2013, 11:51:33 AM11/16/13
to
Nikos is being annoying, but there is no need to contribute to the thread just to insult him. It doesn't make the thread stop, it doesn't make the list a better community, and it doesn't work to improve Nikos' behavior.

http://www.python.org/psf/codeofconduct/

--Ned.

Mark Lawrence

unread,
Nov 16, 2013, 12:02:52 PM11/16/13
to pytho...@python.org
For the record has anybody ever pointed Nikos at the code of conduct?
If yes good. If no why not, and why then point it out to someone who to
my knowledge has never posted here before?

Robert Kern

unread,
Nov 16, 2013, 12:19:46 PM11/16/13
to pytho...@python.org
On 2013-11-16 17:02, Mark Lawrence wrote:
> On 16/11/2013 16:51, Ned Batchelder wrote:
> For the record has anybody ever pointed Nikos at the code of conduct? If yes
> good.

I believe so, but I can't summon the will to search for it.

> If no why not, and why then point it out to someone who to my knowledge
> has never posted here before?

Being presented with the community's code of conduct is not a punishment for bad
behavior. Newcomers are the *primary* audience for the code of conduct. I'm old
enough to remember moderated listservs (as was the fashion at the time) that
would automatically reply to each new poster with the listserv's charter and
expected rules of netiquette (which is what we called it in those halcyon days).

mm0fmf

unread,
Nov 16, 2013, 2:35:52 PM11/16/13
to
On 16/11/2013 15:33, Ferrous Cranus wrote:
> I have no intention to destroy this fine group, all i need is some imple help.

But you are destroying it.

You don't read the help given, you don't know the basic Linux commands,
you can't use Google, you insist on using profanities to gain attention,
you scream and shout for help, you dismiss good advice when you don't
know better, you go against the code of conduct for the group.

This group had the best signal to noise ratio of any unmoderated group
I've seen in the last 15 years. It's full of genuine helpful people with
useful replies. I've learnt a lot from reading those replies.

I was fascinated watching the car crash of Nikos development at first.
I'm still not sure if anyone could really be both so arrogant and
completely inept and clueless at the same time. I have a nagging doubt
that Nikos is a troll inflicted on us by someone who doesn't like Python
and not a person.

I should have done this a long time ago... Nikos, welcome to my
killfile. *Plonk* (It's *plonk* *plonk* due to the various identities
being used.)

And yes, I've made comments about Nikos in the threads when I should
have known better. Killfiling him will remove any temptation to do so in
future.

Andy




Denis McMahon

unread,
Nov 16, 2013, 8:07:16 PM11/16/13
to
He doesn't understand error messages until he's posted them on usenet and
had them explained to him.

I think his default state of mind is "I'm perfect, therefore I can't have
made a mistake, so the software must be broken."

Then he posts the error messages here and we all laugh at his ineptitude.

I would answer his question, but I foreswore helping him days ago now,
you just get too much abuse because (in his opinion) your answer includes
excessive whitespace.

--
Denis McMahon, denismf...@gmail.com

Dave Angel

unread,
Nov 16, 2013, 10:33:56 PM11/16/13
to pytho...@python.org
On Sat, 16 Nov 2013 07:15:01 -0800 (PST), Ferrous Cranus
<nikos...@gmail.com> wrote:
> 'locate pythοn3.4 | rm -rf'




> will this help or do any accidental damage?

The files deleted by the rm -rf have nothing to do with the results
of locate. Since you don't understand that , your system is at high
risk till you learn the use of whichever shell you're using.

Come back to python when you understand bash (or whatever shell
you're using).

--
DaveA

Steven D'Aprano

unread,
Nov 17, 2013, 12:52:03 AM11/17/13
to
On Sat, 16 Nov 2013 15:59:13 +0200, Νίκος wrote:

> HELP MEEEEE!!!!

How rude. You're not the centre of the universe and we're not your mother.

*plonk*



--
Steven

Nikos

unread,
Nov 17, 2013, 4:04:00 AM11/17/13
to
Στις 16/11/2013 6:48 μμ, ο/η YBM έγραψε:
>
> I doubt it, find ... | rm ... does absolutely nothing as you'd have
> figured out by yourself if you had a brain.




Βut 'find / -name python34 | xargs rm -rf' does what i want.
0 new messages