You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Boyu Zhang <bo...@gmail.com> on 2010/03/22 17:35:28 UTC
Python problem with HOD
Dear All,
sorry to bother again. I overcame the
Uncaught Exception : need more than 2 values to unpack
by export HOD_PYTHON_HOME. But now I had a new error.
$ bin/hod allocate -d /home/zhang/cluster -n 4 -c
/home/zhang/hadoop-0.20.2/contrib/hod/conf/hodrc -t
/home/zhang/hadoop-0.20.2.tar.gz
/home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/threads.py:19:
DeprecationWarning: The popen2 module is deprecated. Use the subprocess
module.
from popen2 import Popen4, Popen3, MAXFD
/home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/desc.py:21:
DeprecationWarning: the sets module is deprecated
from sets import Set
Traceback (most recent call last):
File "hod", line 408, in <module>
options=hodOptions)
File "/home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/setup.py", line
449, in __init__
self.read(configFile)
File "/opt/python/2.6.5/lib/python2.6/ConfigParser.py", line 286, in read
self._read(fp, filename)
File "/opt/python/2.6.5/lib/python2.6/ConfigParser.py", line 475, in _read
cursect = self._dict()
TypeError: 'dict' object is not callable
*Is that because I am using python version 2.6.5 instead of 2.5.1?* Thanks a
lot for the time!
Boyu
Re: Python problem with HOD
Posted by Boyu Zhang <bo...@gmail.com>.
thanks, i will try and let you know: )
Boyu
On Mon, Mar 22, 2010 at 1:46 PM, Song Liu <la...@gmail.com> wrote:
> Sorry, I mean I met the same problem when using 2.65.
>
> On Mon, Mar 22, 2010 at 5:46 PM, Song Liu <la...@gmail.com> wrote:
>
> > Hi, Boyu , I think I have solved this problem by getting python 2.51
> > installed.
> >
> > I met the same problem when using 2.51.
> >
> > Regards
> > Song
> >
> >
> > On Mon, Mar 22, 2010 at 5:30 PM, Song Liu <la...@gmail.com> wrote:
> >
> >> Hi, Boyu, I have setup a cluster using Python 2.6.1 without any problem.
> >> It works fine now. But I met the problem on the other cluster in which I
> >> believe the python version is 2.4.3.
> >>
> >>
> >> On Mon, Mar 22, 2010 at 4:35 PM, Boyu Zhang <boyuzhang35@gmail.com
> >wrote:
> >>
> >>> Dear All,
> >>>
> >>> sorry to bother again. I overcame the
> >>>
> >>> Uncaught Exception : need more than 2 values to unpack
> >>>
> >>>
> >>> by export HOD_PYTHON_HOME. But now I had a new error.
> >>>
> >>> $ bin/hod allocate -d /home/zhang/cluster -n 4 -c
> >>> /home/zhang/hadoop-0.20.2/contrib/hod/conf/hodrc -t
> >>> /home/zhang/hadoop-0.20.2.tar.gz
> >>>
> >>> /home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/threads.py:19:
> >>> DeprecationWarning: The popen2 module is deprecated. Use the
> subprocess
> >>> module.
> >>> from popen2 import Popen4, Popen3, MAXFD
> >>> /home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/desc.py:21:
> >>> DeprecationWarning: the sets module is deprecated
> >>> from sets import Set
> >>> Traceback (most recent call last):
> >>> File "hod", line 408, in <module>
> >>> options=hodOptions)
> >>> File "/home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/setup.py",
> >>> line
> >>> 449, in __init__
> >>> self.read(configFile)
> >>> File "/opt/python/2.6.5/lib/python2.6/ConfigParser.py", line 286, in
> >>> read
> >>> self._read(fp, filename)
> >>> File "/opt/python/2.6.5/lib/python2.6/ConfigParser.py", line 475, in
> >>> _read
> >>> cursect = self._dict()
> >>> TypeError: 'dict' object is not callable
> >>>
> >>> *Is that because I am using python version 2.6.5 instead of 2.5.1?*
> >>> Thanks a
> >>> lot for the time!
> >>>
> >>> Boyu
> >>>
> >>
> >>
> >
>
Re: Python problem with HOD
Posted by Song Liu <la...@gmail.com>.
Sorry, I mean I met the same problem when using 2.65.
On Mon, Mar 22, 2010 at 5:46 PM, Song Liu <la...@gmail.com> wrote:
> Hi, Boyu , I think I have solved this problem by getting python 2.51
> installed.
>
> I met the same problem when using 2.51.
>
> Regards
> Song
>
>
> On Mon, Mar 22, 2010 at 5:30 PM, Song Liu <la...@gmail.com> wrote:
>
>> Hi, Boyu, I have setup a cluster using Python 2.6.1 without any problem.
>> It works fine now. But I met the problem on the other cluster in which I
>> believe the python version is 2.4.3.
>>
>>
>> On Mon, Mar 22, 2010 at 4:35 PM, Boyu Zhang <bo...@gmail.com>wrote:
>>
>>> Dear All,
>>>
>>> sorry to bother again. I overcame the
>>>
>>> Uncaught Exception : need more than 2 values to unpack
>>>
>>>
>>> by export HOD_PYTHON_HOME. But now I had a new error.
>>>
>>> $ bin/hod allocate -d /home/zhang/cluster -n 4 -c
>>> /home/zhang/hadoop-0.20.2/contrib/hod/conf/hodrc -t
>>> /home/zhang/hadoop-0.20.2.tar.gz
>>>
>>> /home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/threads.py:19:
>>> DeprecationWarning: The popen2 module is deprecated. Use the subprocess
>>> module.
>>> from popen2 import Popen4, Popen3, MAXFD
>>> /home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/desc.py:21:
>>> DeprecationWarning: the sets module is deprecated
>>> from sets import Set
>>> Traceback (most recent call last):
>>> File "hod", line 408, in <module>
>>> options=hodOptions)
>>> File "/home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/setup.py",
>>> line
>>> 449, in __init__
>>> self.read(configFile)
>>> File "/opt/python/2.6.5/lib/python2.6/ConfigParser.py", line 286, in
>>> read
>>> self._read(fp, filename)
>>> File "/opt/python/2.6.5/lib/python2.6/ConfigParser.py", line 475, in
>>> _read
>>> cursect = self._dict()
>>> TypeError: 'dict' object is not callable
>>>
>>> *Is that because I am using python version 2.6.5 instead of 2.5.1?*
>>> Thanks a
>>> lot for the time!
>>>
>>> Boyu
>>>
>>
>>
>
Re: Python problem with HOD
Posted by Song Liu <la...@gmail.com>.
Hi, Boyu , I think I have solved this problem by getting python 2.51
installed.
I met the same problem when using 2.51.
Regards
Song
On Mon, Mar 22, 2010 at 5:30 PM, Song Liu <la...@gmail.com> wrote:
> Hi, Boyu, I have setup a cluster using Python 2.6.1 without any problem. It
> works fine now. But I met the problem on the other cluster in which I
> believe the python version is 2.4.3.
>
>
> On Mon, Mar 22, 2010 at 4:35 PM, Boyu Zhang <bo...@gmail.com> wrote:
>
>> Dear All,
>>
>> sorry to bother again. I overcame the
>>
>> Uncaught Exception : need more than 2 values to unpack
>>
>>
>> by export HOD_PYTHON_HOME. But now I had a new error.
>>
>> $ bin/hod allocate -d /home/zhang/cluster -n 4 -c
>> /home/zhang/hadoop-0.20.2/contrib/hod/conf/hodrc -t
>> /home/zhang/hadoop-0.20.2.tar.gz
>>
>> /home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/threads.py:19:
>> DeprecationWarning: The popen2 module is deprecated. Use the subprocess
>> module.
>> from popen2 import Popen4, Popen3, MAXFD
>> /home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/desc.py:21:
>> DeprecationWarning: the sets module is deprecated
>> from sets import Set
>> Traceback (most recent call last):
>> File "hod", line 408, in <module>
>> options=hodOptions)
>> File "/home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/setup.py", line
>> 449, in __init__
>> self.read(configFile)
>> File "/opt/python/2.6.5/lib/python2.6/ConfigParser.py", line 286, in read
>> self._read(fp, filename)
>> File "/opt/python/2.6.5/lib/python2.6/ConfigParser.py", line 475, in
>> _read
>> cursect = self._dict()
>> TypeError: 'dict' object is not callable
>>
>> *Is that because I am using python version 2.6.5 instead of 2.5.1?* Thanks
>> a
>> lot for the time!
>>
>> Boyu
>>
>
>
Re: Python problem with HOD
Posted by Song Liu <la...@gmail.com>.
Hi, Boyu, I have setup a cluster using Python 2.6.1 without any problem. It
works fine now. But I met the problem on the other cluster in which I
believe the python version is 2.4.3.
On Mon, Mar 22, 2010 at 4:35 PM, Boyu Zhang <bo...@gmail.com> wrote:
> Dear All,
>
> sorry to bother again. I overcame the
>
> Uncaught Exception : need more than 2 values to unpack
>
>
> by export HOD_PYTHON_HOME. But now I had a new error.
>
> $ bin/hod allocate -d /home/zhang/cluster -n 4 -c
> /home/zhang/hadoop-0.20.2/contrib/hod/conf/hodrc -t
> /home/zhang/hadoop-0.20.2.tar.gz
>
> /home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/threads.py:19:
> DeprecationWarning: The popen2 module is deprecated. Use the subprocess
> module.
> from popen2 import Popen4, Popen3, MAXFD
> /home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/desc.py:21:
> DeprecationWarning: the sets module is deprecated
> from sets import Set
> Traceback (most recent call last):
> File "hod", line 408, in <module>
> options=hodOptions)
> File "/home/zhang/hadoop-0.20.2/contrib/hod/hodlib/Common/setup.py", line
> 449, in __init__
> self.read(configFile)
> File "/opt/python/2.6.5/lib/python2.6/ConfigParser.py", line 286, in read
> self._read(fp, filename)
> File "/opt/python/2.6.5/lib/python2.6/ConfigParser.py", line 475, in _read
> cursect = self._dict()
> TypeError: 'dict' object is not callable
>
> *Is that because I am using python version 2.6.5 instead of 2.5.1?* Thanks
> a
> lot for the time!
>
> Boyu
>