Quantcast

No joy building Gramps 4.0.1 from source

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

No joy building Gramps 4.0.1 from source

Ron Johnson
Hi,

I downloaded the 4.0.1 tarball and extracted it to ~/gramps-4.0.1. Following
http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Build_Gramps_4.x 
, I ran "python setup.py build".  It spit out a *lot* of apparently clean
messages.

But there's no Gramps.py in ~/gramps-4.0.1.

ron@haggis:~/gramps-4.0.1$ python Gramps.py -v
python: can't open file 'Gramps.py': [Errno 2] No such file or directory

In fact, there seems to be no Gramps.py at all.

ron@haggis:~/gramps-4.0.1$ du -a | grep Gramps.py
ron@haggis:~/gramps-4.0.1$

What did I do wrong?

--
"Mundus vult decipi, ergo decipiatur"
Petronius


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No joy building Gramps 4.0.1 from source

Serge Noiraud-2
Le 06/07/2013 04:31, Ron Johnson a écrit :
> Hi,
>
> I downloaded the 4.0.1 tarball and extracted it to ~/gramps-4.0.1. Following
> http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Build_Gramps_4.x
> , I ran "python setup.py build".  It spit out a *lot* of apparently clean
> messages.
Can you send the results ?
On what distribution ?

>
> But there's no Gramps.py in ~/gramps-4.0.1.
>
> ron@haggis:~/gramps-4.0.1$ python Gramps.py -v
> python: can't open file 'Gramps.py': [Errno 2] No such file or directory
>
> In fact, there seems to be no Gramps.py at all.
>
> ron@haggis:~/gramps-4.0.1$ du -a | grep Gramps.py
> ron@haggis:~/gramps-4.0.1$
>
> What did I do wrong?
Nothing.

Serge

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No joy building Gramps 4.0.1 from source

enno
In reply to this post by Ron Johnson
Ron,
I downloaded the 4.0.1 tarball and extracted it to ~/gramps-4.0.1. Following 
http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Build_Gramps_4.x 
, I ran "python setup.py build".  It spit out a *lot* of apparently clean 
messages.

But there's no Gramps.py in ~/gramps-4.0.1.

[hidden email] python Gramps.py -v
python: can't open file 'Gramps.py': [Errno 2] No such file or directory

In fact, there seems to be no Gramps.py at all.

[hidden email] du -a | grep Gramps.py
[hidden email]

What did I do wrong?
Nothing. We did. Gramps.py should be there.

But now that you dare to build from source, why not skip to the next paragraph, and get the latest right away: http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Full_install_walkthrough_Gramps_4.0_Ubuntu_derivatives

You may need to replace https by http in the second line if you don't have a Gramps SF account.

regards,

Enno


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No joy building Gramps 4.0.1 from source

Ron Johnson
In reply to this post by Ron Johnson
On 07/06/2013 06:55 AM, Enno Borgsteede wrote:
Ron,
I downloaded the 4.0.1 tarball and extracted it to ~/gramps-4.0.1. Following 
http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Build_Gramps_4.x 
, I ran "python setup.py build".  It spit out a *lot* of apparently clean 
messages.

But there's no Gramps.py in ~/gramps-4.0.1.

[hidden email] python Gramps.py -v
python: can't open file 'Gramps.py': [Errno 2] No such file or directory

In fact, there seems to be no Gramps.py at all.

[hidden email] du -a | grep Gramps.py
[hidden email]

What did I do wrong?
Nothing. We did. Gramps.py should be there.

So, do I file a bug?


But now that you dare to build from source, why not skip to the next paragraph, and get the latest right away: http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Full_install_walkthrough_Gramps_4.0_Ubuntu_derivatives

You may need to replace https by http in the second line if you don't have a Gramps SF account.

I'd rather not ride the bleeding edge.
-- 
"Mundus vult decipi, ergo decipiatur"
Petronius

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No joy building Gramps 4.0.1 from source

enno
Ron,
On 07/06/2013 06:55 AM, Enno Borgsteede wrote:
Nothing. We did. Gramps.py should be there.
So, do I file a bug?
Yes, please do.


But now that you dare to build from source, why not skip to the next paragraph, and get the latest right away: http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Full_install_walkthrough_Gramps_4.0_Ubuntu_derivatives

You may need to replace https by http in the second line if you don't have a Gramps SF account.
I'd rather not ride the bleeding edge.
You won't. 4.0 is a maintenance branch, meaning that you get 4.0.x including every fix made and tested by us. In that way, it's much like the daily updates of Linux many people download without blinking.

You can of course also download the deb, if it fits your Linux version.

regards,

Enno


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No joy building Gramps 4.0.1 from source

Tim Lyons
Administrator
In reply to this post by Ron Johnson
Ron Johnson wrote
>> I downloaded the 4.0.1 tarball and extracted it to ~/gramps-4.0.1. Following
>> http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Build_Gramps_4.x 
>> , I ran "python setup.py build".  It spit out a *lot* of apparently clean
>> messages.
>>
>> But there's no Gramps.py in ~/gramps-4.0.1.
>>
>> ron@haggis:~/gramps-4.0.1$  python Gramps.py -v
>> python: can't open file 'Gramps.py': [Errno 2] No such file or directory
>>
>> In fact, there seems to be no Gramps.py at all.
>>
>> ron@haggis:~/gramps-4.0.1$  du -a | grep Gramps.py
>> ron@haggis:~/gramps-4.0.1$
>>
>> What did I do wrong?
> Nothing. We did. Gramps.py should be there.

So, do I file a bug?
Sounds strange. can you do an 'ls' in the gramps-4.0.1 directory - I think Gramps.py should be at the top level, so it would be interesting to see what is there.

Ron Johnson wrote
I'd rather not ride the bleeding edge.
Very wise!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No joy building Gramps 4.0.1 from source

enno
Tim,
> Sounds strange. can you do an 'ls' in the gramps-4.0.1 directory - I
> think Gramps.py should be at the top level, so it would be interesting
> to see what is there.
It's not there. I downloaded the tarball myself today to check.
> Ron Johnson wrote
>> I'd rather not ride the bleeding edge.
> Very wise!
Except that gramps40 is the bleeding edge in bug fixes!

cheers,

Enno


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No joy building Gramps 4.0.1 from source

Ron Johnson
In reply to this post by Ron Johnson
On 07/06/2013 01:40 PM, Tim Lyons wrote:

> Ron Johnson wrote
>>>> I downloaded the 4.0.1 tarball and extracted it to ~/gramps-4.0.1.
>>>> Following
>>>> http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Build_Gramps_4.x
>>>> , I ran "python setup.py build".  It spit out a *lot* of apparently
>>>> clean
>>>> messages.
>>>>
>>>> But there's no Gramps.py in ~/gramps-4.0.1.
>>>>
>>>> ron@haggis:~/gramps-4.0.1$  python Gramps.py -v
>>>> python: can't open file 'Gramps.py': [Errno 2] No such file or directory
>>>>
>>>> In fact, there seems to be no Gramps.py at all.
>>>>
>>>> ron@haggis:~/gramps-4.0.1$  du -a | grep Gramps.py
>>>> ron@haggis:~/gramps-4.0.1$
>>>>
>>>> What did I do wrong?
>>> Nothing. We did. Gramps.py should be there.
>> So, do I file a bug?
> Sounds strange. can you do an 'ls' in the gramps-4.0.1 directory - I think
> Gramps.py should be at the top level, so it would be interesting to see what
> is there.

ron@haggis:~/gramps-4.0.1$ LC_ALL=C ls -aFl --time-style=+"%F %T" --color
total 2892
drwxrwxr-x  15 ron ron    4096 2013-07-06 10:21:11 ./
drwxr-xr-x 172 ron ron   69632 2013-07-06 16:25:01 ../
-rw-rw-r--   1 ron ron    1847 2013-06-24 04:24:22 AUTHORS
-rw-rw-r--   1 ron ron   17982 2013-06-24 04:24:22 COPYING
-rw-rw-r--   1 ron ron 2563412 2013-06-24 04:17:53 ChangeLog
-rw-rw-r--   1 ron ron   19978 2013-06-24 04:24:22 FAQ
-rw-rw-r--   1 ron ron    3907 2013-06-24 04:24:22 INSTALL
-rw-rw-r--   1 ron ron   20399 2013-06-24 04:24:22 LICENSE
-rw-rw-r--   1 ron ron     754 2013-06-24 04:31:38 MANIFEST.in
-rw-rw-r--   1 ron ron   26541 2013-06-24 04:24:22 NEWS
-rw-rw-r--   1 ron ron     502 2013-06-24 04:32:38 PKG-INFO
-rw-rw-r--   1 ron ron    5427 2013-06-24 04:24:22 README
-rw-rw-r--   1 ron ron    3170 2013-06-24 04:24:22 RELEASE_NOTES
-rw-rw-r--   1 ron ron      61 2013-06-24 04:24:22 TODO
-rw-rw-r--   1 ron ron    4703 2013-06-24 04:24:22 TestPlan.txt
drwxrwxr-x   6 ron ron    4096 2013-07-05 21:20:54 build/
drwxrwxr-x   6 ron ron    4096 2013-07-05 21:20:53 data/
drwxrwxr-x   2 ron ron    4096 2013-06-24 04:32:36 debian/
drwxrwxr-x   5 ron ron    4096 2013-06-24 04:32:36 docs/
drwxrwxr-x   4 ron ron    4096 2013-06-24 04:32:36 example/
drwxrwxr-x   8 ron ron    4096 2013-07-05 21:20:44 gramps/
drwxrwxr-x   2 ron ron    4096 2013-06-24 04:32:38 help/
drwxrwxr-x   7 ron ron    4096 2013-06-24 04:32:38 images/
drwxrwxr-x   2 ron ron    4096 2013-06-24 04:32:38 mac/
drwxrwxr-x   3 ron ron    4096 2013-07-05 21:20:53 po/
drwxrwxr-x   2 ron ron    4096 2013-06-24 04:32:38 scripts/
-rw-rw-r--   1 ron ron   17621 2013-06-24 04:24:22 setup.py
-rw-rw-r--   1 ron ron  110660 2013-07-06 10:20:44 setup_build.txt
drwxrwxr-x   5 ron ron    4096 2013-06-24 04:32:38 test/
drwxrwxr-x   4 ron ron    4096 2013-06-24 04:32:38 windows/


--
"Mundus vult decipi, ergo decipiatur"
Petronius


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No joy building Gramps 4.0.1 from source

jerome
In reply to this post by Serge Noiraud-2
It seems that Gramps.py is present when building from SVN source, not from the tarball, where devs do not need to test version: we only need to build and install, then run from the launcher (or CLI).


--- En date de : Sam 6.7.13, Serge Noiraud <[hidden email]> a écrit :

> De: Serge Noiraud <[hidden email]>
> Objet: Re: [Gramps-users] No joy building Gramps 4.0.1 from source
> À: "Ron Johnson" <[hidden email]>
> Cc: [hidden email]
> Date: Samedi 6 juillet 2013, 11h41
> Le 06/07/2013 04:31, Ron Johnson a
> écrit :
> > Hi,
> >
> > I downloaded the 4.0.1 tarball and extracted it to
> ~/gramps-4.0.1. Following
> > http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Build_Gramps_4.x
> > , I ran "python setup.py build".  It spit out a
> *lot* of apparently clean
> > messages.
> Can you send the results ?
> On what distribution ?
> >
> > But there's no Gramps.py in ~/gramps-4.0.1.
> >
> > ron@haggis:~/gramps-4.0.1$ python Gramps.py -v
> > python: can't open file 'Gramps.py': [Errno 2] No such
> file or directory
> >
> > In fact, there seems to be no Gramps.py at all.
> >
> > ron@haggis:~/gramps-4.0.1$ du -a | grep Gramps.py
> > ron@haggis:~/gramps-4.0.1$
> >
> > What did I do wrong?
> Nothing.
>
> Serge
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No joy building Gramps 4.0.1 from source

enno
Jerome,
> It seems that Gramps.py is present when building from SVN source, not from the tarball, where devs do not need to test version: we only need to build and install, then run from the launcher (or CLI).
So it is inconsistent, because the INSTALL file in the tarball mentions
the use of Gramps.py to run without installing. Easiest way to solve is
add Gramps.py, so that the tarball is more like a snapshot of the source.

And personally, I think running from a maintenance branch is still
better than running from the tarball, because the latest fixes are in
that branch, and tested too.

regards,

Enno


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No joy building Gramps 4.0.1 from source

jerome
If need, add Gramps.py reference somewhere in MANIFEST.in!

http://sourceforge.net/p/gramps/code/HEAD/tree/branches/maintenance/gramps40/MANIFEST.in

--- En date de : Dim 7.7.13, Enno Borgsteede <[hidden email]> a écrit :

> De: Enno Borgsteede <[hidden email]>
> Objet: Re: [Gramps-users] No joy building Gramps 4.0.1 from source
> À: [hidden email]
> Date: Dimanche 7 juillet 2013, 13h53
> Jerome,
> > It seems that Gramps.py is present when building from
> SVN source, not from the tarball, where devs do not need to
> test version: we only need to build and install, then run
> from the launcher (or CLI).
> So it is inconsistent, because the INSTALL file in the
> tarball mentions
> the use of Gramps.py to run without installing. Easiest way
> to solve is
> add Gramps.py, so that the tarball is more like a snapshot
> of the source.
>
> And personally, I think running from a maintenance branch is
> still
> better than running from the tarball, because the latest
> fixes are in
> that branch, and tested too.
>
> regards,
>
> Enno
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: No joy building Gramps 4.0.1 from source

Benny Malengier
In reply to this post by jerome



2013/7/7 jerome <[hidden email]>
It seems that Gramps.py is present when building from SVN source, not from the tarball, where devs do not need to test version: we only need to build and install, then run from the launcher (or CLI).

Well, we don't want to install Gramps.py, so it will not go into the build directory, even if distributed.
Even if we would put it in build, it would be in the wrong directory there.
So not distributing it in the tar file is correct, the doc must change to reflect that Gramps.py is only for those that check out the code repository. Gramps.py is a fake file to allow developers to run code from the source dir, not what the user should be doing.

With a tarbal, gramps should be run from the build directory, or from installed version (which can be installed locally).

python setup.py build

#go to where the scripts are installed:

cd build/scripts-2.7

#in build GRAMPS_RESOURCES must also be set to actually run it:

GRAMPS_RESOURCES=/home/benny/gramps/branches/maintenance/gramps40/build/lib.linux-x86_64-2.7/  PYTHONPATH=$GRAMPS_RESOURCES:$PYTHONPATH ./gramps


I dislike that GRAMPS_RESOURCES must be set from build, it would be nice if that would not be needed from the build directory, but ok, build is just an in between stage.

Running from build is only to try out before a real install, and that works, eg install to a test directory:

python setup.py install --root ~/gramps/test
cd ~/gramps/test/usr/local/bin

#as this is a test dir, PYTHONPATH must be set to point to the locally installed gramps package :

PYTHONPATH=~/gramps/test/usr/local/lib/python2.7/dist-packages/:$PYTHONPATH ./gramps


Sombody update INSTALL and wiki doc to reflect this correctly?

Benny


--- En date de : Sam 6.7.13, Serge Noiraud <[hidden email]> a écrit :

> De: Serge Noiraud <[hidden email]>
> Objet: Re: [Gramps-users] No joy building Gramps 4.0.1 from source
> À: "Ron Johnson" <[hidden email]>
> Cc: [hidden email]
> Date: Samedi 6 juillet 2013, 11h41
> Le 06/07/2013 04:31, Ron Johnson a
> écrit :
> > Hi,
> >
> > I downloaded the 4.0.1 tarball and extracted it to
> ~/gramps-4.0.1. Following
> > http://www.gramps-project.org/wiki/index.php?title=Linux:Build_from_source#Build_Gramps_4.x
> > , I ran "python setup.py build".  It spit out a
> *lot* of apparently clean
> > messages.
> Can you send the results ?
> On what distribution ?
> >
> > But there's no Gramps.py in ~/gramps-4.0.1.
> >
> > ron@haggis:~/gramps-4.0.1$ python Gramps.py -v
> > python: can't open file 'Gramps.py': [Errno 2] No such
> file or directory
> >
> > In fact, there seems to be no Gramps.py at all.
> >
> > ron@haggis:~/gramps-4.0.1$ du -a | grep Gramps.py
> > ron@haggis:~/gramps-4.0.1$
> >
> > What did I do wrong?
> Nothing.
>
> Serge
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Windows:
>
> Build for Windows Store.
>
> http://p.sf.net/sfu/windows-dev2dev
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users
>

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Loading...