Hi

On 26 November 2011 01:52, Wander Lairson Costa
<wander.lair...@gmail.com> wrote:
> 2011/11/25 Robert von Burg <ei...@eitchnet.ch>:
>>
>> I'm using python 2.6.6 on Ubuntu 10.10 Maverick
>>
>
> Could you please run a little test like bellow and report the output?
>
> $ python
> Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)
> [GCC 4.5.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sys
>>>> sys.version_info
> sys.version_info(major=2, minor=7, micro=1, releaselevel='final', serial=0)
>>>> sys.version_info.major
> 2
>>>>

Ahh, yes. There we go. It seems to be a python specific problem on maverick:

Python 2.6.6 (r266:84292, Sep 15 2010, 16:22:56)
[GCC 4.4.5] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version_info
(2, 6, 6, 'final', 0)
>>> sys.version_info.major
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'tuple' object has no attribute 'major'
>>>

Using the index specifier works:
>>> sys.version_info[0]
2
>>>

I can fix that for my installation.
Thanks

-- 
Robert von Burg <ei...@eitchnet.ch>
dipl. Informatiker in Softwareentwicklung HF / pBac-Eng ODEC
software development
system & network administration

http://eitchnet.ch
http://gsinet.ch

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
pyusb-users mailing list
pyusb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyusb-users

Reply via email to