Re: How do I test the integrity of a Python installation in Debian and Ubuntu

2009-05-12 Thread Lawrence D'Oliveiro
In message , Geoff 
Gardiner wrote:

> Lawrence D'Oliveiro wrote:
>
>> .. I expect an apology.
>> Otherwise, it becomes grounds for an abuse complaint to your ISP.
>>   
> Yes, I do apologize profusely and publicly ...

Thank you.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How do I test the integrity of a Python installation in Debian and Ubuntu

2009-05-11 Thread Geoff Gardiner
Lawrence D'Oliveiro wrote:
> .. I expect an apology. 
> Otherwise, it becomes grounds for an abuse complaint to your ISP.
>   
Yes, I do apologize profusely and publicly, and would have done so
regardless of threat.

I had trouble with posts making it through to the list and so was also
posting in parallel to the original posters. In doing so, your address
initially bounced the message - so I changed it unthinkingly in a to: line.

I did not realize until this morning that they made it through
python-list unchanged, as they obviously do.

All the best,
Geoff


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How do I test the integrity of a Python installation in Debian and Ubuntu

2009-05-11 Thread Lawrence D'Oliveiro
In message , Geoff 
Gardiner wrote:

> @Lawrence D'Oliveiro:
> ...

I see that you published my unobfuscated e-mail address on USENET for all to 
see. I obfuscated it for a reason, to keep the spammers away. I'm assuming 
this was a momentary lapse of judgement, for which I expect an apology. 
Otherwise, it becomes grounds for an abuse complaint to your ISP.

-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How do I test the integrity of a Python installation in Debian and Ubuntu

2009-05-11 Thread Geoff Gardiner
Aahz wrote:
> ... That seems to demonstrate that regrtest.py is indeed a good mechanism for
> finding out whether it's a b0rked install!
>   

I agree that regrtest.py looks a good mechanism. It just appears that
`apt-get install python` on Debian and Ubuntu brings no tests with it.

@Lawrence D'Oliveiro:

`apt-get install debsums` does indeed show that the packages that it checks 
have matching checksums. `debsums [-a] python` checks all sorts of 
/usr/share/doc/python files while `debsums [-a] python2.5` checks 
/usr/share/doc/python2.5, /usr/lib/python2.5 and others as well. Although that 
wasn't what I was originally looking for it has been helpful.

Thank you for your suggestions.

All the best,
Geoff


-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How do I test the integrity of a Python installation in Debian and Ubuntu

2009-05-11 Thread Aahz
In article ,
Geoff Gardiner   wrote:
>Aahz wrote:
>> 
>> What directory are you running this from?  What happens if you switch to
>> running "python Lib/test/regrtest.py"?  Taking a closer look, this looks
>> more like a plain import error.
>
>I couldn't do quite that because there's no Lib, but instead (in Ubuntu
>Hardy, this time):
>
>geg...@gegard:~$ cd /usr/lib/python2.5/
>geg...@gegard:/usr/lib/python2.5$ python test/regrtest.py
>
>9 tests skipped:
>test_builtin test_doctest test_doctest2 test_exceptions
>test_grammar test_opcodes test_operations test_types test_unittest
>Traceback (most recent call last):
>  File "test/regrtest.py", line 1384, in 
>main()
>  File "test/regrtest.py", line 416, in main
>e = _ExpectedSkips()
>  File "test/regrtest.py", line 1321, in __init__
>from test import test_socket_ssl
>ImportError: cannot import name test_socket_ssl
>geg...@gegard:/usr/lib/python2.5$
>
>Also
>geg...@gegard:~$ locate */test_socket_ssl.*
>geg...@gegard:~$ #returns nothing
>
>And
>geg...@gegard:~$ locate /usr/lib/python2.5/test/test_*.*
>/usr/lib/python2.5/test/test_support.py
>/usr/lib/python2.5/test/test_support.pyc
>geg...@gegard:~$

That seems to demonstrate that regrtest.py is indeed a good mechanism for
finding out whether it's a b0rked install!
-- 
Aahz (a...@pythoncraft.com)   <*> http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: How do I test the integrity of a Python installation in Debian and Ubuntu

2009-05-11 Thread Lawrence D'Oliveiro
In message , Geoff 
Gardiner wrote:

> How do I assure myself of the integrity of a Python installation
> acquired using apt-get install on Debian and Ubuntu?

apt-get install debsums
man debsums


--
http://mail.python.org/mailman/listinfo/python-list


Re: How do I test the integrity of a Python installation in Debian and Ubuntu

2009-05-10 Thread Geoff Gardiner
Aahz wrote:
> 
> What directory are you running this from?  What happens if you switch to
> running "python Lib/test/regrtest.py"?  Taking a closer look, this looks
> more like a plain import error.
>   

Thank you for your suggestion.

I couldn't do quite that because there's no Lib, but instead (in Ubuntu
Hardy, this time):

geg...@gegard:~$ cd /usr/lib/python2.5/
geg...@gegard:/usr/lib/python2.5$ python test/regrtest.py
test_grammar
test_grammar skipped -- No module named test_grammar
test_opcodes
test_opcodes skipped -- No module named test_opcodes
test_operations
test_operations skipped -- No module named test_operations
test_builtin
test_builtin skipped -- No module named test_builtin
test_exceptions
test_exceptions skipped -- No module named test_exceptions
test_types
test_types skipped -- No module named test_types
test_unittest
test_unittest skipped -- No module named test_unittest
test_doctest
test_doctest skipped -- No module named test_doctest
test_doctest2
test_doctest2 skipped -- No module named test_doctest2
9 tests skipped:
test_builtin test_doctest test_doctest2 test_exceptions
test_grammar test_opcodes test_operations test_types test_unittest
Traceback (most recent call last):
  File "test/regrtest.py", line 1384, in 
main()
  File "test/regrtest.py", line 416, in main
e = _ExpectedSkips()
  File "test/regrtest.py", line 1321, in __init__
from test import test_socket_ssl
ImportError: cannot import name test_socket_ssl
geg...@gegard:/usr/lib/python2.5$

Also
geg...@gegard:~$ locate */test_socket_ssl.*
geg...@gegard:~$ #returns nothing

And
geg...@gegard:~$ locate /usr/lib/python2.5/test/test_*.*
/usr/lib/python2.5/test/test_support.py
/usr/lib/python2.5/test/test_support.pyc
geg...@gegard:~$

All the best,
Geoff


--
http://mail.python.org/mailman/listinfo/python-list


Re: How do I test the integrity of a Python installation in Debian and Ubuntu

2009-05-10 Thread Aahz
In article ,
Geoff Gardiner   wrote:
>
>geg...@gegard:~$ python
>Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
>[GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
 from test import regrtest
 regrtest.main()
>test_grammar
>test_grammar skipped -- No module named test_grammar
>...  more of the same...
>9 tests skipped:
>test_builtin test_doctest test_doctest2 test_exceptions
>test_grammar test_opcodes test_operations test_types test_unittest
>Traceback (most recent call last):
>  File "", line 1, in 
>  File "/usr/lib/python2.5/test/regrtest.py", line 416, in main
>e = _ExpectedSkips()
>  File "/usr/lib/python2.5/test/regrtest.py", line 1321, in __init__
>from test import test_socket_ssl
>ImportError: cannot import name test_socket_ssl

What directory are you running this from?  What happens if you switch to
running "python Lib/test/regrtest.py"?  Taking a closer look, this looks
more like a plain import error.
-- 
Aahz (a...@pythoncraft.com)   <*> http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan
--
http://mail.python.org/mailman/listinfo/python-list


Re: How do I test the integrity of a Python installation in Debian and Ubuntu

2009-05-09 Thread Geoff Gardiner
Aahz wrote:
> How important is the apt-get requirement?  

That's a significant point, thank you. Two parts to the response:

a) I don't feel that I am sufficiently expert to launch into compilation
of Python if I can avoid it.

b) I hope that I can put all platform risk into the lap of the hosting
provider, and apt-get is probably the only delivery mechanism they will
take any responsibility for. (I want to use their 'standard'.)

All the best,
Geoff


--
http://mail.python.org/mailman/listinfo/python-list


Re: How do I test the integrity of a Python installation in Debian and Ubuntu

2009-05-08 Thread Aahz
In article ,
Geoff Gardiner   wrote:
>
>How do I assure myself of the integrity of a Python installation
>acquired using apt-get install on Debian and Ubuntu?

How important is the apt-get requirement?  Building Python yourself in
this situation sounds like it would be simpler/safer.
-- 
Aahz (a...@pythoncraft.com)   <*> http://www.pythoncraft.com/

"It is easier to optimize correct code than to correct optimized code."
--Bill Harlan
--
http://mail.python.org/mailman/listinfo/python-list