I solved it.

> From your trace info, it is obvious that you have installed gbs from sources 
> before.

My old gbs (installed in /usr/local/bin from source code) was not
removed perfectly.
I removed it again, then reinstalled the gbs from recommended URL.
Now the gbs works correctly.

Thank you Zhang, Choi, and Seo.



On Mon, Mar 18, 2013 at 11:11 AM, Zhang, Qiang Z
<qiang.z.zh...@intel.com> wrote:
> Hi,
>
> From your trace info, it is obvious that you have installed gbs from sources 
> before.
>
> You should remove old gbs:
> $ rm -rf /usr/local/bin/gbs
> $ rm -rf /usr/local/lib/python2.7/dist-packages/gitbuildsys -rf
> $ rm -rf /usr/local/lib/python2.7/dist-packages/gbs*
>
> then, install from official repo: 
> https://download.tizen.org/tools/latest-release/
>
>
> Thanks
> Qiang
>
>
>> -----Original Message-----
>> From: general-boun...@lists.tizen.org
>> [mailto:general-boun...@lists.tizen.org] On Behalf Of Jeong-Joon Yoo
>> Sent: Monday, March 18, 2013 9:59 AM
>> To: Soo-Hyun Choi
>> Cc: general@lists.tizen.org
>> Subject: Re: [Tizen General] gbs for tizen
>>
>> Thank you Choi and Seo,
>>
>> I updated .gbs.conf as you mentioned. The following is the content
>> of .gbs.conf file
>>
>> [general]
>> profile = profile.tizen
>> buildroot = ~/work/tizen/
>>
>> [profile.tizen]
>> obs = obs.tizen
>> repos = repo.tizen_latest
>> # if no buildroot for profile, the buildroot in general section will be used 
>> #
>> buildroot = ~/GBS-ROOT-profile.tizen/ buildroot = ~/work/tizen/
>>
>> [obs.tizen]
>> url = https://api.tizen.org
>> user = nov13
>> passwd =
>> # set default base_prj for this obs
>> # base_prj=Tizen:Main
>> # set default target prj for this obs, default is home:nov13:gbs:<base_prj> #
>> target_prj=<specify target project>
>>
>> [repo.tizen_latest]
>> #url = http://download.tizen.org/releases/trunk/daily/ivi/latest/
>> #url = http://download.tizen.org/releases/2.0/tizen-2.0_20130218.10/
>> #url = http://download.tizen.org/releases/2.0/tizen-2.0_20130219.4/
>> url = http://download.tizen.org/releases/latest/2.0/
>> user = nov13
>> passwd =
>>
>> # end of .gbs.conf
>>
>> Then, I build 'clock' again
>> $ gbs build -A i586 --include-all
>>
>> After that, I met the following error message,
>>
>> Traceback (most recent call last):
>>   File "/usr/local/bin/gbs", line 23, in <module>
>>     from gitbuildsys import msger, cmdln, errors
>>   File "/usr/local/lib/python2.7/dist-packages/gitbuildsys/msger.py",
>> line 77, in <module>
>>     gbp.log.logger.format =
>> '%(color)s%(levelname)s: %(coloroff)s%(message)s'
>> AttributeError: 'module' object has no attribute 'logger'
>>
>>
>> Thank you in advance
>>
>>
>>
>>
>>
>>
>>
>>
>> On Mon, Mar 18, 2013 at 9:48 AM, Soo-Hyun Choi <s.c...@hackerslab.eu>
>> wrote:
>> > Hi,
>> >
>> > It is likely that you have a wrong URI information for the
>> > [repo.tizen_latest] section in your gbs conf file (e.g., ~/.gbs.conf).
>> > The provided info about "Example of a config file" in
>> > https://source.tizen.org/documentation/reference/git-build-system/conf
>> > iguration-file is obsolete, and you should probably change it
>> > something like the below:
>> >
>> > ...
>> > [repo.tizen_latest]
>> > #Build against repo's URL
>> > url = http://download.tizen.org/releases/latest/2.0/
>> > ...
>> >
>> > This should have been addressed correctly in the Tizen.org webpage in
>> > the first place.
>> >
>> > Cheers,
>> > Soo-Hyun
>> >
>> >
>> >
>> >
>> > On Mon, Mar 18, 2013 at 2:09 AM, Jeong-Joon Yoo
>> > <jeongjoon....@gmail.com>
>> > wrote:
>> >>
>> >> Thank you Seo,
>> >>
>> >> I reinstall the gbs, mic as followings $ sudo vi
>> >> /etc/apt/sources.list
>> >>    deb http://download.tizen.org/tools/latest-release/Ubuntu_12.04 /
>> >>                                           /* I added above line
>> into
>> >> sources.list */
>> >>
>> >> $ sudo apt-get update
>> >> $ sudo apt-get install gbs mic --reinstall
>> >>
>> >> Then, I downloaded the clock and try to build it like this, $ git
>> >> clone ssh://no...@review.tizen.org:29418/apps/home/clock
>> >> $ cd clock
>> >> $ gbs build -A i586 --include-all
>> >>
>> >> At this moment, I met the following error message,
>> >>
>> >> > Traceback (most recent call last):
>> >> >   File "/usr/bin/gbs", line 28, in <module>
>> >> >     from gitbuildsys.parsing import subparser, GbsHelpFormatter,
>> >> > basename_type
>> >> > ImportError: No module named parsing
>> >>
>> >> Here is the partial content of gbs script file located in /usr/bin/
>> >>
>> >> #!/usr/bin/python
>> >> # vim: ai ts=4 sts=4 et sw=4
>> >> #
>> >> # Copyright (c) 2011 Intel, Inc.
>> >> #
>> >> # This program is free software; you can redistribute it and/or
>> >> modify it # under the terms of the GNU General Public License as
>> >> published by the Free # Software Foundation; version 2 of the License
>> >> # # This program is distributed in the hope that it will be useful,
>> >> but # WITHOUT ANY WARRANTY; without even the implied warranty of
>> >> MERCHANTABILITY # or FITNESS FOR A PARTICULAR PURPOSE.  See the
>> GNU
>> >> General Public License # for more details.
>> >> #
>> >> # You should have received a copy of the GNU General Public License
>> >> along # with this program; if not, write to the Free Software
>> >> Foundation, Inc.,
>> >> 59
>> >> # Temple Place - Suite 330, Boston, MA 02111-1307, USA.
>> >>
>> >> """Gbs - commandline tool for Tizen developers. Main module."""
>> >>
>> >> import sys
>> >> import os
>> >>
>> >> from argparse import ArgumentParser
>> >>
>> >> from gitbuildsys import __version__
>> >> from gitbuildsys import errors
>> >> from gitbuildsys.parsing import subparser, GbsHelpFormatter,
>> >> basename_type     # this is line 28
>> >> from gitbuildsys import log
>> >> from gitbuildsys import cmd_build
>> >>
>> >>
>> >> @subparser
>> >> def import_parser(parser):
>> >>     """import spec file/source rpm/tar ball to git repository
>> >>     Examples:
>> >>       $ gbs import /path/to/specfile.spec
>> >>       $ gbs import /path/to/package-version.src.rpm
>> >>       $ gbs import /path/to/tarball.tar.gz
>> >>     """
>> >>
>> >>     parser.add_argument('path', type=os.path.abspath,
>> >>                         help='path to spec, srcrpm or tarball')
>> >>
>> >>     parser.add_argument('--author-name', help='author name of git
>> commit')
>> >>     parser.add_argument('--author-email', help='author email of git
>> >> commit')
>> >>     parser.add_argument('--upstream-branch',
>> >>                         help='specify upstream branch for new
>> package
>> >> version')
>> >>     parser.add_argument('--packaging-dir',
>> >>                         help='directory containing packaging files')
>> >>     parser.add_argument('--no-pristine-tar', action='store_true',
>> >>                          help='don\'t use pristine-tar to import
>> source. '
>> >>                         'pristine-tar only support import
>> >> *tar.{gz,bz2,xz} '
>> >>                         'sources, this option can be specified to
>> import '
>> >>                         'other format sources')
>> >>     parser.add_argument('--filter', action="append",
>> >>                         help='files to filter out during import(can
>> >> be given '
>> >>                         'multiple times)')
>> >>     group = parser.add_argument_group('only for importing srpms and
>> >> spec file '
>> >>                         'options')
>> >>     group.add_argument('--allow-same-version', action='store_true',
>> >>                          help='allow to import already imported
>> version')
>> >>     group.add_argument('--native', action='store_true',
>> >>                        help='this is a dist native package, no separate
>> '
>> >>                        'upstream')
>> >>     group.add_argument('--no-patch-import', action='store_true',
>> >>                        help='don\'t import patches automatically')
>> >>     group = parser.add_argument_group('only for importing upstream
>> >> tar ball '
>> >>                         'options')
>> >>     group.add_argument('--merge', action='store_true',
>> >>                          help='merge new upstream branch to
>> master')
>> >>     group.add_argument('--upstream-vcs-tag',
>> >>                         help='upstream VCS tag add to the merge
>> >> commit')
>> >>
>> >>     parser.set_defaults(alias="im")
>> >>     return parser
>> >>
>> >> thank you in advance.
>> >>
>> >>
>> >>
>> >>
>> >> On Sun, Mar 17, 2013 at 5:13 PM, Daniel Juyung Seo
>> >> <seojuyu...@gmail.com>
>> >> wrote:
>> >> > Hello, what source are you going to build?
>> >> > Did you download the source from review.tizen.org or did you make
>> >> > it by yourself?
>> >> > Can you try gbs with /apps/home/clock?
>> >> >
>> >> > Daniel Juyung Seo (SeoZ)
>> >> >
>> >> > On Sun, Mar 17, 2013 at 3:15 PM, Jeong-Joon Yoo
>> >> > <jeongjoon....@gmail.com> wrote:
>> >> >> Hi, tizen developers,
>> >> >>
>> >> >> I am beginner in tizen.
>> >> >> I just install some tools (gbs, mic) from review.tizen.org (step
>> >> >> by step described in the URL,
>> >> >>
>> >> >> https://source.tizen.org/documentation/developer-guide/installing-
>> >> >> development-tools)
>> >> >>
>> >> >> when I run gbs to build tizen as the following, $ gbs build -A
>> >> >> i586
>> >> >>
>> >> >> I met the following error message,
>> >> >>
>> >> >>> Traceback (most recent call last):
>> >> >>>   File "/usr/local/bin/gbs", line 23, in <module>
>> >> >>>     from gitbuildsys import msger, cmdln, errors
>> >> >>>   File
>> >> >>> "/usr/local/lib/python2.7/dist-packages/gitbuildsys/msger.py",
>> >> >>> line 77, in <module>
>> >> >>>     gbp.log.logger.format = '%(color)s%(levelname)s:
>> >> >>> %(coloroff)s%(message)s'
>> >> >>> AttributeError: 'module' object has no attribute 'logger'
>> >> >>
>> >> >> My environment is
>> >> >> Ubuntu 12.04 LTS (Desktop)
>> >> >>
>> >> >> I cannot build the tizen, because of such errors.
>> >> >> Any comment for this will be appreciated.
>> >> >>
>> >> >> Thank you in advance.
>> >> >>
>> >> >> - jy
>> >> >> _______________________________________________
>> >> >> General mailing list
>> >> >> General@lists.tizen.org
>> >> >> https://lists.tizen.org/listinfo/general
>> >> _______________________________________________
>> >> General mailing list
>> >> General@lists.tizen.org
>> >> https://lists.tizen.org/listinfo/general
>> >
>> >
>> _______________________________________________
>> General mailing list
>> General@lists.tizen.org
>> https://lists.tizen.org/listinfo/general
_______________________________________________
General mailing list
General@lists.tizen.org
https://lists.tizen.org/listinfo/general

Reply via email to