proposed patch (date-format report option)

classic Classic list List threaded Threaded
83 messages Options
12345
Reply | Threaded
Open this post in threaded view
|

Re: proposed patch (date-format report option)

Paul Franklin-5
On 3/18/17, Dave Khuon <[hidden email]> wrote:
> I appreciate being included for testing and bug reporting for this product.

Download the patch attached to this bug report:

> https://gramps-project.org/bugs/view.php?id=9985

Download the (last) patch attached to this thread.

Apply them both, to a local copy of the gramps "master"
repo (from github), using only a /copy/ of your real tree.

See what happens ...


Ask here on the list if you have any question about gramps.
We are always happy to have new developers.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: proposed patch (date-format report option)

Paul Franklin-5
Hi Dave,

> Sorry, I am very new to this environment.  I got jdk 1.6, liClipse, Github
> installed, and clone the repository to my local workspace.  And configed
> the
> liClipse – pydev to the Gramps source code (see picture at the bottom).

We have a Windows developer who would probably be the
best person to give you advice about that sort of thing.  But
as we are all volunteers you might have to wait until he has
time to read the list, and respond.  I think he has some IDE.

> Before doing anything I would like to be able have a dry run of gramps, to
> know where I am first.  I am not sure what to do next. I am using Windows
> 10.

He does too.

A dry run sounds like a good idea.  Don't try to run before
you can walk, etc.  I'd forget about the patches for a while.

> 1. How to build and run Gramps from the IDE? Or thru cmd lines (and
> with any set environment variables?)
> a. python setup.py build
> b. python src/gramps.py

I don't use an IDE so I can't advise you there.

But I do run gramps from the command line and I can say
that those two lines are the right idea.  It will depend on if
you have some "python" installed, which you can use from
the command line.  It may be called "python" or "python3".
But indeed the "build" comes first (don't do an "install").

But whatever place you saw "src/gramps.py" needs to be
updated.  (Anybody can get a wiki account.  Volunteers are
welcomed there too.  8-)  The current invocation is now
"python Gramps.py" (with a capital-G), except of course it
may be "python3" for you (it is for me, since my machine
has both versions, but others say "python" and get Py3).

I don't /have/ to set any environmental variable, but I often
choose to set GRAMPSHOME to differentiate different trees
(or languages, or gramps versions, etc.)  But you don't have
to and maybe at the start you shouldn't bother.

HTH.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: proposed patch (date-format report option)

Paul Franklin-5
> A dry run sounds like a good idea.  Don't try to run before
> you can walk, etc.  I'd forget about the patches for a while.

And you might want to start a new thread?

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

new Windows developer - was: proposed patch (date-format report option)

enno
In reply to this post by dave.khuon@gmail.com
Hi Dave,

> I appreciate being included for testing and bug reporting for this product.
> I am a newbie to this forum.  My past experiences were primarily MS  .Net /
> C#, some coding experiences in Java and Python.  I am a retired programmer,
> and am thrilled for the possibility to get busy on some good cause projects.
>
> I am currently setting up a development environment (LiClipse) by following
> the guideline of "Getting started with Gramps development", in order to
> further my understanding of Gramps.  I am wondering if later I could get
> some helps from anyone here, if I run into trouble.
Here's another welcome to the list, and an idea. I see that you have
experiences with MS .Net C#, which almost certainly means that you've
worked with Visual Studio, and maybe still use it at home.

With that in mind, I wonder if you'd be willing to experiment with that
for Gramps development. I've noticed that Visual Studio and Visual
Studio Code come with Git integration, and that Python extensions are
available too, so I assume that both can be configured to build and run
Gramps in similar ways as already described on the wiki.

What I mean is that if the proper packages are installed, you should be
able to work with Git, and start the build and run commands right from
Visual Studio (Code) and thereby stick with the tools that you feel
comfortable with, using the information on

https://gramps-project.org/wiki/index.php?title=Getting_started_with_Gramps_development

Note that where this page says python, you may actually need to use
python3, to make sure that you run the right version if you have both
Python 2 and 3 in your path.

> I am interested in customizing (add-on) Descendent Reports, and the build
> process required to submit my add-ons.  Nonetheless, I welcome any
> opportunity to serve, for this project.
I'm afraid that I can't help you with that on Windows. I see that we
have a special page for the subject at

https://gramps-project.org/wiki/index.php?title=Addons_development

but this page concentrates on Linux, so I don't really know how well
things work on Windows yet. I suspect that it can work, and that you can
work with the same tools that you already need to work on the main program.

I use Visual Studio at work, but still use the command line for my hacks
on Gramps, in Linux Mint, so I can't give you more hints right now. But
if you can get it to work with VS, I'm very much interested in how it is
done.

Cheers,

Enno


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

prculley
Dave;
I am the Gramps developer that uses Windows as my development env.  I use Eclipse as my IDE with some of the bigger edits using Notepad++.

I'm afraid that I have never actually set up a full Gramps build environment with all the dependencies.  The only dev who has that that for Windows that I am aware of is Josip.  What I have done is to use the packaged AIO for Gramps as the place to work.

Prior to the most recent releases, Josip (who prepares the AIO) had included all of Python, Gtk, and other dependencies as well as some other useful utilities in the package.  That made it easy to get started, all I had to do is start my Eclipse project by pointing to the AIO Python, and tell it to run the grampsapp.py module.

I used some links to point the AIO python Gramps code to my Git repo.


Unfortunately Josip has recently put Gramps AIO an a diet, he seriously shrunk the download by removing a lot of things and only including compiled versions of library modules etc.

You can still try my method if you want, if you want to work with the master branch, try starting with the https://github.com/gramps-project/gramps/releases/download/v5.0.0-alpha1/GrampsAIO-5.0.0-alpha1_win64.exe distribution, which includes everything.  The newer one doesn't.

If you are interested in Gramps 4.2.x branch, I suggest https://github.com/gramps-project/gramps/releases/download/v4.2.4/GrampsAIO-4.2.4-3_win64.exe
as 4.2.5 is the slimmed down version.

I've started trying to set up a full environment like Josip has, but it is slow going, getting all the dependencies in the right format (gcc compiled) and the right versions seems to mean compiling a lot of modules, after finding the exactly correct versions.  As I have been co-opted into some spring cleaning and home maintenance lately, I have not had time to complete this.

As Enno suggests, you could potentially do this with MS tool-chain as well, and it might even be easier, but the end result would be different that the current AIO.

Feel free to ask questions, and good luck.

Paul Culley

On Sun, Mar 19, 2017 at 7:43 AM, Enno Borgsteede <[hidden email]> wrote:
Hi Dave,

> I appreciate being included for testing and bug reporting for this product.
> I am a newbie to this forum.  My past experiences were primarily MS  .Net /
> C#, some coding experiences in Java and Python.  I am a retired programmer,
> and am thrilled for the possibility to get busy on some good cause projects.
>
> I am currently setting up a development environment (LiClipse) by following
> the guideline of "Getting started with Gramps development", in order to
> further my understanding of Gramps.  I am wondering if later I could get
> some helps from anyone here, if I run into trouble.
Here's another welcome to the list, and an idea. I see that you have
experiences with MS .Net C#, which almost certainly means that you've
worked with Visual Studio, and maybe still use it at home.

With that in mind, I wonder if you'd be willing to experiment with that
for Gramps development. I've noticed that Visual Studio and Visual
Studio Code come with Git integration, and that Python extensions are
available too, so I assume that both can be configured to build and run
Gramps in similar ways as already described on the wiki.

What I mean is that if the proper packages are installed, you should be
able to work with Git, and start the build and run commands right from
Visual Studio (Code) and thereby stick with the tools that you feel
comfortable with, using the information on

https://gramps-project.org/wiki/index.php?title=Getting_started_with_Gramps_development

Note that where this page says python, you may actually need to use
python3, to make sure that you run the right version if you have both
Python 2 and 3 in your path.

> I am interested in customizing (add-on) Descendent Reports, and the build
> process required to submit my add-ons.  Nonetheless, I welcome any
> opportunity to serve, for this project.
I'm afraid that I can't help you with that on Windows. I see that we
have a special page for the subject at

https://gramps-project.org/wiki/index.php?title=Addons_development

but this page concentrates on Linux, so I don't really know how well
things work on Windows yet. I suspect that it can work, and that you can
work with the same tools that you already need to work on the main program.

I use Visual Studio at work, but still use the command line for my hacks
on Gramps, in Linux Mint, so I can't give you more hints right now. But
if you can get it to work with VS, I'm very much interested in how it is
done.

Cheers,

Enno


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

Gerald Britton-2
Fwiw I'm having a go at setting up a visual studio enterprise project. Let you know how it goes. This is vs2015. Will be easier when vs2017 adds Python support. Directory based projects.

On Mar 19, 2017 9:19 AM, "Paul Culley" <[hidden email]> wrote:
Dave;
I am the Gramps developer that uses Windows as my development env.  I use Eclipse as my IDE with some of the bigger edits using Notepad++.

I'm afraid that I have never actually set up a full Gramps build environment with all the dependencies.  The only dev who has that that for Windows that I am aware of is Josip.  What I have done is to use the packaged AIO for Gramps as the place to work.

Prior to the most recent releases, Josip (who prepares the AIO) had included all of Python, Gtk, and other dependencies as well as some other useful utilities in the package.  That made it easy to get started, all I had to do is start my Eclipse project by pointing to the AIO Python, and tell it to run the grampsapp.py module.

I used some links to point the AIO python Gramps code to my Git repo.


Unfortunately Josip has recently put Gramps AIO an a diet, he seriously shrunk the download by removing a lot of things and only including compiled versions of library modules etc.

You can still try my method if you want, if you want to work with the master branch, try starting with the https://github.com/gramps-project/gramps/releases/download/v5.0.0-alpha1/GrampsAIO-5.0.0-alpha1_win64.exe distribution, which includes everything.  The newer one doesn't.

If you are interested in Gramps 4.2.x branch, I suggest https://github.com/gramps-project/gramps/releases/download/v4.2.4/GrampsAIO-4.2.4-3_win64.exe
as 4.2.5 is the slimmed down version.

I've started trying to set up a full environment like Josip has, but it is slow going, getting all the dependencies in the right format (gcc compiled) and the right versions seems to mean compiling a lot of modules, after finding the exactly correct versions.  As I have been co-opted into some spring cleaning and home maintenance lately, I have not had time to complete this.

As Enno suggests, you could potentially do this with MS tool-chain as well, and it might even be easier, but the end result would be different that the current AIO.

Feel free to ask questions, and good luck.

Paul Culley

On Sun, Mar 19, 2017 at 7:43 AM, Enno Borgsteede <[hidden email]> wrote:
Hi Dave,

> I appreciate being included for testing and bug reporting for this product.
> I am a newbie to this forum.  My past experiences were primarily MS  .Net /
> C#, some coding experiences in Java and Python.  I am a retired programmer,
> and am thrilled for the possibility to get busy on some good cause projects.
>
> I am currently setting up a development environment (LiClipse) by following
> the guideline of "Getting started with Gramps development", in order to
> further my understanding of Gramps.  I am wondering if later I could get
> some helps from anyone here, if I run into trouble.
Here's another welcome to the list, and an idea. I see that you have
experiences with MS .Net C#, which almost certainly means that you've
worked with Visual Studio, and maybe still use it at home.

With that in mind, I wonder if you'd be willing to experiment with that
for Gramps development. I've noticed that Visual Studio and Visual
Studio Code come with Git integration, and that Python extensions are
available too, so I assume that both can be configured to build and run
Gramps in similar ways as already described on the wiki.

What I mean is that if the proper packages are installed, you should be
able to work with Git, and start the build and run commands right from
Visual Studio (Code) and thereby stick with the tools that you feel
comfortable with, using the information on

https://gramps-project.org/wiki/index.php?title=Getting_started_with_Gramps_development

Note that where this page says python, you may actually need to use
python3, to make sure that you run the right version if you have both
Python 2 and 3 in your path.

> I am interested in customizing (add-on) Descendent Reports, and the build
> process required to submit my add-ons.  Nonetheless, I welcome any
> opportunity to serve, for this project.
I'm afraid that I can't help you with that on Windows. I see that we
have a special page for the subject at

https://gramps-project.org/wiki/index.php?title=Addons_development

but this page concentrates on Linux, so I don't really know how well
things work on Windows yet. I suspect that it can work, and that you can
work with the same tools that you already need to work on the main program.

I use Visual Studio at work, but still use the command line for my hacks
on Gramps, in Linux Mint, so I can't give you more hints right now. But
if you can get it to work with VS, I'm very much interested in how it is
done.

Cheers,

Enno


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

John Ralls-2

On Mar 19, 2017, at 10:15 AM, Gerald Britton <[hidden email]> wrote:

Fwiw I'm having a go at setting up a visual studio enterprise project. Let you know how it goes. This is vs2015. Will be easier when vs2017 adds Python support. Directory based projects.

On Mar 19, 2017 9:19 AM, "Paul Culley" <[hidden email]> wrote:
Dave;
I am the Gramps developer that uses Windows as my development env.  I use Eclipse as my IDE with some of the bigger edits using Notepad++.

I'm afraid that I have never actually set up a full Gramps build environment with all the dependencies.  The only dev who has that that for Windows that I am aware of is Josip.  What I have done is to use the packaged AIO for Gramps as the place to work.

Prior to the most recent releases, Josip (who prepares the AIO) had included all of Python, Gtk, and other dependencies as well as some other useful utilities in the package.  That made it easy to get started, all I had to do is start my Eclipse project by pointing to the AIO Python, and tell it to run the grampsapp.py module.

I used some links to point the AIO python Gramps code to my Git repo.


Unfortunately Josip has recently put Gramps AIO an a diet, he seriously shrunk the download by removing a lot of things and only including compiled versions of library modules etc.

You can still try my method if you want, if you want to work with the master branch, try starting with the https://github.com/gramps-project/gramps/releases/download/v5.0.0-alpha1/GrampsAIO-5.0.0-alpha1_win64.exe distribution, which includes everything.  The newer one doesn't.

If you are interested in Gramps 4.2.x branch, I suggest https://github.com/gramps-project/gramps/releases/download/v4.2.4/GrampsAIO-4.2.4-3_win64.exe
as 4.2.5 is the slimmed down version.

I've started trying to set up a full environment like Josip has, but it is slow going, getting all the dependencies in the right format (gcc compiled) and the right versions seems to mean compiling a lot of modules, after finding the exactly correct versions.  As I have been co-opted into some spring cleaning and home maintenance lately, I have not had time to complete this.

As Enno suggests, you could potentially do this with MS tool-chain as well, and it might even be easier, but the end result would be different that the current AIO.

Feel free to ask questions, and good luck.

Paul Culley

On Sun, Mar 19, 2017 at 7:43 AM, Enno Borgsteede <[hidden email]> wrote:
Hi Dave,

> I appreciate being included for testing and bug reporting for this product.
> I am a newbie to this forum.  My past experiences were primarily MS  .Net /
> C#, some coding experiences in Java and Python.  I am a retired programmer,
> and am thrilled for the possibility to get busy on some good cause projects.
>
> I am currently setting up a development environment (LiClipse) by following
> the guideline of "Getting started with Gramps development", in order to
> further my understanding of Gramps.  I am wondering if later I could get
> some helps from anyone here, if I run into trouble.
Here's another welcome to the list, and an idea. I see that you have
experiences with MS .Net C#, which almost certainly means that you've
worked with Visual Studio, and maybe still use it at home.

With that in mind, I wonder if you'd be willing to experiment with that
for Gramps development. I've noticed that Visual Studio and Visual
Studio Code come with Git integration, and that Python extensions are
available too, so I assume that both can be configured to build and run
Gramps in similar ways as already described on the wiki.

What I mean is that if the proper packages are installed, you should be
able to work with Git, and start the build and run commands right from
Visual Studio (Code) and thereby stick with the tools that you feel
comfortable with, using the information on

https://gramps-project.org/wiki/index.php?title=Getting_started_with_Gramps_development

Note that where this page says python, you may actually need to use
python3, to make sure that you run the right version if you have both
Python 2 and 3 in your path.

> I am interested in customizing (add-on) Descendent Reports, and the build
> process required to submit my add-ons.  Nonetheless, I welcome any
> opportunity to serve, for this project.
I'm afraid that I can't help you with that on Windows. I see that we
have a special page for the subject at

https://gramps-project.org/wiki/index.php?title=Addons_development

but this page concentrates on Linux, so I don't really know how well
things work on Windows yet. I suspect that it can work, and that you can
work with the same tools that you already need to work on the main program.

I use Visual Studio at work, but still use the command line for my hacks
on Gramps, in Linux Mint, so I can't give you more hints right now. But
if you can get it to work with VS, I'm very much interested in how it is
done.

Cheers,

Enno


Gerald,

Wow. That's a daunting exercise. Are you actually building the whole dependency stack in VS or do some of your sub-projects delegate the build to Cygwin/MinGW?

Regards,
John Ralls



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

Gerald Britton-2
Good questions John!  The dependencies will certainly be the tricky part.  e.g. it fails immediately at:

try:
    #import gnome introspection, part of pygobject
    import gi
    GIVERSION = gi.require_version
except:
    print(_("Your version of gi (gnome-introspection) seems to be too old. "
            "You need a version which has the function 'require_version' "
            "to start Gramps"))
    sys.exit(1)

Which is hardly surprising given that there is no Gnome!  However, your hint about Cygwin/MIngW is interesting.  I'll need to follow that up and see if I get hopelessly stuck.  

fwiw VS handles references rather well.  which should mean that if I can get the right binaries, I might be able to make it work



On Sun, Mar 19, 2017 at 1:24 PM, John Ralls <[hidden email]> wrote:

On Mar 19, 2017, at 10:15 AM, Gerald Britton <[hidden email]> wrote:

Fwiw I'm having a go at setting up a visual studio enterprise project. Let you know how it goes. This is vs2015. Will be easier when vs2017 adds Python support. Directory based projects.

On Mar 19, 2017 9:19 AM, "Paul Culley" <[hidden email]> wrote:
Dave;
I am the Gramps developer that uses Windows as my development env.  I use Eclipse as my IDE with some of the bigger edits using Notepad++.

I'm afraid that I have never actually set up a full Gramps build environment with all the dependencies.  The only dev who has that that for Windows that I am aware of is Josip.  What I have done is to use the packaged AIO for Gramps as the place to work.

Prior to the most recent releases, Josip (who prepares the AIO) had included all of Python, Gtk, and other dependencies as well as some other useful utilities in the package.  That made it easy to get started, all I had to do is start my Eclipse project by pointing to the AIO Python, and tell it to run the grampsapp.py module.

I used some links to point the AIO python Gramps code to my Git repo.


Unfortunately Josip has recently put Gramps AIO an a diet, he seriously shrunk the download by removing a lot of things and only including compiled versions of library modules etc.

You can still try my method if you want, if you want to work with the master branch, try starting with the https://github.com/gramps-project/gramps/releases/download/v5.0.0-alpha1/GrampsAIO-5.0.0-alpha1_win64.exe distribution, which includes everything.  The newer one doesn't.

If you are interested in Gramps 4.2.x branch, I suggest https://github.com/gramps-project/gramps/releases/download/v4.2.4/GrampsAIO-4.2.4-3_win64.exe
as 4.2.5 is the slimmed down version.

I've started trying to set up a full environment like Josip has, but it is slow going, getting all the dependencies in the right format (gcc compiled) and the right versions seems to mean compiling a lot of modules, after finding the exactly correct versions.  As I have been co-opted into some spring cleaning and home maintenance lately, I have not had time to complete this.

As Enno suggests, you could potentially do this with MS tool-chain as well, and it might even be easier, but the end result would be different that the current AIO.

Feel free to ask questions, and good luck.

Paul Culley

On Sun, Mar 19, 2017 at 7:43 AM, Enno Borgsteede <[hidden email]> wrote:
Hi Dave,

> I appreciate being included for testing and bug reporting for this product.
> I am a newbie to this forum.  My past experiences were primarily MS  .Net /
> C#, some coding experiences in Java and Python.  I am a retired programmer,
> and am thrilled for the possibility to get busy on some good cause projects.
>
> I am currently setting up a development environment (LiClipse) by following
> the guideline of "Getting started with Gramps development", in order to
> further my understanding of Gramps.  I am wondering if later I could get
> some helps from anyone here, if I run into trouble.
Here's another welcome to the list, and an idea. I see that you have
experiences with MS .Net C#, which almost certainly means that you've
worked with Visual Studio, and maybe still use it at home.

With that in mind, I wonder if you'd be willing to experiment with that
for Gramps development. I've noticed that Visual Studio and Visual
Studio Code come with Git integration, and that Python extensions are
available too, so I assume that both can be configured to build and run
Gramps in similar ways as already described on the wiki.

What I mean is that if the proper packages are installed, you should be
able to work with Git, and start the build and run commands right from
Visual Studio (Code) and thereby stick with the tools that you feel
comfortable with, using the information on

https://gramps-project.org/wiki/index.php?title=Getting_started_with_Gramps_development

Note that where this page says python, you may actually need to use
python3, to make sure that you run the right version if you have both
Python 2 and 3 in your path.

> I am interested in customizing (add-on) Descendent Reports, and the build
> process required to submit my add-ons.  Nonetheless, I welcome any
> opportunity to serve, for this project.
I'm afraid that I can't help you with that on Windows. I see that we
have a special page for the subject at

https://gramps-project.org/wiki/index.php?title=Addons_development

but this page concentrates on Linux, so I don't really know how well
things work on Windows yet. I suspect that it can work, and that you can
work with the same tools that you already need to work on the main program.

I use Visual Studio at work, but still use the command line for my hacks
on Gramps, in Linux Mint, so I can't give you more hints right now. But
if you can get it to work with VS, I'm very much interested in how it is
done.

Cheers,

Enno


Gerald,

Wow. That's a daunting exercise. Are you actually building the whole dependency stack in VS or do some of your sub-projects delegate the build to Cygwin/MinGW?

Regards,
John Ralls





--
Gerald Britton, MCSE-DP, MVP
LinkedIn Profile: http://ca.linkedin.com/in/geraldbritton

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

dave.khuon@gmail.com
In reply to this post by John Ralls-2

I installed VS 2017 Community Ed.  Python does not show in the supported project type template. 

 

I tried rerun VS 2017 installer, rerun modify.  No sign of whether Python is supported (unlike in VS 2015). 

 

Don’t know what is going on.

-dave

 

From: John Ralls [mailto:[hidden email]]
Sent: Sunday, March 19, 2017 12:25 PM
To: Gerald Britton
Cc: Gramps Development List
Subject: Re: [Gramps-devel] new Windows developer - was: proposed patch (date-format report option)

 

 

On Mar 19, 2017, at 10:15 AM, Gerald Britton <[hidden email]> wrote:

 

Fwiw I'm having a go at setting up a visual studio enterprise project. Let you know how it goes. This is vs2015. Will be easier when vs2017 adds Python support. Directory based projects.

 

On Mar 19, 2017 9:19 AM, "Paul Culley" <[hidden email]> wrote:

Dave;

I am the Gramps developer that uses Windows as my development env.  I use Eclipse as my IDE with some of the bigger edits using Notepad++.

I'm afraid that I have never actually set up a full Gramps build environment with all the dependencies.  The only dev who has that that for Windows that I am aware of is Josip.  What I have done is to use the packaged AIO for Gramps as the place to work.

Prior to the most recent releases, Josip (who prepares the AIO) had included all of Python, Gtk, and other dependencies as well as some other useful utilities in the package.  That made it easy to get started, all I had to do is start my Eclipse project by pointing to the AIO Python, and tell it to run the grampsapp.py module.

I used some links to point the AIO python Gramps code to my Git repo.

 

Unfortunately Josip has recently put Gramps AIO an a diet, he seriously shrunk the download by removing a lot of things and only including compiled versions of library modules etc.

You can still try my method if you want, if you want to work with the master branch, try starting with the https://github.com/gramps-project/gramps/releases/download/v5.0.0-alpha1/GrampsAIO-5.0.0-alpha1_win64.exe distribution, which includes everything.  The newer one doesn't.

If you are interested in Gramps 4.2.x branch, I suggest https://github.com/gramps-project/gramps/releases/download/v4.2.4/GrampsAIO-4.2.4-3_win64.exe

as 4.2.5 is the slimmed down version.

I've started trying to set up a full environment like Josip has, but it is slow going, getting all the dependencies in the right format (gcc compiled) and the right versions seems to mean compiling a lot of modules, after finding the exactly correct versions.  As I have been co-opted into some spring cleaning and home maintenance lately, I have not had time to complete this.

As Enno suggests, you could potentially do this with MS tool-chain as well, and it might even be easier, but the end result would be different that the current AIO.

Feel free to ask questions, and good luck.

Paul Culley

 

On Sun, Mar 19, 2017 at 7:43 AM, Enno Borgsteede <[hidden email]> wrote:

Hi Dave,

> I appreciate being included for testing and bug reporting for this product.
> I am a newbie to this forum.  My past experiences were primarily MS  .Net /
> C#, some coding experiences in Java and Python.  I am a retired programmer,
> and am thrilled for the possibility to get busy on some good cause projects.
>
> I am currently setting up a development environment (LiClipse) by following
> the guideline of "Getting started with Gramps development", in order to
> further my understanding of Gramps.  I am wondering if later I could get
> some helps from anyone here, if I run into trouble.
Here's another welcome to the list, and an idea. I see that you have
experiences with MS .Net C#, which almost certainly means that you've
worked with Visual Studio, and maybe still use it at home.

With that in mind, I wonder if you'd be willing to experiment with that
for Gramps development. I've noticed that Visual Studio and Visual
Studio Code come with Git integration, and that Python extensions are
available too, so I assume that both can be configured to build and run
Gramps in similar ways as already described on the wiki.

What I mean is that if the proper packages are installed, you should be
able to work with Git, and start the build and run commands right from
Visual Studio (Code) and thereby stick with the tools that you feel
comfortable with, using the information on

https://gramps-project.org/wiki/index.php?title=Getting_started_with_Gramps_development

Note that where this page says python, you may actually need to use
python3, to make sure that you run the right version if you have both
Python 2 and 3 in your path.

> I am interested in customizing (add-on) Descendent Reports, and the build
> process required to submit my add-ons.  Nonetheless, I welcome any
> opportunity to serve, for this project.
I'm afraid that I can't help you with that on Windows. I see that we
have a special page for the subject at

https://gramps-project.org/wiki/index.php?title=Addons_development

but this page concentrates on Linux, so I don't really know how well
things work on Windows yet. I suspect that it can work, and that you can
work with the same tools that you already need to work on the main program.

I use Visual Studio at work, but still use the command line for my hacks
on Gramps, in Linux Mint, so I can't give you more hints right now. But
if you can get it to work with VS, I'm very much interested in how it is
done.

Cheers,

Enno

 

Gerald,

 

Wow. That's a daunting exercise. Are you actually building the whole dependency stack in VS or do some of your sub-projects delegate the build to Cygwin/MinGW?

 

Regards,

John Ralls

 

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

manzi.sam
CONTENTS DELETED
The author has deleted this message.
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

dave.khuon@gmail.com

Hi Sam,

 

I hesitate to download the preview version of vs 2017, until knowing:

1.       This version would run side by side with the 2017 Community Ed

2.       If eventually Python is available on the 2017 Comm Ed, the removal of the preview will be clean, not like other Microsoft products (DLL hell, for example).

 

For these reasons, I am willing to experiment with VS 2015, with Python Tools extensions which are already installed and setup.  Not knowing how to hook the Gramps source code to VS 2015 (project file, or solution):

1.       I created a new project based on template Python From Existing Python Code,

2.       and directed the project tot to my download Gramps code in Documents\ gramps-4.2.5. 

3.       After a welcome screen, I am asked to pick either of the 2 python codes in the main (above) folder: setup.py (or Gramps.py in the 2nd trial) as a startup file. 

4.       After finishing the dialog, I tried to build or run something, to no avail…

 

Not sure what to do?  Please let me know what you think.

-dave

 

From: Sam Manzi [mailto:[hidden email]]
Sent: Sunday, March 19, 2017 3:14 PM
To: Dave Khuon
Cc: John Ralls; Gerald Britton; Gramps Development List
Subject: Re: [Gramps-devel] new Windows developer - was: proposed patch (date-format report option)

 

Welcome Dave,

Looks like the python tools for VS 2017 are only available in the preview version of VS 2017 (that can be downloaded from the article link only) according to the announcement and comments[1][2] .

-

Sam


[1] https://blogs.msdn.microsoft.com/pythonengineering/2017/03/07/python-support-in-vs2017/
    Steve Dower [MSFT] March 17, 2017 at 8:47 am
           Only as well as I’ve said so far. It’s available on VS 2017 Preview right now, and coming to VS 2017 stable in the next few months.

[2] https://developercommunity.visualstudio.com/content/problem/24315/python-not-showing-in-installer.html
     "The Python development workload is available in the preview of VS 2017, not in the main release."

 

On 20 March 2017 at 06:21, Dave Khuon <[hidden email]> wrote:

I installed VS 2017 Community Ed.  Python does not show in the supported project type template. 

 

I tried rerun VS 2017 installer, rerun modify.  No sign of whether Python is supported (unlike in VS 2015). 

 

Don’t know what is going on.

-dave

 

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

prculley
In reply to this post by John Ralls-2
If you decide to look into the MSYS2 / mingw route, some comments Josip sent to me might give you a heads up.

Basically i do development in MSYS2: http://msys2.github.io/
It is a posix like environment with all tools needed to build packages from sources install-able by Arch-linux pacman package manager.

If something is missing, not working or other version needed you can build it with Arch-linux style makepkg by writing appropriate PKGBUILD script and then install it with pacman. That way avoids "dll hell".

You can always do build by hand, for information how to do it i recommend "Beyond Linux From Scratch", so for example to see how to build gtk3 consult:
http://linuxfromscratch.org/blfs/view/svn/x/gtk3.html

At the end i use setup.py to collect all things needed and grampsaio32.nsi or grampsaio64.nsi script to generate installer with nsis. All three files are in GrampsAIO\src folder
If you don't want to worry too much about specific version dependencies, you can just use the latest packages available that are prefixed by mingw64-w64-x86_64.  But there will be some bugs associated with the various libraries that might have been avoided in the AIO.

You should read
I get the impression that it might be easiest to utilize the build scripts found in https://github.com/Alexpux/MINGW-packages appropriately modified to get the specific versions needed to Gramps.

For instance, we have settled on gtk3-3.18.9 for the AIO because of bugs in earlier and later versions that make Gramps less usable or more annoying.

I'll send you the zip file containing the build scripts Josip sent me for doing Gtk; that makes a fairly good example on how to do other dependencies (can't send through the maillist because it won't take .zip extensions).

The particular versions used in the Gramps AIO can be found by doing "Gramps -v" from the command line.

Josip also said;

Don't know how much you know, so please don't be offended if you already know following tips.

To see AIO dependencies install ntldd in yours msys2 environment:
  pacman -S mingw-w64-i686-ntldd-git
and use for example: "ntldd libgtk-3-0.dll" to see dependency of GTK3 or "ntldd -R libgtk-3-0.dll" to see recursive list (full dependency)

To find from what package library come install "pkgfile":
  pacman -S msys/pkgfile
  pkgfile.exe libgtk-3-0.dll
    mingw32/mingw-w64-i686-gtk3
    mingw64/mingw-w64-x86_64-gtk3

Utility "pactree" comes with pacman so:
$ pactree mingw-w64-x86_64-gtk3
mingw-w64-x86_64-gtk3
├─mingw-w64-x86_64-gcc-libs
│ ├─mingw-w64-x86_64-gmp
│ ├─mingw-w64-x86_64-libwinpthread-git provides mingw-w64-x86_64-libwinpthread
│ └─mingw-w64-x86_64-gcc-libgfortran
│   └─mingw-w64-x86_64-gcc-libs
├─mingw-w64-x86_64-adwaita-icon-theme
│ ├─mingw-w64-x86_64-hicolor-icon-theme
│ └─mingw-w64-x86_64-librsvg
│   ├─mingw-w64-x86_64-gdk-pixbuf2
│   │ ├─mingw-w64-x86_64-gcc-libs
│   │ ├─mingw-w64-x86_64-glib2
│   │ │ ├─mingw-w64-x86_64-gcc-libs
│   │ │ ├─mingw-w64-x86_64-gettext
│   │ │ │ ├─mingw-w64-x86_64-expat
│   │ │ │ ├─mingw-w64-x86_64-gcc-libs
│   │ │ │ └─mingw-w64-x86_64-libiconv
│   │ │ ├─mingw-w64-x86_64-pcre
│   │ │ │ ├─mingw-w64-x86_64-gcc-libs
│   │ │ │ ├─mingw-w64-x86_64-bzip2
│   │ │ │ │ └─mingw-w64-x86_64-gcc-libs
│   │ │ │ ├─mingw-w64-x86_64-wineditline
│   │ │ │ └─mingw-w64-x86_64-zlib
│   │ │ │   └─mingw-w64-x86_64-bzip2
│   │ │ ├─mingw-w64-x86_64-libffi
│   │ │ ├─mingw-w64-x86_64-pcre
│   │ │ └─mingw-w64-x86_64-zlib
│   │ ├─mingw-w64-x86_64-jasper
│   │ │ └─mingw-w64-x86_64-libjpeg-turbo
│   │ │   └─mingw-w64-x86_64-gcc-libs
│   │ ├─mingw-w64-x86_64-libjpeg-turbo
│   │ ├─mingw-w64-x86_64-libpng
│   │ │ ├─mingw-w64-x86_64-gcc-libs
│   │ │ └─mingw-w64-x86_64-zlib
│   │ └─mingw-w64-x86_64-libtiff
│   │   ├─mingw-w64-x86_64-gcc-libs
│   │   ├─mingw-w64-x86_64-libjpeg-turbo
│   │   ├─mingw-w64-x86_64-xz
│   │   │ ├─mingw-w64-x86_64-gcc-libs
│   │   │ └─mingw-w64-x86_64-gettext
│   │   └─mingw-w64-x86_64-zlib
│   ├─mingw-w64-x86_64-pango
│   │ ├─mingw-w64-x86_64-gcc-libs
│   │ ├─mingw-w64-x86_64-cairo
│   │ │ ├─mingw-w64-x86_64-gcc-libs
│   │ │ ├─mingw-w64-x86_64-freetype
│   │ │ │ ├─mingw-w64-x86_64-gcc-libs
│   │ │ │ ├─mingw-w64-x86_64-bzip2
│   │ │ │ ├─mingw-w64-x86_64-harfbuzz
│   │ │ │ │ ├─mingw-w64-x86_64-cairo
│   │ │ │ │ ├─mingw-w64-x86_64-freetype
│   │ │ │ │ ├─mingw-w64-x86_64-gcc-libs
│   │ │ │ │ ├─mingw-w64-x86_64-glib2
│   │ │ │ │ └─mingw-w64-x86_64-graphite2
│   │ │ │ ├─mingw-w64-x86_64-libpng
│   │ │ │ └─mingw-w64-x86_64-zlib
│   │ │ ├─mingw-w64-x86_64-fontconfig
│   │ │ │ ├─mingw-w64-x86_64-gcc-libs
│   │ │ │ ├─mingw-w64-x86_64-expat
│   │ │ │ ├─mingw-w64-x86_64-freetype
│   │ │ │ ├─mingw-w64-x86_64-bzip2
│   │ │ │ └─mingw-w64-x86_64-libiconv
│   │ │ ├─mingw-w64-x86_64-lzo2
│   │ │ ├─mingw-w64-x86_64-pixman
│   │ │ │ └─mingw-w64-x86_64-gcc-libs
│   │ │ └─mingw-w64-x86_64-zlib
│   │ ├─mingw-w64-x86_64-freetype
│   │ ├─mingw-w64-x86_64-fontconfig
│   │ ├─mingw-w64-x86_64-glib2
│   │ └─mingw-w64-x86_64-harfbuzz
│   └─mingw-w64-x86_64-libcroco
│     ├─mingw-w64-x86_64-glib2
│     └─mingw-w64-x86_64-libxml2
│       ├─mingw-w64-x86_64-gcc-libs
│       ├─mingw-w64-x86_64-gettext
│       ├─mingw-w64-x86_64-xz
│       └─mingw-w64-x86_64-zlib
├─mingw-w64-x86_64-atk
│ ├─mingw-w64-x86_64-gcc-libs
│ ├─mingw-w64-x86_64-gnome-common
│ └─mingw-w64-x86_64-glib2
├─mingw-w64-x86_64-cairo
├─mingw-w64-x86_64-gdk-pixbuf2
├─mingw-w64-x86_64-glib2
├─mingw-w64-x86_64-json-glib
│ └─mingw-w64-x86_64-glib2
├─mingw-w64-x86_64-libepoxy
│ └─mingw-w64-x86_64-gcc-libs
├─mingw-w64-x86_64-pango
└─mingw-w64-x86_64-shared-mime-info
  ├─mingw-w64-x86_64-libxml2
  └─mingw-w64-x86_64-glib2

or shortly:
$ pactree -u mingw-w64-x86_64-gtk3 | sort
mingw-w64-x86_64-adwaita-icon-theme
mingw-w64-x86_64-atk
mingw-w64-x86_64-bzip2
mingw-w64-x86_64-cairo
mingw-w64-x86_64-expat
mingw-w64-x86_64-fontconfig
mingw-w64-x86_64-freetype
mingw-w64-x86_64-gcc-libgfortran
mingw-w64-x86_64-gcc-libs
mingw-w64-x86_64-gdk-pixbuf2
mingw-w64-x86_64-gettext
mingw-w64-x86_64-glib2
mingw-w64-x86_64-gmp
mingw-w64-x86_64-gnome-common
mingw-w64-x86_64-graphite2
mingw-w64-x86_64-gtk3
mingw-w64-x86_64-harfbuzz
mingw-w64-x86_64-hicolor-icon-theme
mingw-w64-x86_64-jasper
mingw-w64-x86_64-json-glib
mingw-w64-x86_64-libcroco
mingw-w64-x86_64-libepoxy
mingw-w64-x86_64-libffi
mingw-w64-x86_64-libiconv
mingw-w64-x86_64-libjpeg-turbo
mingw-w64-x86_64-libpng
mingw-w64-x86_64-librsvg
mingw-w64-x86_64-libtiff
mingw-w64-x86_64-libwinpthread-git
mingw-w64-x86_64-libxml2
mingw-w64-x86_64-lzo2
mingw-w64-x86_64-pango
mingw-w64-x86_64-pcre
mingw-w64-x86_64-pixman
mingw-w64-x86_64-shared-mime-info
mingw-w64-x86_64-wineditline
mingw-w64-x86_64-xz
mingw-w64-x86_64-zlib
 

Paul Culley

P.S. Please make notes of what you do as you go along; when you get everything working, you can do a wiki entry describing your work to make the next guy (maybe even me) have an easier time of it.

On Sun, Mar 19, 2017 at 12:24 PM, John Ralls <[hidden email]> wrote:

On Mar 19, 2017, at 10:15 AM, Gerald Britton <[hidden email]> wrote:

Fwiw I'm having a go at setting up a visual studio enterprise project. Let you know how it goes. This is vs2015. Will be easier when vs2017 adds Python support. Directory based projects.

On Mar 19, 2017 9:19 AM, "Paul Culley" <[hidden email]> wrote:
Dave;
I am the Gramps developer that uses Windows as my development env.  I use Eclipse as my IDE with some of the bigger edits using Notepad++.

I'm afraid that I have never actually set up a full Gramps build environment with all the dependencies.  The only dev who has that that for Windows that I am aware of is Josip.  What I have done is to use the packaged AIO for Gramps as the place to work.

Prior to the most recent releases, Josip (who prepares the AIO) had included all of Python, Gtk, and other dependencies as well as some other useful utilities in the package.  That made it easy to get started, all I had to do is start my Eclipse project by pointing to the AIO Python, and tell it to run the grampsapp.py module.

I used some links to point the AIO python Gramps code to my Git repo.


Unfortunately Josip has recently put Gramps AIO an a diet, he seriously shrunk the download by removing a lot of things and only including compiled versions of library modules etc.

You can still try my method if you want, if you want to work with the master branch, try starting with the https://github.com/gramps-project/gramps/releases/download/v5.0.0-alpha1/GrampsAIO-5.0.0-alpha1_win64.exe distribution, which includes everything.  The newer one doesn't.

If you are interested in Gramps 4.2.x branch, I suggest https://github.com/gramps-project/gramps/releases/download/v4.2.4/GrampsAIO-4.2.4-3_win64.exe
as 4.2.5 is the slimmed down version.

I've started trying to set up a full environment like Josip has, but it is slow going, getting all the dependencies in the right format (gcc compiled) and the right versions seems to mean compiling a lot of modules, after finding the exactly correct versions.  As I have been co-opted into some spring cleaning and home maintenance lately, I have not had time to complete this.

As Enno suggests, you could potentially do this with MS tool-chain as well, and it might even be easier, but the end result would be different that the current AIO.

Feel free to ask questions, and good luck.

Paul Culley

On Sun, Mar 19, 2017 at 7:43 AM, Enno Borgsteede <[hidden email]> wrote:
Hi Dave,

> I appreciate being included for testing and bug reporting for this product.
> I am a newbie to this forum.  My past experiences were primarily MS  .Net /
> C#, some coding experiences in Java and Python.  I am a retired programmer,
> and am thrilled for the possibility to get busy on some good cause projects.
>
> I am currently setting up a development environment (LiClipse) by following
> the guideline of "Getting started with Gramps development", in order to
> further my understanding of Gramps.  I am wondering if later I could get
> some helps from anyone here, if I run into trouble.
Here's another welcome to the list, and an idea. I see that you have
experiences with MS .Net C#, which almost certainly means that you've
worked with Visual Studio, and maybe still use it at home.

With that in mind, I wonder if you'd be willing to experiment with that
for Gramps development. I've noticed that Visual Studio and Visual
Studio Code come with Git integration, and that Python extensions are
available too, so I assume that both can be configured to build and run
Gramps in similar ways as already described on the wiki.

What I mean is that if the proper packages are installed, you should be
able to work with Git, and start the build and run commands right from
Visual Studio (Code) and thereby stick with the tools that you feel
comfortable with, using the information on

https://gramps-project.org/wiki/index.php?title=Getting_started_with_Gramps_development

Note that where this page says python, you may actually need to use
python3, to make sure that you run the right version if you have both
Python 2 and 3 in your path.

> I am interested in customizing (add-on) Descendent Reports, and the build
> process required to submit my add-ons.  Nonetheless, I welcome any
> opportunity to serve, for this project.
I'm afraid that I can't help you with that on Windows. I see that we
have a special page for the subject at

https://gramps-project.org/wiki/index.php?title=Addons_development

but this page concentrates on Linux, so I don't really know how well
things work on Windows yet. I suspect that it can work, and that you can
work with the same tools that you already need to work on the main program.

I use Visual Studio at work, but still use the command line for my hacks
on Gramps, in Linux Mint, so I can't give you more hints right now. But
if you can get it to work with VS, I'm very much interested in how it is
done.

Cheers,

Enno


Gerald,

Wow. That's a daunting exercise. Are you actually building the whole dependency stack in VS or do some of your sub-projects delegate the build to Cygwin/MinGW?

Regards,
John Ralls




------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

dave.khuon@gmail.com
In reply to this post by dave.khuon@gmail.com

Hi Sam,

 

Just to let you know, I finally decided to installed VS 2017 Preview side by side with the official VS 2017 Community Edition.  I took Microsoft’s word for it, when they say it is harmless (I’ve been burnt before ;{{ ).

 

I use the same project type: From Existing Python Code, and use setup.py as the startup file.  When I ran, I got: error: no command supplied.  I believe It is looking for an argument[1] as “build”, which I could not supply to the setup.py module.

 

Then I gave up VS 2017, and decided to run python from command line instead.  My python is 3.5.  I change directory to the gramps-4.2.5 folder which contains setup.py, and run: python setup.py build.  I got:

C:\Users\davek\Documents\gramps-4.2.5>python setup.py build

running build

'msgfmt' is not recognized as an internal or external command,

operable program or batch file.

error: [WinError 2] The system cannot find the file specified: 'build\\mo\\ar\\LC_MESSAGES\\gramps.mo'

 

I guess I don’t know enough of the Gramps project / package as downloaded from git.  Is setup.py supposed to be run with argument build, as a standalone python file?  Are there dependencies with other modules.  And for Gramps.py too?  And what about the code in the sub folder gramps.

 

Please leave me some pointers.  Thanks,

dave

 

From: Dave Khuon [mailto:[hidden email]]
Sent: Sunday, March 19, 2017 3:47 PM
To: 'Sam Manzi'
Cc: 'John Ralls'; 'Gerald Britton'; 'Gramps Development List'
Subject: RE: [Gramps-devel] new Windows developer - was: proposed patch (date-format report option)

 

Hi Sam,

 

I hesitate to download the preview version of vs 2017, until knowing:

1.       This version would run side by side with the 2017 Community Ed

2.       If eventually Python is available on the 2017 Comm Ed, the removal of the preview will be clean, not like other Microsoft products (DLL hell, for example).

 

For these reasons, I am willing to experiment with VS 2015, with Python Tools extensions which are already installed and setup.  Not knowing how to hook the Gramps source code to VS 2015 (project file, or solution):

1.       I created a new project based on template Python From Existing Python Code,

2.       and directed the project tot to my download Gramps code in Documents\ gramps-4.2.5. 

3.       After a welcome screen, I am asked to pick either of the 2 python codes in the main (above) folder: setup.py (or Gramps.py in the 2nd trial) as a startup file. 

4.       After finishing the dialog, I tried to build or run something, to no avail…

 

Not sure what to do?  Please let me know what you think.

-dave

 

From: Sam Manzi [[hidden email]]
Sent: Sunday, March 19, 2017 3:14 PM
To: Dave Khuon
Cc: John Ralls; Gerald Britton; Gramps Development List
Subject: Re: [Gramps-devel] new Windows developer - was: proposed patch (date-format report option)

 

Welcome Dave,

Looks like the python tools for VS 2017 are only available in the preview version of VS 2017 (that can be downloaded from the article link only) according to the announcement and comments[1][2] .

-

Sam


[1] https://blogs.msdn.microsoft.com/pythonengineering/2017/03/07/python-support-in-vs2017/
    Steve Dower [MSFT] March 17, 2017 at 8:47 am
           Only as well as I’ve said so far. It’s available on VS 2017 Preview right now, and coming to VS 2017 stable in the next few months.

[2] https://developercommunity.visualstudio.com/content/problem/24315/python-not-showing-in-installer.html
     "The Python development workload is available in the preview of VS 2017, not in the main release."

 

On 20 March 2017 at 06:21, Dave Khuon <[hidden email]> wrote:

I installed VS 2017 Community Ed.  Python does not show in the supported project type template. 

 

I tried rerun VS 2017 installer, rerun modify.  No sign of whether Python is supported (unlike in VS 2015). 

 

Don’t know what is going on.

-dave

 

 


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

Oldest1
In reply to this post by dave.khuon@gmail.com

Hi Dave,

I had, at one time in the past tried the MSVC Python 'thing' and never got very far with it either.

At the time, I had installed an early version of the Win AIO package, just as 2.4 became available as an AIO. With it, and some help from users on this list, particularly Josip, I was able to run a Gramps Python environment. Unfortunately, I had to leave that work for some time and with some serious hardware changes at my end happening in the meantime etc never got back to it, though I now hope to be able to resurrect some of this for more work.

In my case, I too came from a MSVC MS OS background (MSVC 2008 - 2015 C++) and for a while I ran a Linux Mint box in parallel to see that and how this Python thing actually worked and how to adapt it to my environment. There was quite a difference between what I was used to from the MSVC environment and the Gramps/Pythonic way of doing things, which includes a whole lot of Git and other Python packages and package managers.

Being used to MSVC with its debugger, at one time or other, I have tried just about every Python IDE I could find but have not been able to settle on any one. All seem to have a rather steep learning curve and most seemed to have 'traps' for the unwary newb along the way.

There is also the very useful and desirable concept of the Python virtual environments to get used to. This is almost a prerequisite if you want to use Gramps and play with the code at the same time.

That, plus the reality that most of the Gramps developers live in the Linux world, makes getting a Win OS based development a bit trickier, unless you are already a Python & Git guru.

While I am trying to get back to Gramps & Python etc, I have no fixed timeline as to exactly when I will get to this 'job', but I will try to keep up with this thread and if I should have success, I'll be sure to pass on what I find useful.

Arnold


On 3/19/2017 10:11 PM, Dave Khuon wrote:

Hi Sam,

 

Just to let you know, I finally decided to installed VS 2017 Preview side by side with the official VS 2017 Community Edition.  I took Microsoft’s word for it, when they say it is harmless (I’ve been burnt before ;{{ ).

 

I use the same project type: From Existing Python Code, and use setup.py as the startup file.  When I ran, I got: error: no command supplied.  I believe It is looking for an argument[1] as “build”, which I could not supply to the setup.py module.

 

Then I gave up VS 2017, and decided to run python from command line instead.  My python is 3.5.  I change directory to the gramps-4.2.5 folder which contains setup.py, and run: python setup.py build.  I got:

C:\Users\davek\Documents\gramps-4.2.5>python setup.py build

running build

'msgfmt' is not recognized as an internal or external command,

operable program or batch file.

error: [WinError 2] The system cannot find the file specified: 'build\\mo\\ar\\LC_MESSAGES\\gramps.mo'

 

I guess I don’t know enough of the Gramps project / package as downloaded from git.  Is setup.py supposed to be run with argument build, as a standalone python file?  Are there dependencies with other modules.  And for Gramps.py too?  And what about the code in the sub folder gramps.

 

Please leave me some pointers.  Thanks,

dave

 

From: Dave Khuon [[hidden email]]
Sent: Sunday, March 19, 2017 3:47 PM
To: 'Sam Manzi'
Cc: 'John Ralls'; 'Gerald Britton'; 'Gramps Development List'
Subject: RE: [Gramps-devel] new Windows developer - was: proposed patch (date-format report option)

 

Hi Sam,

 

I hesitate to download the preview version of vs 2017, until knowing:

1.       This version would run side by side with the 2017 Community Ed

2.       If eventually Python is available on the 2017 Comm Ed, the removal of the preview will be clean, not like other Microsoft products (DLL hell, for example).

 

For these reasons, I am willing to experiment with VS 2015, with Python Tools extensions which are already installed and setup.  Not knowing how to hook the Gramps source code to VS 2015 (project file, or solution):

1.       I created a new project based on template Python From Existing Python Code,

2.       and directed the project tot to my download Gramps code in Documents\ gramps-4.2.5. 

3.       After a welcome screen, I am asked to pick either of the 2 python codes in the main (above) folder: setup.py (or Gramps.py in the 2nd trial) as a startup file. 

4.       After finishing the dialog, I tried to build or run something, to no avail…

 

Not sure what to do?  Please let me know what you think.

-dave

 

From: Sam Manzi [[hidden email]]
Sent: Sunday, March 19, 2017 3:14 PM
To: Dave Khuon
Cc: John Ralls; Gerald Britton; Gramps Development List
Subject: Re: [Gramps-devel] new Windows developer - was: proposed patch (date-format report option)

 

Welcome Dave,

Looks like the python tools for VS 2017 are only available in the preview version of VS 2017 (that can be downloaded from the article link only) according to the announcement and comments[1][2] .

-

Sam


[1] https://blogs.msdn.microsoft.com/pythonengineering/2017/03/07/python-support-in-vs2017/
    Steve Dower [MSFT] March 17, 2017 at 8:47 am
           Only as well as I’ve said so far. It’s available on VS 2017 Preview right now, and coming to VS 2017 stable in the next few months.

[2] https://developercommunity.visualstudio.com/content/problem/24315/python-not-showing-in-installer.html
     "The Python development workload is available in the preview of VS 2017, not in the main release."

 

On 20 March 2017 at 06:21, Dave Khuon <[hidden email]> wrote:

I installed VS 2017 Community Ed.  Python does not show in the supported project type template. 

 

I tried rerun VS 2017 installer, rerun modify.  No sign of whether Python is supported (unlike in VS 2015). 

 

Don’t know what is going on.

-dave

 

 



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot


_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

enno
In reply to this post by dave.khuon@gmail.com

Hi Dave,

Then I gave up VS 2017, and decided to run python from command line instead.  My python is 3.5.  I change directory to the gramps-4.2.5 folder which contains setup.py, and run: python setup.py build.  I got:

C:\Users\davek\Documents\gramps-4.2.5>python setup.py build

running build

'msgfmt' is not recognized as an internal or external command,

operable program or batch file.

error: [WinError 2] The system cannot find the file specified: 'build\\mo\\ar\\LC_MESSAGES\\gramps.mo'

 

I guess I don’t know enough of the Gramps project / package as downloaded from git.  Is setup.py supposed to be run with argument build, as a standalone python file?  Are there dependencies with other modules.  And for Gramps.py too?  And what about the code in the sub folder gramps.

The Gramps build process relies on a lot of extra tools, which are not easy to install from source, but are installed by the GrampsAIO installers mentioned earlier. The Python version included with those is configured in such a way that it can find all tools that the build command needs.

Using a standard Python setup (with a standard VS setup) will fail, unless you configure that in the proper manner, so that it can find the tools mentioned before.

regards,

Enno


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

Josip
In reply to this post by dave.khuon@gmail.com
20.3.2017. u 6:11, Dave Khuon je napisao/la:

> Just to let you know, I finally decided to installed VS 2017 Preview side by side with the official VS 2017 Community Edition.  I took Microsoft’s word for it, when they say it is harmless (I’ve been burnt before ;{{ ).
>
>
>
> I use the same project type: From Existing Python Code, and use setup.py as the startup file.  When I ran, I got: error: no command supplied.  I believe It is looking for an argument[1] as “build”, which I could not supply to the setup.py module.
>
>
>
> Then I gave up VS 2017, and decided to run python from command line instead.  My python is 3.5.  I change directory to the gramps-4.2.5 folder which contains setup.py, and run: python setup.py build.  I got:
>
> C:\Users\davek\Documents\gramps-4.2.5>python setup.py build
>
> running build
>
> 'msgfmt' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> error: [WinError 2] The system cannot find the file specified: 'build\\mo\\ar\\LC_MESSAGES\\gramps.mo'
>
>
>
> I guess I don’t know enough of the Gramps project / package as downloaded from git.  Is setup.py supposed to be run with argument build, as a standalone python file?  Are there dependencies with other modules.  And for Gramps.py too?  And what about the code in the sub folder gramps.
>
>
>
> Please leave me some pointers.  Thanks,
>
> dave

I just started wiki page about how to use MSYS2 to run Gramps master on
Windows. After doing that you should be able to use that with any IDE

https://gramps-project.org/wiki/index.php?title=Gramps_for_Windows_with_MSYS2

--
Josip

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

dave.khuon@gmail.com
I will keep an eye on the MSYS2 wiki.  I learned so much from everyone's
responses and suggestions.  Especially about what I didn't know.  I now
realize that gramps itself is a complex "ecosystem" with lot of
dependencies.  Thank you all for helping.
-dave

-----Original Message-----
From: Josip [mailto:[hidden email]]
Sent: Monday, March 20, 2017 5:16 PM
To: [hidden email]
Subject: Re: [Gramps-devel] new Windows developer - was: proposed patch
(date-format report option)

20.3.2017. u 6:11, Dave Khuon je napisao/la:
> Just to let you know, I finally decided to installed VS 2017 Preview side
by side with the official VS 2017 Community Edition.  I took Microsoft's
word for it, when they say it is harmless (I've been burnt before ;{{ ).
>
>
>
> I use the same project type: From Existing Python Code, and use setup.py
as the startup file.  When I ran, I got: error: no command supplied.  I
believe It is looking for an argument[1] as "build", which I could not
supply to the setup.py module.
>
>
>
> Then I gave up VS 2017, and decided to run python from command line
instead.  My python is 3.5.  I change directory to the gramps-4.2.5 folder
which contains setup.py, and run: python setup.py build.  I got:

>
> C:\Users\davek\Documents\gramps-4.2.5>python setup.py build
>
> running build
>
> 'msgfmt' is not recognized as an internal or external command,
>
> operable program or batch file.
>
> error: [WinError 2] The system cannot find the file specified:
'build\\mo\\ar\\LC_MESSAGES\\gramps.mo'
>
>
>
> I guess I don't know enough of the Gramps project / package as downloaded
from git.  Is setup.py supposed to be run with argument build, as a
standalone python file?  Are there dependencies with other modules.  And for
Gramps.py too?  And what about the code in the sub folder gramps.
>
>
>
> Please leave me some pointers.  Thanks,
>
> dave

I just started wiki page about how to use MSYS2 to run Gramps master on
Windows. After doing that you should be able to use that with any IDE

https://gramps-project.org/wiki/index.php?title=Gramps_for_Windows_with_MSYS
2

--
Josip

----------------------------------------------------------------------------
--
Check out the vibrant tech community on one of the world's most engaging
tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

Paul Franklin-5
In reply to this post by Josip
On 3/20/17, Josip <[hidden email]> wrote:
> I just started wiki page about how to use MSYS2 to run Gramps master on
> Windows.

Thank you very much!!!

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

dave.khuon@gmail.com
Thanks Paul.

On Mar 20, 2017 9:38 PM, "Paul Franklin" <[hidden email]> wrote:
On 3/20/17, Josip <[hidden email]> wrote:
> I just started wiki page about how to use MSYS2 to run Gramps master on
> Windows.

Thank you very much!!!

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: new Windows developer - was: proposed patch (date-format report option)

Oldest1
In reply to this post by dave.khuon@gmail.com

On 3/20/2017 3:15 PM, Josip wrote:

I just started wiki page about how to use MSYS2 to run Gramps master on 
Windows. After doing that you should be able to use that with any IDE
Thank you very much, Josip.
I just installed the test version using the wiki instructions, it all worked out well and I was able to run the current test version of gramps.

Would it be possible to add a few comments or recommendations on how best to run the 'bleeding edge' version along side a current stable version for the 'Sunday only' users like myself? :-)
Presumably it is possible to set GRAMPSHOME inside the MSYS environment?
Or would setting it in the Win environment be sufficient?

TIA,
Arnold
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
12345