Quantcast

Building on archlinux

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Building on archlinux

Simon Lenz
Hello,

I'm trying to contribute some code to the gramps-project.
In order to test my changes, I followed this wiki-page.
http://www.gramps-project.org/wiki/index.php?title=Running_a_development_version_of_Gramps

But i receive an error while doing "./autogen.sh":
checking Python bindings for gtk 2.10 (pygtk2>=2.10.0)... configure: error:

**** The python bindings for gtk 2.10 (pygtk2>=2.10.0) could not be found.

Here is the full output of autogen.sh: http://pastebin.com/UxLMv9D3

The package pygtk (version 2.24.0-3) is installed on my system and
something like pygtk-dev or -devel doesn't exist in the repository:
http://www.archlinux.org/packages/?sort=&q=pygtk&maintainer=&last_update=&flagged=&limit=50

Do you have any suggestions, what is missing or could go wrong?

I running Archlinux.
If you need further information, please feel free to ask!

regards,
Simon

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Building on archlinux

Josip-3
Simon Lenz <[hidden email]> wrote:

>Hello,
>
>I'm trying to contribute some code to the gramps-project.
>In order to test my changes, I followed this wiki-page.
>http://www.gramps-project.org/wiki/index.php?title=Running_a_development_version_of_Gramps
>
>But i receive an error while doing "./autogen.sh":
>checking Python bindings for gtk 2.10 (pygtk2>=2.10.0)... configure:
>error:
>
>**** The python bindings for gtk 2.10 (pygtk2>=2.10.0) could not be
>found.
>
>Here is the full output of autogen.sh: http://pastebin.com/UxLMv9D3
>
>The package pygtk (version 2.24.0-3) is installed on my system and
>something like pygtk-dev or -devel doesn't exist in the repository:
>http://www.archlinux.org/packages/?sort=&q=pygtk&maintainer=&last_update=&flagged=&limit=50
>
>Do you have any suggestions, what is missing or could go wrong?
>
>I running Archlinux.
>If you need further information, please feel free to ask!
>
>regards,
>Simon
>
>------------------------------------------------------------------------------
>Better than sec? Nothing is better than sec when it comes to
>monitoring Big Data applications. Try Boundary one-second
>resolution app monitoring today. Free.
>http://p.sf.net/sfu/Boundary-dev2dev
>_______________________________________________
>Gramps-devel mailing list
>[hidden email]
>https://lists.sourceforge.net/lists/listinfo/gramps-devel

Hi

./autogen.sh --prefix=/usr PYTHON=python2
--
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Building on archlinux

Josip-3
On 11.04.2012 19:18, Simon Lenz wrote:

> Thanks for the explanation!
>
> autogen and make worked as supposed, but if i try to run the trunk
> verison with this line:
> "GRAMPSHOME=/home/simon/dev/test_env python2 src/gramps.py"
> it doesn't work.
> "  File "/usr/lib/python2.7/bsddb/__init__.py", line 67, in <module>
>     import _bsddb
> ImportError: No module named _bsddb"
>
> I'm on revision 19299 and the "python-bsddb" package is installed.
>
> And my stable gramps installation GRAMPS: 3.3.1-1  (from the repo)
> works without problems.
>
> regards
>
> On 11 April 2012 18:36, Josip <[hidden email]> wrote:
>> Simon Lenz <[hidden email]> wrote:
>>
>>> Wow, thanks a lot!
>>> So the problem was, that is uses "python" (which goes to python 3.2.2
>>> on my system) but gramps needs python2?
>>>
>>> Could you shortly explain me, or give me a link about that
>>> "--prefix=.." cannot find some usefull information on googling.
>>>
>>> regards and thanks a lot!:)
>>>
>>> On 11 April 2012 18:18, Josip <[hidden email]> wrote:
>>>> Simon Lenz <[hidden email]> wrote:
>>>>
>>>>> Hello,
>>>>>
>>>>> I'm trying to contribute some code to the gramps-project.
>>>>> In order to test my changes, I followed this wiki-page.
>>>>> http://www.gramps-project.org/wiki/index.php?title=Running_a_development_version_of_Gramps
>>>>>
>>>>> But i receive an error while doing "./autogen.sh":
>>>>> checking Python bindings for gtk 2.10 (pygtk2>=2.10.0)... configure:
>>>>> error:
>>>>>
>>>>> **** The python bindings for gtk 2.10 (pygtk2>=2.10.0) could not be
>>>>> found.
>>>>>
>>>>> Here is the full output of autogen.sh: http://pastebin.com/UxLMv9D3
>>>>>
>>>>> The package pygtk (version 2.24.0-3) is installed on my system and
>>>>> something like pygtk-dev or -devel doesn't exist in the repository:
>>>>> http://www.archlinux.org/packages/?sort=&q=pygtk&maintainer=&last_update=&flagged=&limit=50
>>>>>
>>>>> Do you have any suggestions, what is missing or could go wrong?
>>>>>
>>>>> I running Archlinux.
>>>>> If you need further information, please feel free to ask!
>>>>>
>>>>> regards,
>>>>> Simon
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Better than sec? Nothing is better than sec when it comes to
>>>>> monitoring Big Data applications. Try Boundary one-second
>>>>> resolution app monitoring today. Free.
>>>>> http://p.sf.net/sfu/Boundary-dev2dev
>>>>> _______________________________________________
>>>>> Gramps-devel mailing list
>>>>> [hidden email]
>>>>> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>>>>
>>>> Hi
>>>>
>>>> ./autogen.sh --prefix=/usr PYTHON=python2
>>>> --
>>>> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>>
>> By default things wil go to /usr/locale but Arch use /usr as prefix.
>> For other options do:
>> ./configure --help
>>
>> Gramps cant be run with Python3 but we use python macro which check only min version not max one.
>>
>> --
>> Sent from my Android phone with K-9 Mail. Please excuse my brevity.


Hi,
please post to list or at least cc to list!

Gramps by default use pybsddb (one included in python), Arch only have
pybsdb3 (one developed outside python).
To enable that just change one line in src/config.py, see diffs

Index: src/config.py
===================================================================
--- src/config.py (revision 19282)
+++ src/config.py (working copy)
@@ -292,7 +292,7 @@
 register('preferences.use-last-view', True)
 register('preferences.last-view', '')
 register('preferences.last-views', [])
-register('preferences.use-bsddb3', False)
+register('preferences.use-bsddb3', True)

 register('researcher.researcher-addr', '')
 register('researcher.researcher-locality', '')


When building from source stuff already packaged by Arch if you don't
want to use ours source package then at least have look at how we did it ;-)

Let me further explain things.
Arch early adopted python3 as their main python instead python2 (good
decision i think; if small rolling-release distro can pull such thing
then everybody can :-))
However it was probably considered to be too early by other more
conservative distros so nobody newer asked Gramps to change their python
macro and configure script can be pointed to right one anyway.

Same thing with BDB, when pybsddb start having problem with newer
version we had to replace it with pybsddb3.
Gramps start support it when other mainstream distros begin to use it
also, but only as nondefault options.

I use Arch and love Arch!


--
Josip

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Building on archlinux

Simon Lenz
Hey,

I'm sorry for that. The google-mail webapp really isn't made for mailing-lists;)

Thanks for your explanation about the "why".
So I should have looked in the packagebuild of the archlinux-gramps package?
https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/gramps
And surprise..: Everything you have told me is in there...:D

For the future I'll keep that in mind!

And with changing the mentioned line to "True" gramps is starting now:)

regards,
Simon


On 11 April 2012 21:51, Josip <[hidden email]> wrote:

> On 11.04.2012 19:18, Simon Lenz wrote:
>> Thanks for the explanation!
>>
>> autogen and make worked as supposed, but if i try to run the trunk
>> verison with this line:
>> "GRAMPSHOME=/home/simon/dev/test_env python2 src/gramps.py"
>> it doesn't work.
>> "  File "/usr/lib/python2.7/bsddb/__init__.py", line 67, in <module>
>>     import _bsddb
>> ImportError: No module named _bsddb"
>>
>> I'm on revision 19299 and the "python-bsddb" package is installed.
>>
>> And my stable gramps installation GRAMPS: 3.3.1-1  (from the repo)
>> works without problems.
>>
>> regards
>>
>> On 11 April 2012 18:36, Josip <[hidden email]> wrote:
>>> Simon Lenz <[hidden email]> wrote:
>>>
>>>> Wow, thanks a lot!
>>>> So the problem was, that is uses "python" (which goes to python 3.2.2
>>>> on my system) but gramps needs python2?
>>>>
>>>> Could you shortly explain me, or give me a link about that
>>>> "--prefix=.." cannot find some usefull information on googling.
>>>>
>>>> regards and thanks a lot!:)
>>>>
>>>> On 11 April 2012 18:18, Josip <[hidden email]> wrote:
>>>>> Simon Lenz <[hidden email]> wrote:
>>>>>
>>>>>> Hello,
>>>>>>
>>>>>> I'm trying to contribute some code to the gramps-project.
>>>>>> In order to test my changes, I followed this wiki-page.
>>>>>> http://www.gramps-project.org/wiki/index.php?title=Running_a_development_version_of_Gramps
>>>>>>
>>>>>> But i receive an error while doing "./autogen.sh":
>>>>>> checking Python bindings for gtk 2.10 (pygtk2>=2.10.0)... configure:
>>>>>> error:
>>>>>>
>>>>>> **** The python bindings for gtk 2.10 (pygtk2>=2.10.0) could not be
>>>>>> found.
>>>>>>
>>>>>> Here is the full output of autogen.sh: http://pastebin.com/UxLMv9D3
>>>>>>
>>>>>> The package pygtk (version 2.24.0-3) is installed on my system and
>>>>>> something like pygtk-dev or -devel doesn't exist in the repository:
>>>>>> http://www.archlinux.org/packages/?sort=&q=pygtk&maintainer=&last_update=&flagged=&limit=50
>>>>>>
>>>>>> Do you have any suggestions, what is missing or could go wrong?
>>>>>>
>>>>>> I running Archlinux.
>>>>>> If you need further information, please feel free to ask!
>>>>>>
>>>>>> regards,
>>>>>> Simon
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Better than sec? Nothing is better than sec when it comes to
>>>>>> monitoring Big Data applications. Try Boundary one-second
>>>>>> resolution app monitoring today. Free.
>>>>>> http://p.sf.net/sfu/Boundary-dev2dev
>>>>>> _______________________________________________
>>>>>> Gramps-devel mailing list
>>>>>> [hidden email]
>>>>>> https://lists.sourceforge.net/lists/listinfo/gramps-devel
>>>>>
>>>>> Hi
>>>>>
>>>>> ./autogen.sh --prefix=/usr PYTHON=python2
>>>>> --
>>>>> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>>>
>>> By default things wil go to /usr/locale but Arch use /usr as prefix.
>>> For other options do:
>>> ./configure --help
>>>
>>> Gramps cant be run with Python3 but we use python macro which check only min version not max one.
>>>
>>> --
>>> Sent from my Android phone with K-9 Mail. Please excuse my brevity.
>
>
> Hi,
> please post to list or at least cc to list!
>
> Gramps by default use pybsddb (one included in python), Arch only have
> pybsdb3 (one developed outside python).
> To enable that just change one line in src/config.py, see diffs
>
> Index: src/config.py
> ===================================================================
> --- src/config.py       (revision 19282)
> +++ src/config.py       (working copy)
> @@ -292,7 +292,7 @@
>  register('preferences.use-last-view', True)
>  register('preferences.last-view', '')
>  register('preferences.last-views', [])
> -register('preferences.use-bsddb3', False)
> +register('preferences.use-bsddb3', True)
>
>  register('researcher.researcher-addr', '')
>  register('researcher.researcher-locality', '')
>
>
> When building from source stuff already packaged by Arch if you don't
> want to use ours source package then at least have look at how we did it ;-)
>
> Let me further explain things.
> Arch early adopted python3 as their main python instead python2 (good
> decision i think; if small rolling-release distro can pull such thing
> then everybody can :-))
> However it was probably considered to be too early by other more
> conservative distros so nobody newer asked Gramps to change their python
> macro and configure script can be pointed to right one anyway.
>
> Same thing with BDB, when pybsddb start having problem with newer
> version we had to replace it with pybsddb3.
> Gramps start support it when other mainstream distros begin to use it
> also, but only as nondefault options.
>
> I use Arch and love Arch!
>
>
> --
> Josip

------------------------------------------------------------------------------
Better than sec? Nothing is better than sec when it comes to
monitoring Big Data applications. Try Boundary one-second
resolution app monitoring today. Free.
http://p.sf.net/sfu/Boundary-dev2dev
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Loading...