comp.lang.python - 26 new messages in 9 topics - digest
comp.lang.python
http://groups.google.com/group/comp.lang.python?hl=en
comp.lang.python@googlegroups.com
Today's topics:
* Oh look, another language (ceylon) - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/aca311b925493f87?hl=en
* To whoever hacked into my Database - 4 messages, 4 authors
http://groups.google.com/group/comp.lang.python/t/1459c9bdf9ab0ada?hl=en
* Packing byte fields and an array object into struct - 3 messages, 2 authors
http://groups.google.com/group/comp.lang.python/t/5db6286e79bc4516?hl=en
* Trying tcompile an use the Python 3.4a - 8 messages, 4 authors
http://groups.google.com/group/comp.lang.python/t/d6eb7f05008cbf25?hl=en
* Most discussion on comp.lang.python is about developing with Python - 4
messages, 4 authors
http://groups.google.com/group/comp.lang.python/t/0d22dd5dd221dc6d?hl=en
* python 2.7.x on MacOSX: failed dlopen() on .so's - 3 messages, 2 authors
http://groups.google.com/group/comp.lang.python/t/f7c6dbd1573a9577?hl=en
* PyMyth: Global variables are evil... WRONG! - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/40e017ec6b97306c?hl=en
* Setting up for python django development with Debian Linux - 1 messages, 1
author
http://groups.google.com/group/comp.lang.python/t/7e4d737908cfde26?hl=en
* chroot to install packages - 1 messages, 1 author
http://groups.google.com/group/comp.lang.python/t/1345991c432a5e96?hl=en
==============================================================================
TOPIC: Oh look, another language (ceylon)
http://groups.google.com/group/comp.lang.python/t/aca311b925493f87?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, Nov 13 2013 11:33 am
From: Neal Becker
http://ceylon-lang.org/documentation/1.0/introduction/
==============================================================================
TOPIC: To whoever hacked into my Database
http://groups.google.com/group/comp.lang.python/t/1459c9bdf9ab0ada?hl=en
==============================================================================
== 1 of 4 ==
Date: Wed, Nov 13 2013 11:36 am
From: Oscar Benjamin
On Nov 13, 2013 6:31 PM, "superchromix" <markb77@gmail.com> wrote:
>
> I've been thinking about learning Python for scientific programming.. but
all of these flame war type posts make the user community look pretty lame.
How did all of these nice packages get written when most of the user
interaction is .... this??
This isn't usually what happens on this list. Most people on this list
(myself included) are ignoring or at least not contributing to these
particular threads.
>
> Can anyone tell me, is there another newsgroup where the discussion is
more on python programming?
For a beginner I would certainly recommend the python-tutor list. I've
never seen a flame war there. Threads tend to stay on-topic and are usually
helpful to the OP. The tutor list is for generic python problems but you
can usually get help for simple scientific programming problems.
https://mail.python.org/mailman/listinfo/tutor
Oscar
== 2 of 4 ==
Date: Wed, Nov 13 2013 12:11 pm
From: William Ray Wing
On Nov 13, 2013, at 1:27 PM, superchromix <markb77@gmail.com> wrote:
>
>
> hi all,
>
> I've been thinking about learning Python for scientific programming.. but all of these flame war type posts make the user community look pretty lame. How did all of these nice packages get written when most of the user interaction is .... this??
>
> Can anyone tell me, is there another newsgroup where the discussion is more on python programming?
>
> thanks
> --
> https://mail.python.org/mailman/listinfo/python-list
I'd like to add one final thought to the note about joining the python-tutor list.
For scientific programming you are almost certainly going to want to learn about scipy, numpy and matplotlib.
These specialized libraries have dedicated discussion groups, which can be found at: <numpy-discussion@scipy.org>, and <matplotlib-users@lists.sourceforge.net>
I'd recommend looking over the material at
http://www.scipy.org
Welcome to the community.
-Bill
== 3 of 4 ==
Date: Wed, Nov 13 2013 1:46 pm
From: Ferrous Cranus
root@secure:~/lib64# ls -al | grep libkey
lrwxrwxrwx 1 root root 20 Jun 22 2012 libkeyutils.so.1 ->
libkeyutils.so.1.3.0*
-rwxr-xr-x 1 root root 10192 Jun 22 2012 libkeyutils.so.1.3*
-rwxr-xr-x 1 root root 32920 Jun 22 2012 libkeyutils.so.1.3.0*
root@secure:~/lib64# rpm -qf libkeyutils.so.1.3.0
file /lib64/libkeyutils.so.1.3.0 is not owned by any package
================================
It appears that my server has been compromised with a malicious payload
designed to sniff for and steal server passwords.
This must have happened when i was handling my root passwords out in the
open.
Served me well.
== 4 of 4 ==
Date: Wed, Nov 13 2013 1:52 pm
From: Ned Batchelder
On Wednesday, November 13, 2013 4:46:59 PM UTC-5, Ferrous Cranus wrote:
> root@secure:~/lib64# ls -al | grep libkey
>
> lrwxrwxrwx 1 root root 20 Jun 22 2012 libkeyutils.so.1 ->
> libkeyutils.so.1.3.0*
> -rwxr-xr-x 1 root root 10192 Jun 22 2012 libkeyutils.so.1.3*
> -rwxr-xr-x 1 root root 32920 Jun 22 2012 libkeyutils.so.1.3.0*
>
> root@secure:~/lib64# rpm -qf libkeyutils.so.1.3.0
> file /lib64/libkeyutils.so.1.3.0 is not owned by any package
>
> ================================
>
> It appears that my server has been compromised with a malicious payload
> designed to sniff for and steal server passwords.
>
> This must have happened when i was handling my root passwords out in the
> open.
>
> Served me well.
This has nothing to do with the topic of this mailing list. Please don't post it here.
--Ned.
==============================================================================
TOPIC: Packing byte fields and an array object into struct
http://groups.google.com/group/comp.lang.python/t/5db6286e79bc4516?hl=en
==============================================================================
== 1 of 3 ==
Date: Wed, Nov 13 2013 12:41 pm
From: krishna2prasad@gmail.com
Thanks for your reply Ned!
I tried this your suggestion and this is what it complains...
os_inst_bytes = struct.pack('7BI512s', 0, 0x51, 0x10, 5, 0, 0xD, 0x80, 0, '')
---------------------------------------------------------------------------
error
Traceback (most recent call last)
<ipython-input-6-d36f45a8d3e6> in <module>()
----> 1 os_inst_bytes = struct.pack('7BI512s', 0, 0x51, 0x10, 5, 0, 0xD, 0x80, 0, "")
error: argument for 's' must be a bytes object
In [7]:
And about the bytearray() call, I want to pass a mutable object to the IOCTL to be able to get the data back from the driver. Without bytearray(), the ioctl with mutable flag set to 1 would complain.
I tried to use the p format specifier with pack after converting the array object to byte stream. Packing seems fine. However, I cant seem to unpack.
In [1]: import array
In [2]: import struct
In [3]: data = array.array('B', (1 for x in range(5)))
In [4]: data_bytes = data.tobytes()
In [5]: os_inst_bytes = struct.pack('7BIp', 0, 0x51, 0x10, 5, 0, 0xD, 0x80, 0, data_bytes)
In [6]:
In [6]: os_inst = bytearray(os_inst_bytes)
In [7]: result = struct.unpack('7B', os_inst[0:7])
In [8]: print(result)
(0, 81, 16, 5, 0, 13, 128)
In [9]: result = struct.unpack('I', os_inst[7:11])
In [10]: print(result)
(0,)
In [11]: result = struct.unpack('5s', os_inst[11:16])
---------------------------------------------------------------------------
error Traceback (most recent call last)
<ipython-input-11-da14a6693435> in <module>()
----> 1 result = struct.unpack('5s', os_inst[11:16])
error: unpack requires a bytes object of length 5
In [12]:
== 2 of 3 ==
Date: Wed, Nov 13 2013 12:43 pm
From: krishna2prasad@gmail.com
Correction in the last input line...
In [16]: result = struct.unpack('5p', os_inst[11:16])
---------------------------------------------------------------------------
error Traceback (most recent call last)
<ipython-input-16-42b59e00d5af> in <module>()
----> 1 result = struct.unpack('5p', os_inst[11:16])
error: unpack requires a bytes object of length 5
In [17]:
== 3 of 3 ==
Date: Wed, Nov 13 2013 12:47 pm
From: Ned Batchelder
On Wednesday, November 13, 2013 3:41:03 PM UTC-5, krishna...@gmail.com wrote:
> Thanks for your reply Ned!
>
> I tried this your suggestion and this is what it complains...
>
> os_inst_bytes = struct.pack('7BI512s', 0, 0x51, 0x10, 5, 0, 0xD, 0x80, 0, '')
>
> ---------------------------------------------------------------------------
> error
> Traceback (most recent call last)
> <ipython-input-6-d36f45a8d3e6> in <module>()
> ----> 1 os_inst_bytes = struct.pack('7BI512s', 0, 0x51, 0x10, 5, 0, 0xD, 0x80, 0, "")
>
> error: argument for 's' must be a bytes object
>
OK, looks like you are using Python 3 (it helps to specify these things up-front). Use b"" to get an empty byte-string.
> In [7]:
>
>
> And about the bytearray() call, I want to pass a mutable object to the IOCTL to be able to get the data back from the driver. Without bytearray(), the ioctl with mutable flag set to 1 would complain.
OK, keep the bytearray call if it helps.
--Ned.
==============================================================================
TOPIC: Trying tcompile an use the Python 3.4a
http://groups.google.com/group/comp.lang.python/t/d6eb7f05008cbf25?hl=en
==============================================================================
== 1 of 8 ==
Date: Wed, Nov 13 2013 1:19 pm
From: Ferrous Cranus
Στις 13/11/2013 7:45 μμ, ο/η Chris "Kwpolska" Warrick έγραψε:
> On Wed, Nov 13, 2013 at 5:38 PM, Ferrous Cranus <nikos.gr33k@gmail.com> wrote:
>> Στις 13/11/2013 6:13 μμ, ο/η Steven D'Aprano έγραψε:
>>
>>
>>>> and also is there a way to call it like #!/usr/bin/python
>>>
>>>
>>> Of course there is, but only if you wish to break your system. The OS
>>> will be expecting /usr/bin/python to be Python 2. Leave it be.
>>
>>
>> Okey i will leave it be although i dislike the idea of using the shebang
>> constructor as #~/usr/local/bin/python3
>> Is there any way that i can use it as it was #!/usr/bin/python but firing
>> python3 instead of python 2.6.6 ?
>
> You can link it to /usr/bin/python3. There should be no problem when
> you do this.
>
>> Also i'm tryong 'yum install python-pip' because some modules like 'pymysql'
>> and 'pygeoip' are missing but CentOS doesn't seem able to detect it.
>
> That should install it for the Python 2.6.6 you have, and possibly
> under the name `python-pip` because of various shenanigans in the
> redhatesque repos.
>
>> Please help me install 'pip' so i can install the modules.
>
> http://www.pip-installer.org/en/latest/installing.html#install-or-upgrade-setuptools
>
> Get ez_setup.py and get-pip.py, and run them with the desired Python.
>
Why can't i just use that?
root@secure [~]# sudo yum install python-pip
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.plusline.de
* extras: mirror.skylink-datacenter.de
* updates: ftp.plusline.de
base
| 3.7 kB 00:00
extras
| 3.4 kB 00:00
updates
| 3.4 kB 00:00
Setting up Install Process
No package python-pip available.
Error: Nothing to do
root@secure [~]#
'python-pip' is something that all repos should have, why it cannot be
found?
== 2 of 8 ==
Date: Wed, Nov 13 2013 1:30 pm
From: Johannes Findeisen
On Wed, 13 Nov 2013 23:19:53 +0200
Ferrous Cranus wrote:
> Στις 13/11/2013 7:45 μμ, ο/η Chris "Kwpolska" Warrick έγραψε:>
> > Get ez_setup.py and get-pip.py, and run them with the desired Python.
> >
>
>
> Why can't i just use that?
>
> root@secure [~]# sudo yum install python-pip
> Loaded plugins: fastestmirror
> Loading mirror speeds from cached hostfile
> * base: ftp.plusline.de
> * extras: mirror.skylink-datacenter.de
> * updates: ftp.plusline.de
> base
>
>
> | 3.7 kB 00:00
> extras
>
>
> | 3.4 kB 00:00
> updates
>
>
> | 3.4 kB 00:00
> Setting up Install Process
> No package python-pip available.
> Error: Nothing to do
> root@secure [~]#
>
> 'python-pip' is something that all repos should have, why it cannot be
> found?
Please try to figure out your distribution specific stuff by
using a search engine! This was what I found as first result by
searching for "centos pip" at Google:
http://superuser.com/questions/292378/how-to-install-pip-and-easy-install-on-centos
This really is not a Python question but a CentOS issue!
Regards,
Johannes
== 3 of 8 ==
Date: Wed, Nov 13 2013 1:39 pm
From: Ferrous Cranus
Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε:
> On Wed, 13 Nov 2013 23:19:53 +0200
> Ferrous Cranus wrote:
>
>> Στις 13/11/2013 7:45 μμ, ο/η Chris "Kwpolska" Warrick έγραψε:>
>>> Get ez_setup.py and get-pip.py, and run them with the desired Python.
>>>
>>
>>
>> Why can't i just use that?
>>
>> root@secure [~]# sudo yum install python-pip
>> Loaded plugins: fastestmirror
>> Loading mirror speeds from cached hostfile
>> * base: ftp.plusline.de
>> * extras: mirror.skylink-datacenter.de
>> * updates: ftp.plusline.de
>> base
>>
>>
>> | 3.7 kB 00:00
>> extras
>>
>>
>> | 3.4 kB 00:00
>> updates
>>
>>
>> | 3.4 kB 00:00
>> Setting up Install Process
>> No package python-pip available.
>> Error: Nothing to do
>> root@secure [~]#
>>
>> 'python-pip' is something that all repos should have, why it cannot be
>> found?
>
> Please try to figure out your distribution specific stuff by
> using a search engine! This was what I found as first result by
> searching for "centos pip" at Google:
>
> http://superuser.com/questions/292378/how-to-install-pip-and-easy-install-on-centos
>
> This really is not a Python question but a CentOS issue!
>
> Regards,
> Johannes
>
I have foung this link myself in the morning but it wasnt successfull:
Look:
root@secure [~]# /usr/local/bin/easy_install pip
-bash: /usr/local/bin/easy_install: No such file or directory
root@secure [~]# /usr/bin/easy_install pip
-bash: /usr/bin/easy_install: No such file or directory
If i cannot use 'yum' or even 'easy_setup' how will i install 'pip' and
hence the modules?
== 4 of 8 ==
Date: Wed, Nov 13 2013 1:44 pm
From: Ned Batchelder
On Wednesday, November 13, 2013 4:39:59 PM UTC-5, Ferrous Cranus wrote:
> Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε:
> > On Wed, 13 Nov 2013 23:19:53 +0200
> > Ferrous Cranus wrote:
> >
> >> Στις 13/11/2013 7:45 μμ, ο/η Chris "Kwpolska" Warrick έγραψε:>
> >>> Get ez_setup.py and get-pip.py, and run them with the desired Python.
> >>>
> >>
> >>
> >> Why can't i just use that?
> >>
> >> root@secure [~]# sudo yum install python-pip
> >> Loaded plugins: fastestmirror
> >> Loading mirror speeds from cached hostfile
> >> * base: ftp.plusline.de
> >> * extras: mirror.skylink-datacenter.de
> >> * updates: ftp.plusline.de
> >> base
> >>
> >>
> >> | 3.7 kB 00:00
> >> extras
> >>
> >>
> >> | 3.4 kB 00:00
> >> updates
> >>
> >>
> >> | 3.4 kB 00:00
> >> Setting up Install Process
> >> No package python-pip available.
> >> Error: Nothing to do
> >> root@secure [~]#
> >>
> >> 'python-pip' is something that all repos should have, why it cannot be
> >> found?
> >
> > Please try to figure out your distribution specific stuff by
> > using a search engine! This was what I found as first result by
> > searching for "centos pip" at Google:
> >
> > http://superuser.com/questions/292378/how-to-install-pip-and-easy-install-on-centos
> >
> > This really is not a Python question but a CentOS issue!
> >
> > Regards,
> > Johannes
> >
>
>
> I have foung this link myself in the morning but it wasnt successfull:
>
> Look:
>
> root@secure [~]# /usr/local/bin/easy_install pip
> -bash: /usr/local/bin/easy_install: No such file or directory
>
> root@secure [~]# /usr/bin/easy_install pip
> -bash: /usr/bin/easy_install: No such file or directory
>
> If i cannot use 'yum' or even 'easy_setup' how will i install 'pip' and
> hence the modules?
Nikos, we've talked about this before. These aren't Python questions. You need to fix your OS. We can't help you with that. I know you are frustrated and want answers, but you can't just post the same question here again and expect a response. You need to solve this some other way.
Asking over and over again will simply cause another fight on this list, and no one wants that. Find another way to solve your problem.
--Ned.
== 5 of 8 ==
Date: Wed, Nov 13 2013 1:52 pm
From: Ferrous Cranus
Στις 13/11/2013 11:44 μμ, ο/η Ned Batchelder έγραψε:
> On Wednesday, November 13, 2013 4:39:59 PM UTC-5, Ferrous Cranus wrote:
>> Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε:
>>> On Wed, 13 Nov 2013 23:19:53 +0200
>>> Ferrous Cranus wrote:
>>>
>>>> Στις 13/11/2013 7:45 μμ, ο/η Chris "Kwpolska" Warrick έγραψε:>
>>>>> Get ez_setup.py and get-pip.py, and run them with the desired Python.
>>>>>
>>>>
>>>>
>>>> Why can't i just use that?
>>>>
>>>> root@secure [~]# sudo yum install python-pip
>>>> Loaded plugins: fastestmirror
>>>> Loading mirror speeds from cached hostfile
>>>> * base: ftp.plusline.de
>>>> * extras: mirror.skylink-datacenter.de
>>>> * updates: ftp.plusline.de
>>>> base
>>>>
>>>>
>>>> | 3.7 kB 00:00
>>>> extras
>>>>
>>>>
>>>> | 3.4 kB 00:00
>>>> updates
>>>>
>>>>
>>>> | 3.4 kB 00:00
>>>> Setting up Install Process
>>>> No package python-pip available.
>>>> Error: Nothing to do
>>>> root@secure [~]#
>>>>
>>>> 'python-pip' is something that all repos should have, why it cannot be
>>>> found?
>>>
>>> Please try to figure out your distribution specific stuff by
>>> using a search engine! This was what I found as first result by
>>> searching for "centos pip" at Google:
>>>
>>> http://superuser.com/questions/292378/how-to-install-pip-and-easy-install-on-centos
>>>
>>> This really is not a Python question but a CentOS issue!
>>>
>>> Regards,
>>> Johannes
>>>
>>
>>
>> I have foung this link myself in the morning but it wasnt successfull:
>>
>> Look:
>>
>> root@secure [~]# /usr/local/bin/easy_install pip
>> -bash: /usr/local/bin/easy_install: No such file or directory
>>
>> root@secure [~]# /usr/bin/easy_install pip
>> -bash: /usr/bin/easy_install: No such file or directory
>>
>> If i cannot use 'yum' or even 'easy_setup' how will i install 'pip' and
>> hence the modules?
>
> Nikos, we've talked about this before. These aren't Python questions. You need to fix your OS. We can't help you with that. I know you are frustrated and want answers, but you can't just post the same question here again and expect a response. You need to solve this some other way.
>
> Asking over and over again will simply cause another fight on this list, and no one wants that. Find another way to solve your problem.
>
> --Ned.
>
If i knew how to solve this Ned i wouldn't be asking you. My provider
haven't replied back to me.
Actually it is a python question regarding a python installation issue.
Is it so much trouble to help me with this?
== 6 of 8 ==
Date: Wed, Nov 13 2013 1:56 pm
From: Mark Lawrence
On 13/11/2013 21:39, Ferrous Cranus wrote:
> Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε:
>> On Wed, 13 Nov 2013 23:19:53 +0200
>> Ferrous Cranus wrote:
>>
>>> Στις 13/11/2013 7:45 μμ, ο/η Chris "Kwpolska" Warrick έγραψε:>
>>>> Get ez_setup.py and get-pip.py, and run them with the desired Python.
>>>>
>>>
>>>
>>> Why can't i just use that?
>>>
>>> root@secure [~]# sudo yum install python-pip
>>> Loaded plugins: fastestmirror
>>> Loading mirror speeds from cached hostfile
>>> * base: ftp.plusline.de
>>> * extras: mirror.skylink-datacenter.de
>>> * updates: ftp.plusline.de
>>> base
>>>
>>>
>>> | 3.7 kB 00:00
>>> extras
>>>
>>>
>>> | 3.4 kB 00:00
>>> updates
>>>
>>>
>>> | 3.4 kB 00:00
>>> Setting up Install Process
>>> No package python-pip available.
>>> Error: Nothing to do
>>> root@secure [~]#
>>>
>>> 'python-pip' is something that all repos should have, why it cannot be
>>> found?
>>
>> Please try to figure out your distribution specific stuff by
>> using a search engine! This was what I found as first result by
>> searching for "centos pip" at Google:
>>
>> http://superuser.com/questions/292378/how-to-install-pip-and-easy-install-on-centos
>>
>>
>> This really is not a Python question but a CentOS issue!
>>
>> Regards,
>> Johannes
>>
>
>
> I have foung this link myself in the morning but it wasnt successfull:
>
> Look:
>
> root@secure [~]# /usr/local/bin/easy_install pip
> -bash: /usr/local/bin/easy_install: No such file or directory
>
> root@secure [~]# /usr/bin/easy_install pip
> -bash: /usr/bin/easy_install: No such file or directory
>
> If i cannot use 'yum' or even 'easy_setup' how will i install 'pip' and
> hence the modules?
>
I really don't believe this, 24 lines above this one is the link to a
page telling you how to do it, but you're *STILL* asking!!! What do you
want, jam on it???
--
Python is the second best programming language in the world.
But the best has yet to be invented. Christian Tismer
Mark Lawrence
== 7 of 8 ==
Date: Wed, Nov 13 2013 2:00 pm
From: Ferrous Cranus
Στις 13/11/2013 11:56 μμ, ο/η Mark Lawrence έγραψε:
> On 13/11/2013 21:39, Ferrous Cranus wrote:
>> Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε:
>>> On Wed, 13 Nov 2013 23:19:53 +0200
>>> Ferrous Cranus wrote:
>>>
>>>> Στις 13/11/2013 7:45 μμ, ο/η Chris "Kwpolska" Warrick έγραψε:>
>>>>> Get ez_setup.py and get-pip.py, and run them with the desired Python.
>>>>>
>>>>
>>>>
>>>> Why can't i just use that?
>>>>
>>>> root@secure [~]# sudo yum install python-pip
>>>> Loaded plugins: fastestmirror
>>>> Loading mirror speeds from cached hostfile
>>>> * base: ftp.plusline.de
>>>> * extras: mirror.skylink-datacenter.de
>>>> * updates: ftp.plusline.de
>>>> base
>>>>
>>>>
>>>> | 3.7 kB 00:00
>>>> extras
>>>>
>>>>
>>>> | 3.4 kB 00:00
>>>> updates
>>>>
>>>>
>>>> | 3.4 kB 00:00
>>>> Setting up Install Process
>>>> No package python-pip available.
>>>> Error: Nothing to do
>>>> root@secure [~]#
>>>>
>>>> 'python-pip' is something that all repos should have, why it cannot be
>>>> found?
>>>
>>> Please try to figure out your distribution specific stuff by
>>> using a search engine! This was what I found as first result by
>>> searching for "centos pip" at Google:
>>>
>>> http://superuser.com/questions/292378/how-to-install-pip-and-easy-install-on-centos
>>>
>>>
>>>
>>> This really is not a Python question but a CentOS issue!
>>>
>>> Regards,
>>> Johannes
>>>
>>
>>
>> I have foung this link myself in the morning but it wasnt successfull:
>>
>> Look:
>>
>> root@secure [~]# /usr/local/bin/easy_install pip
>> -bash: /usr/local/bin/easy_install: No such file or directory
>>
>> root@secure [~]# /usr/bin/easy_install pip
>> -bash: /usr/bin/easy_install: No such file or directory
>>
>> If i cannot use 'yum' or even 'easy_setup' how will i install 'pip' and
>> hence the modules?
>>
>
> I really don't believe this, 24 lines above this one is the link to a
> page telling you how to do it, but you're *STILL* asking!!! What do you
> want, jam on it???
>
But i have gone to the link and did what it said and it didn't proved
usefull thats why i re-ask.
== 8 of 8 ==
Date: Wed, Nov 13 2013 2:32 pm
From: Mark Lawrence
On 13/11/2013 22:00, Ferrous Cranus wrote:
> Στις 13/11/2013 11:56 μμ, ο/η Mark Lawrence έγραψε:
>> On 13/11/2013 21:39, Ferrous Cranus wrote:
>>> Στις 13/11/2013 11:30 μμ, ο/η Johannes Findeisen έγραψε:
>>>> On Wed, 13 Nov 2013 23:19:53 +0200
>>>> Ferrous Cranus wrote:
>>>>
>>>>> Στις 13/11/2013 7:45 μμ, ο/η Chris "Kwpolska" Warrick έγραψε:>
>>>>>> Get ez_setup.py and get-pip.py, and run them with the desired Python.
>>>>>>
>>>>>
>>>>>
>>>>> Why can't i just use that?
>>>>>
>>>>> root@secure [~]# sudo yum install python-pip
>>>>> Loaded plugins: fastestmirror
>>>>> Loading mirror speeds from cached hostfile
>>>>> * base: ftp.plusline.de
>>>>> * extras: mirror.skylink-datacenter.de
>>>>> * updates: ftp.plusline.de
>>>>> base
>>>>>
>>>>>
>>>>> | 3.7 kB 00:00
>>>>> extras
>>>>>
>>>>>
>>>>> | 3.4 kB 00:00
>>>>> updates
>>>>>
>>>>>
>>>>> | 3.4 kB 00:00
>>>>> Setting up Install Process
>>>>> No package python-pip available.
>>>>> Error: Nothing to do
>>>>> root@secure [~]#
>>>>>
>>>>> 'python-pip' is something that all repos should have, why it cannot be
>>>>> found?
>>>>
>>>> Please try to figure out your distribution specific stuff by
>>>> using a search engine! This was what I found as first result by
>>>> searching for "centos pip" at Google:
>>>>
>>>> http://superuser.com/questions/292378/how-to-install-pip-and-easy-install-on-centos
>>>>
>>>>
>>>>
>>>>
>>>> This really is not a Python question but a CentOS issue!
>>>>
>>>> Regards,
>>>> Johannes
>>>>
>>>
>>>
>>> I have foung this link myself in the morning but it wasnt successfull:
>>>
>>> Look:
>>>
>>> root@secure [~]# /usr/local/bin/easy_install pip
>>> -bash: /usr/local/bin/easy_install: No such file or directory
>>>
>>> root@secure [~]# /usr/bin/easy_install pip
>>> -bash: /usr/bin/easy_install: No such file or directory
>>>
>>> If i cannot use 'yum' or even 'easy_setup' how will i install 'pip' and
>>> hence the modules?
>>>
>>
>> I really don't believe this, 24 lines above this one is the link to a
>> page telling you how to do it, but you're *STILL* asking!!! What do you
>> want, jam on it???
>>
>
>
> But i have gone to the link and did what it said and it didn't proved
> usefull thats why i re-ask.
Wrong. You've once again not bothered to read the information that's
been handed to you on a plate. If you'd followed the instructions you
would not get the "No such file or directory" error shown above. I'm
not going to spoon feed you, so please go away and sort this out for
yourself, we're sick to death of seeing you here.
--
Python is the second best programming language in the world.
But the best has yet to be invented. Christian Tismer
Mark Lawrence
==============================================================================
TOPIC: Most discussion on comp.lang.python is about developing with Python
http://groups.google.com/group/comp.lang.python/t/0d22dd5dd221dc6d?hl=en
==============================================================================
== 1 of 4 ==
Date: Wed, Nov 13 2013 12:35 pm
From: bob gailer
I joined a week or so ago.
The subject line was copied from the description of comp.lang.python aka
python-list@python.org.
I am very disappointed to see so much energy and bandwidth going to
conversations that bash individuals.
Is there a moderator for this list?
Is there some other place for discussions that are completely OT and
also full of flames?
Or would you be willing to stop the bashing? I don't see that it helps
anyone, and could be very offputting to other newbies.
I hope and pray that there will be a few simple answers. The last thing
I want is to start another flame war.
Thanks for hearing me.
--
Bob Gailer
919-636-4239
Chapel Hill NC
== 2 of 4 ==
Date: Wed, Nov 13 2013 2:53 pm
From: Terry Reedy
On 11/13/2013 3:35 PM, bob gailer wrote:
> I am very disappointed to see so much energy and bandwidth going to
> conversations that bash individuals.
Me too.
> Is there a moderator for this list?
Posts from new addresses go to moderators for spam deletion. There are a
couple a day that are discarded. Posts with 'suspicious headers' also
get checked. Non-suspicious posts from known people (perhaps 90%) do not
get checked. We have not yet gotten into 'censorship' of trolling and
flaming. I would prefer not being forced into considering it.
> Or would you be willing to stop the bashing? I don't see that it helps
> anyone, and could be very offputting to other newbies.
I wish a few more old-timers would consider the effect of their posts on
newcomers.
--
Terry Jan Reedy
== 3 of 4 ==
Date: Wed, Nov 13 2013 3:27 pm
From: "Rhodri James"
On Wed, 13 Nov 2013 22:53:46 -0000, Terry Reedy <tjreedy@udel.edu> wrote:
> On 11/13/2013 3:35 PM, bob gailer wrote:
>
>> Is there a moderator for this list?
>
> Posts from new addresses go to moderators for spam deletion. There are a
> couple a day that are discarded. Posts with 'suspicious headers' also
> get checked. Non-suspicious posts from known people (perhaps 90%) do not
> get checked. We have not yet gotten into 'censorship' of trolling and
> flaming. I would prefer not being forced into considering it.
This is true of python-list. comp.lang.python the Usenet newsgroup is not
moderated. God alone knows what Googlegroups thinks it's doing.
--
Rhodri James *-* Wildebeest Herder to the Masses
== 4 of 4 ==
Date: Wed, Nov 13 2013 3:29 pm
From: Chris Angelico
On Thu, Nov 14, 2013 at 7:35 AM, bob gailer <bgailer@gmail.com> wrote:
> I am very disappointed to see so much energy and bandwidth going to
> conversations that bash individuals.
>
I agree, and there've been times when I've been part of the problem
(usually in the form of trying to help Nikos, which results in
stupidity, which leads to anger,. which leads to hate, to suffering,
and to the dark side). Fortunately, it's periodic - like a pendulum,
the mass of posts swings around now and then. Some days it's all about
Nikos, other days we're a lot more productive... sometimes we spend a
day rambling on some off-topic but interesting point, but it always
comes back to Python.
ChrisA
==============================================================================
TOPIC: python 2.7.x on MacOSX: failed dlopen() on .so's
http://groups.google.com/group/comp.lang.python/t/f7c6dbd1573a9577?hl=en
==============================================================================
== 1 of 3 ==
Date: Wed, Nov 13 2013 11:16 am
From: Paul Smith
Hi all. I need to build my own version of Python on a MacOSX system,
and I can't seem to do it successfully. I need to build it with a
particular location, etc. and so I can't use Homebrew or whatever: I
need to compile it myself from the source tarball. I did look through
the Homebrew recipe and I don't see anything that seems like it would
help with my problem.
I'm using MacOSX 10.7.5 with xcode 4.1, containing gcc 4.2.1 / clang 2.1
(configure seems to choose gcc).
I've tried this with both Python 2.7.5 and 2.7.6. I get the tarball,
unpack it, then:
$ configure --prefix=/Users/build/python
$ make
$ make install
$ export PATH=/Users/build/python/bin:$PATH
$ export PYTHONHOME=/Users/build/python
$ python2.7 --version
Python 2.7.6
Simple scripts seem to work fine. But then I need to install various
packages; for example pycrypto. When I try to build that it fails to
build:
$ cd src/pycrypto-2.6 && python2.7 setup.py build
Traceback (most recent call last):
File "setup.py", line 45, in <module>
import struct
File "/Users/build/python/lib/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: dlopen(/Users/build/python/lib/python2.7/lib-dynload/_struct.so, 2): Symbol not found: _PyObject_Free
Referenced from: /Users/build/python/lib/python2.7/lib-dynload/_struct.so
Expected in: dynamic lookup
This happens with every module that is not pure-Python: boto, paramiko,
etc.
Looking at the various python2.7/lib-dynload/*.so files with nm I see
that actually a number of them refer to an unresolved ("U") symbol
_PyObject_Free (and other _PyObject_* symbols). I can't find any shared
library being built by the python build (.dylib or .so or whatever);
there's just a libpython2.7.a file (I tried forcing --enable-shared on
the configure line and it didn't change anything).
I should say that I've used this same configuration and set of steps,
etc. on my GNU/Linux system and it worked perfectly.
== 2 of 3 ==
Date: Wed, Nov 13 2013 2:40 pm
From: Ned Deily
In article <1384370183.3496.472.camel@pdsdesk>,
Paul Smith <paul@mad-scientist.net> wrote:
> I'm using MacOSX 10.7.5 with xcode 4.1, containing gcc 4.2.1 / clang 2.1
> (configure seems to choose gcc).
>
> I've tried this with both Python 2.7.5 and 2.7.6. I get the tarball,
> unpack it, then:
>
> $ configure --prefix=/Users/build/python
> $ make
> $ make install
> $ export PATH=/Users/build/python/bin:$PATH
> $ export PYTHONHOME=/Users/build/python
> $ python2.7 --version
> Python 2.7.6
>
> Simple scripts seem to work fine. But then I need to install various
> packages; for example pycrypto. When I try to build that it fails to
> build:
>
> $ cd src/pycrypto-2.6 && python2.7 setup.py build
> Traceback (most recent call last):
> File "setup.py", line 45, in <module>
> import struct
> File "/Users/build/python/lib/python2.7/struct.py", line 1, in <module>
> from _struct import *
> ImportError:
> dlopen(/Users/build/python/lib/python2.7/lib-dynload/_struct.so, 2): Symbol
> not found: _PyObject_Free
> Referenced from: /Users/build/python/lib/python2.7/lib-dynload/_struct.so
> Expected in: dynamic lookup
>
> This happens with every module that is not pure-Python: boto, paramiko,
> etc.
>
> Looking at the various python2.7/lib-dynload/*.so files with nm I see
> that actually a number of them refer to an unresolved ("U") symbol
> _PyObject_Free (and other _PyObject_* symbols). I can't find any shared
> library being built by the python build (.dylib or .so or whatever);
> there's just a libpython2.7.a file (I tried forcing --enable-shared on
> the configure line and it didn't change anything).
There shouldn't be any problems with what you are trying to do. It works for
me with Python 2.7.6 and pycrypto-2.6.1. Some suggestions:
- Avoid --enable-shared on OS X at least initially. There are too many ways
things can go wrong. If you've built with it, suggest starting with a fresh
Python source directory just to be sure.
- Check the dynamic library dependencies of _struct. On OS X:
otool -L /Users/build/python/lib/python2.7/lib-dynload/_struct.so
For a non-shared build, the only library dependency should be
/usr/lib/libSystem.B.dylib.
- Make sure you are *really* building pycrypto and friends with your Python
and not with some other one.
- On OS X with an installed Python, you shouldn't need to set PYTHONHOME.
--
Ned Deily,
nad@acm.org
== 3 of 3 ==
Date: Wed, Nov 13 2013 2:44 pm
From: Ned Deily
In article <nad-E7CC3B.14401113112013@news.gmane.org>,
Ned Deily <nad@acm.org> wrote:
> There shouldn't be any problems with what you are trying to do. It works for
> me with Python 2.7.6 and pycrypto-2.6.1. Some suggestions:
> - Avoid --enable-shared on OS X at least initially. There are too many ways
> things can go wrong. If you've built with it, suggest starting with a fresh
> Python source directory just to be sure.
> - Check the dynamic library dependencies of _struct. On OS X:
>
> otool -L /Users/build/python/lib/python2.7/lib-dynload/_struct.so
>
> For a non-shared build, the only library dependency should be
> /usr/lib/libSystem.B.dylib.
> - Make sure you are *really* building pycrypto and friends with your Python
> and not with some other one.
> - On OS X with an installed Python, you shouldn't need to set PYTHONHOME.
- Check your other environment variables and make sure you are not setting any
DYLD_ or LD_ env variables.
--
Ned Deily,
nad@acm.org
==============================================================================
TOPIC: PyMyth: Global variables are evil... WRONG!
http://groups.google.com/group/comp.lang.python/t/40e017ec6b97306c?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, Nov 13 2013 2:00 pm
From: Andrew Cooper
On 13/11/2013 02:45, Rick Johnson wrote:
>
> "math.pi" should be "math.PI". and PI should be a CONSTANT.
> And not just a pseudo constant, but a REAL constant that
> cannot be changed.
>
And what do you do when the wizards bend space-time to make PI exactly
3, for the ease of other calculations when building a sorting machine?
Does usenet start delivering these posts in the past/future?
I suspect real python programmers will be able to feel quite smug when
they can change the value of math.pi to suit the situation.
~Andrew
==============================================================================
TOPIC: Setting up for python django development with Debian Linux
http://groups.google.com/group/comp.lang.python/t/7e4d737908cfde26?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, Nov 13 2013 3:30 pm
From: real-not-anti-spam-address@apple-juice.co.uk (D.M. Procida)
Gary Roach <gary719_list1@verizon.net> wrote:
> I have been trying to set up a python, django, mysql, virtualenvwrapper
> and git development project and am really confused. All of the
> documentation seems to ignore the apt-get installation methods used by
> Debian Linux and its derivatives.
I assume you've either worked this out or given up by now, but in any
case...
> Does pip install the same as apt-get; I don't think so. If I use
> virtualenvwrapper, how does this fit with the normal debian (wheezy)
> installation.
Firstly, pip doesn't install in the same way apt-get does.
The general rule is: if it's a Python package (such as Django) use pip;
if it's not (such as MySQL) use apt-get.
Secondly, there is little if any need to install Python packages outside
a virtualenv. It's almost always more convenient to have them in a
virtualenv, rather than system-wide.
> I also need git which just confuses
> the situation even more. Must I give up the automatic updating system
> that Debian provides when setting up the development environment?
I just use apt-get to install Git and update it every now and then.
Daniele
==============================================================================
TOPIC: chroot to install packages
http://groups.google.com/group/comp.lang.python/t/1345991c432a5e96?hl=en
==============================================================================
== 1 of 1 ==
Date: Wed, Nov 13 2013 3:40 pm
From: Chris Angelico
On Thu, Nov 14, 2013 at 1:31 AM, Himanshu Garg <hgarg.india@gmail.com> wrote:
> I am writing a python script to run chroot command to chroot to a linux distro and then run commands. How can I do this, as after chrooting, the script runs the commands relative to the outside not inside the chrooted env?
Probably the easiest way to do this is to divide your script into two
pieces: one piece runs inside the chroot, the other doesn't. Then you
have the "outer" script invoke the "inner" script as a separate
process. When the inner process terminates, the outer continues, and
since the outer wasn't chrooted, it's now running commands relative to
the outside.
One convenient way to manage this is to have one script that invokes
itself with arguments. Another way is to have two actually separate
script files. It really depends how much work you're doing in each
half.
ChrisA
==============================================================================
You received this message because you are subscribed to the Google Groups "comp.lang.python"
group.
To post to this group, visit http://groups.google.com/group/comp.lang.python?hl=en
To unsubscribe from this group, send email to comp.lang.python+unsubscribe@googlegroups.com
To change the way you get mail from this group, visit:
http://groups.google.com/group/comp.lang.python/subscribe?hl=en
To report abuse, send email explaining the problem to abuse@googlegroups.com
==============================================================================
Google Groups: http://groups.google.com/?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home