Proposal to drop python2 support

classic Classic list List threaded Threaded
36 messages Options
12
Reply | Threaded
Open this post in threaded view
|

Proposal to drop python2 support

Nick Hall
Devs,

Do we want to spend the time and effort required to support both python2
and python3?

I suggest that we drop python2 support for v4.2.

What do you think?

Regards,


Nick.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Josip
I think it is a good idea.


Josip


-------- Original message --------
From: Nick Hall <[hidden email]>
Date:
To: Gramps Development List <[hidden email]>
Subject: [Gramps-devel] Proposal to drop python2 support


Devs,

Do we want to spend the time and effort required to support both python2
and python3?

I suggest that we drop python2 support for v4.2.

What do you think?

Regards,


Nick.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Benny Malengier
Josip agreeing means windows is ready for it I suppose.
If also John has it ready for Mac, +1 from me

Benny

2015-02-25 21:36 GMT+01:00 josip <[hidden email]>:
I think it is a good idea.


Josip


-------- Original message --------
From: Nick Hall <[hidden email]>
Date:
To: Gramps Development List <[hidden email]>
Subject: [Gramps-devel] Proposal to drop python2 support


Devs,

Do we want to spend the time and effort required to support both python2
and python3?

I suggest that we drop python2 support for v4.2.

What do you think?

Regards,


Nick.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Serge Noiraud-2
In reply to this post by Josip
Hi,

No problem for me. I agree.

Serge

Le 25/02/2015 21:36, josip a écrit :
I think it is a good idea.


Josip


-------- Original message --------
From: Nick Hall [hidden email]
Date:
To: Gramps Development List [hidden email]
Subject: [Gramps-devel] Proposal to drop python2 support


Devs,

Do we want to spend the time and effort required to support both python2
and python3?

I suggest that we drop python2 support for v4.2.

What do you think?

Regards,


Nick.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

John Ralls-2
In reply to this post by Nick Hall

> On Feb 24, 2015, at 7:02 AM, Nick Hall <[hidden email]> wrote:
>
> Devs,
>
> Do we want to spend the time and effort required to support both python2
> and python3?
>
> I suggest that we drop python2 support for v4.2.
>
> What do you think?
>

I haven't tried recently to build with Py3 on Mac, but I'm sure that I can get there by June.

Regards,
John Ralls



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

DS Blank
In reply to this post by Nick Hall
Sounds good to me! 

-Doug

On Tue, Feb 24, 2015 at 10:02 AM, Nick Hall <[hidden email]> wrote:
Devs,

Do we want to spend the time and effort required to support both python2
and python3?

I suggest that we drop python2 support for v4.2.

What do you think?

Regards,


Nick.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Nick Hall
Since there were no objections, I have now set a minimum python version of 3.2 as a requirement in master.

Nick.


On 26/02/15 11:53, Doug Blank wrote:
Sounds good to me! 

-Doug

On Tue, Feb 24, 2015 at 10:02 AM, Nick Hall <[hidden email]> wrote:
Devs,

Do we want to spend the time and effort required to support both python2
and python3?

I suggest that we drop python2 support for v4.2.

What do you think?


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Tim Lyons
Administrator
Nick Hall wrote
Since there were no objections, I have now set a minimum python version
of 3.2 as a requirement in master.
Gramps41 and master don't run on python 3.2 (ref Ubuntu 12.10), because they use u"string" in one place. The patch below makes it run for both gramps41 and master.

Is this patch right - does anyone want to add it please?

Tim.

diff --git gramps/gui/dbman.py gramps/gui/dbman.py
index a0f0f1e..3b806ec 100644
--- gramps/gui/dbman.py
+++ gramps/gui/dbman.py
@@ -42,21 +42,21 @@
     from urllib.parse import urlparse
 
 #-------------------------------------------------------------------------
 #
 # set up logging
 #
 #-------------------------------------------------------------------------
 import logging
 LOG = logging.getLogger(".DbManager")
 
-from gramps.gen.constfunc import win, UNITYPE, conv_to_unicode
+from gramps.gen.constfunc import win, UNITYPE, conv_to_unicode,cuni
 if win():
     _RCS_FOUND = os.system("rcs -V >nul 2>nul") == 0
     if _RCS_FOUND and "TZ" not in os.environ:
         # RCS requires the "TZ" variable be set.
         os.environ["TZ"] = str(time.timezone)
 else:
     _RCS_FOUND = os.system("rcs -V >/dev/null 2>/dev/null") == 0
 
 #-------------------------------------------------------------------------
 #
@@ -242,21 +242,21 @@
                 self.rcs.set_sensitive(True)
         else:
             self.connect.set_sensitive(not is_rev)
             if _RCS_FOUND and is_rev:
                 self.rcs.set_sensitive(True)
             else:
                 self.rcs.set_sensitive(False)
 
         if store.get_value(node, STOCK_COL) == Gtk.STOCK_DIALOG_ERROR:
             path = conv_to_unicode(store.get_value(node, PATH_COL), 'utf8')
-            backup = os.path.join(path, u"person.gbkp")
+            backup = os.path.join(path, cuni("person.gbkp"))
             self.repair.set_sensitive(os.path.isfile(backup))
         else:
             self.repair.set_sensitive(False)
             
         self.rename.set_sensitive(True)
         self.copy.set_sensitive(True)
         self.remove.set_sensitive(True)
         self.new.set_sensitive(True)
 
     def __build_interface(self):
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Nick Hall
On 13/03/15 23:44, Tim Lyons wrote:
> Gramps41 and master don't run on python 3.2 (ref Ubuntu 12.10), because they
> use u"string" in one place. The patch below makes it run for both gramps41
> and master.
>
> Is this patch right - does anyone want to add it please?

Tim,

In master, all string constants are now unicode.  So u"string" becomes
"string".

Your patch is the best approach in a maintenance branch.  The
alternative would be to add "from __future__ import unicode_literals"
but that might break something else.

I'll fix it for you.

Regards,


Nick.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

John Ralls-2
In reply to this post by John Ralls-2

> On Feb 26, 2015, at 10:36 AM, John Ralls <[hidden email]> wrote:
>
>
>> On Feb 24, 2015, at 7:02 AM, Nick Hall <[hidden email]> wrote:
>>
>> Devs,
>>
>> Do we want to spend the time and effort required to support both python2
>> and python3?
>>
>> I suggest that we drop python2 support for v4.2.
>>
>> What do you think?
>>
>
> I haven't tried recently to build with Py3 on Mac, but I'm sure that I can get there by June.

I've worked out a way to do it. It's a bit of a pain, but it works well enough that I'm not worried about being able to build a release.

Regards,
John Ralls


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

John Ralls-2

On Mar 24, 2015, at 1:32 AM, Hans Ulrich Frink <[hidden email]> wrote:

Dear devs
I managed to run gramps from master using  former master and python 2.7 and bsd.
Now I tried the same using actual master and python 3.4.2 but I met the error Python "Bsddb3 Paket nicht installiert" I dont find a msi installer for bsddb 3. Can You give some advice?
Do I need python bindings for bsddb3?

You forgot to use “reply all” and sent this only to me.

Yes, Berkeley DB support is separate from Python in Python3, get the bsddb3 module from PyPI.

Regards,
John Ralls



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

enno
John,


On Mar 24, 2015, at 1:32 AM, Hans Ulrich Frink <[hidden email]> wrote:

Dear devs
I managed to run gramps from master using  former master and python 2.7 and bsd.
Now I tried the same using actual master and python 3.4.2 but I met the error Python "Bsddb3 Paket nicht installiert" I dont find a msi installer for bsddb 3. Can You give some advice?
Do I need python bindings for bsddb3?

Yes, Berkeley DB support is separate from Python in Python3, get the bsddb3 module from PyPI.
You mean https://pypi.python.org/pypi/bsddb3 ?

Since Hans asked for an MSI ... Is there a compiled version for Windows? I noticed that Josip works with Python 2.7 (and bsddb 2) for 4.1 AIO, so this is probably quite new for Windows devs.

regards,

Enno


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Hans Ulrich Frink-2
Thanks for reply,
I ran pip install bsddb3
that gave the error FileNotFoundError: [Errno2] No such file or directory: 'db/include\\db.h'

Then I downloaded bsddb3-6.1.0.zip from pypi but i see no way to set a path for install.

running Python c:\users\Frink\Downloads\bsddb3-6.1.0\bsddb3-6.1.0\setup.py install
again gives an error No such File or directory:'Modules/bsddb.h'

Is there a way to install bsddb3 on Windows without compiling?
Thanks
Uli

2015-03-24 14:03 GMT+01:00 Enno Borgsteede <[hidden email]>:
John,


On Mar 24, 2015, at 1:32 AM, Hans Ulrich Frink <[hidden email]> wrote:

Dear devs
I managed to run gramps from master using  former master and python 2.7 and bsd.
Now I tried the same using actual master and python 3.4.2 but I met the error Python "Bsddb3 Paket nicht installiert" I dont find a msi installer for bsddb 3. Can You give some advice?
Do I need python bindings for bsddb3?

Yes, Berkeley DB support is separate from Python in Python3, get the bsddb3 module from PyPI.
You mean https://pypi.python.org/pypi/bsddb3 ?

Since Hans asked for an MSI ... Is there a compiled version for Windows? I noticed that Josip works with Python 2.7 (and bsddb 2) for 4.1 AIO, so this is probably quite new for Windows devs.

regards,

Enno


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel



------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Paul Franklin-5
On 3/24/15, Hans Ulrich Frink <[hidden email]> wrote:

> Is there a way to install bsddb3 on Windows without compiling?

> 2015-03-24 14:03 GMT+01:00 Enno Borgsteede <[hidden email]>:

>> Since Hans asked for an MSI ... Is there a compiled version for Windows?
>> I
>> noticed that Josip works with Python 2.7 (and bsddb 2) for 4.1 AIO, so
>> this
>> is probably quite new for Windows devs.

Well, Josip should be the one replying, since I am sure
he has done it lots of times, but when I told Google to search
for "bsddb3" and "msi" the second thing it listed was:

http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html

which listed this in the first few lines:

http://download.oracle.com/otn/berkeley-db/db-6.1.23.msi

But of course I have never tried it, don't know anything
about it, don't know if it is the appropriate one, don't know
if it is too old, don't know if it is too new -- and especially
I don't know whether it contains any Python3 bindings.
But perhaps it will have the missing file?  Who knows.

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Hans Ulrich Frink-2
Thanks for helping!
After installing db-6.1.23.msi which actually is the database files, on starting gramps.bat I get the warning "no bsddb support"
I suppose because the python bindings are not installed. This is where I get the problems described in my previous mail:

[ I ran pip install bsddb3 that gave the error FileNotFoundError: [Errno2] No such file or directory: 'db/include\\db.h'
Then I downloaded bsddb3-6.1.0.zip from pypi but i see no way to set a path for install.
running Python c:\users\Frink\Downloads\bsddb3-6.1.0\bsddb3-6.1.0\setup.py install
again gives an error No such File or directory:'Modules/bsddb.h']

So I should be more precise: It is not about installing bsddb but installing the bindings.
Thanks again 
Uli

2015-03-24 16:59 GMT+01:00 Paul Franklin <[hidden email]>:
On 3/24/15, Hans Ulrich Frink <[hidden email]> wrote:

> Is there a way to install bsddb3 on Windows without compiling?

> 2015-03-24 14:03 GMT+01:00 Enno Borgsteede <[hidden email]>:

>> Since Hans asked for an MSI ... Is there a compiled version for Windows?
>> I
>> noticed that Josip works with Python 2.7 (and bsddb 2) for 4.1 AIO, so
>> this
>> is probably quite new for Windows devs.

Well, Josip should be the one replying, since I am sure
he has done it lots of times, but when I told Google to search
for "bsddb3" and "msi" the second thing it listed was:

http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html

which listed this in the first few lines:

http://download.oracle.com/otn/berkeley-db/db-6.1.23.msi

But of course I have never tried it, don't know anything
about it, don't know if it is the appropriate one, don't know
if it is too old, don't know if it is too new -- and especially
I don't know whether it contains any Python3 bindings.
But perhaps it will have the missing file?  Who knows.


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Josip
In reply to this post by Paul Franklin-5
24.3.2015. u 16:59, Paul Franklin je napisao/la:

> On 3/24/15, Hans Ulrich Frink <[hidden email]> wrote:
>
>> Is there a way to install bsddb3 on Windows without compiling?
>
>> 2015-03-24 14:03 GMT+01:00 Enno Borgsteede <[hidden email]>:
>
>>> Since Hans asked for an MSI ... Is there a compiled version for Windows?
>>> I
>>> noticed that Josip works with Python 2.7 (and bsddb 2) for 4.1 AIO, so
>>> this
>>> is probably quite new for Windows devs.
>
> Well, Josip should be the one replying, since I am sure
> he has done it lots of times, but when I told Google to search
> for "bsddb3" and "msi" the second thing it listed was:
>
> http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
>
> which listed this in the first few lines:
>
> http://download.oracle.com/otn/berkeley-db/db-6.1.23.msi
>
> But of course I have never tried it, don't know anything
> about it, don't know if it is the appropriate one, don't know
> if it is too old, don't know if it is too new -- and especially
> I don't know whether it contains any Python3 bindings.
> But perhaps it will have the missing file?  Who knows.
>

I make GrampsAIO-4.1.2 package for Windows with bsddb3 as always.
Note that difference between bsddb an bsddb3 is that first one was
included in python distribution and second one is version developed
outside python so it is a higher version which can works with current
Oracle/Berkeley DB version.

Did not quite understand "run gramps from master using  former master"
so don't know what system you use.
I use msys and gcc for builds, more precisely msys2 and mingw-w64.

You can see how to build that for Python2 and Python3 in both x86 and
x86_64 mode at:
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-python-bsddb3/PKGBUILD
Yeah Arch way on Windows :-))


--
Josip

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

enno
In reply to this post by Hans Ulrich Frink-2
Hallo Uli,
> Is there a way to install bsddb3 on Windows without compiling?
The latest one I can find is here:

https://pypi.python.org/pypi/bsddb3/5.0.0

It's old, and 32-bit, so I have no idea whether it will really work for
you, so maybe it's better to build one yourself with the tools Josip
mentioned. Others report that you may build it with Visual Studio Express.

regards,

Enno


------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Hans Ulrich Frink-2
In reply to this post by Josip
Enno, Joasip
With Former Master I meant  i could run gramps Master using Python 2.7 and bsddb3 where bsddb is included.
But i wasnt able to so the same with Python 3 and bsddb.

As far as i understand Jossips mail i would have to compile bsddb3 bindings from c
And it is not sufficient just to unzip bsddb3-6.1.0.zip to the right place in Python directory?
Cheers
Uli

Von: [hidden email]
Gesendet: ‎24.‎03.‎2015 18:06
An: [hidden email]
Betreff: Re: [Gramps-devel] Proposal to drop python2 support

24.3.2015. u 16:59, Paul Franklin je napisao/la:

> On 3/24/15, Hans Ulrich Frink <[hidden email]> wrote:
>
>> Is there a way to install bsddb3 on Windows without compiling?
>
>> 2015-03-24 14:03 GMT+01:00 Enno Borgsteede <[hidden email]>:
>
>>> Since Hans asked for an MSI ... Is there a compiled version for Windows?
>>> I
>>> noticed that Josip works with Python 2.7 (and bsddb 2) for 4.1 AIO, so
>>> this
>>> is probably quite new for Windows devs.
>
> Well, Josip should be the one replying, since I am sure
> he has done it lots of times, but when I told Google to search
> for "bsddb3" and "msi" the second thing it listed was:
>
> http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
>
> which listed this in the first few lines:
>
> http://download.oracle.com/otn/berkeley-db/db-6.1.23.msi
>
> But of course I have never tried it, don't know anything
> about it, don't know if it is the appropriate one, don't know
> if it is too old, don't know if it is too new -- and especially
> I don't know whether it contains any Python3 bindings.
> But perhaps it will have the missing file?  Who knows.
>

I make GrampsAIO-4.1.2 package for Windows with bsddb3 as always.
Note that difference between bsddb an bsddb3 is that first one was
included in python distribution and second one is version developed
outside python so it is a higher version which can works with current
Oracle/Berkeley DB version.

Did not quite understand "run gramps from master using  former master"
so don't know what system you use.
I use msys and gcc for builds, more precisely msys2 and mingw-w64.

You can see how to build that for Python2 and Python3 in both x86 and
x86_64 mode at:
https://github.com/Alexpux/MINGW-packages/blob/master/mingw-w64-python-bsddb3/PKGBUILD
Yeah Arch way on Windows :-))


--
Josip

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Josip
25.3.2015. u 10:51, Hans Ulrich Frink je napisao/la:
> Enno, Joasip
> With Former Master I meant  i could run gramps Master using Python 2.7
> and bsddb3 where bsddb is included.
> But i wasnt able to so the same with Python 3 and bsddb.
>

What exactly you use when you try Gramps from master branch and where
you get it?

> As far as i understand Jossips mail i would have to compile bsddb3
> bindings from c
> And it is not sufficient just to unzip bsddb3-6.1.0.zip to the right
> place in Python directory?
> Cheers
> Uli

If that "bsddb3-6.1.0.zip" is from pypi then yes, it is source code and
must be compiled against python library.

If you want to try master with GrampsAIO-4.1.2 i can zip python3 and all
bindings and put it to SF Dependencies page so you can extract it over
existing GrampsAIO-4.1.2 installation.


--
Josip

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
Reply | Threaded
Open this post in threaded view
|

Re: Proposal to drop python2 support

Hans Ulrich Frink-2
That would be very kind of you as I would not set up a complete environment for compilation and I hope that Python 3 gives yet better Performance.
Meanwhile i installed new AIO64 which is not to compare with AIO32. It is much faster. No Problem with scrolling. No Problem with drag and drop from clipboard. Which i used very often in Former versions but let to freesing in last versions.
When sorting views the amount of used workspace increases. When it reached about 200 Mb I could bet on freesing in next moments. The new Version runs with  smoothly scrolling safely.
Thank you
Uli

Von: [hidden email]
Gesendet: ‎25.‎03.‎2015 19:03
An: [hidden email]
Betreff: Re: [Gramps-devel] Proposal to drop python2 support

25.3.2015. u 10:51, Hans Ulrich Frink je napisao/la:
> Enno, Joasip
> With Former Master I meant  i could run gramps Master using Python 2.7
> and bsddb3 where bsddb is included.
> But i wasnt able to so the same with Python 3 and bsddb.
>

What exactly you use when you try Gramps from master branch and where
you get it?

> As far as i understand Jossips mail i would have to compile bsddb3
> bindings from c
> And it is not sufficient just to unzip bsddb3-6.1.0.zip to the right
> place in Python directory?
> Cheers
> Uli

If that "bsddb3-6.1.0.zip" is from pypi then yes, it is source code and
must be compiled against python library.

If you want to try master with GrampsAIO-4.1.2 i can zip python3 and all
bindings and put it to SF Dependencies page so you can extract it over
existing GrampsAIO-4.1.2 installation.


--
Josip

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel

------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Gramps-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-devel
12