PyChess 0.12rc4

Discussion of anything and everything relating to chess playing software and machines.

Moderators: hgm, Harvey Williamson, bob

Forum rules
This textbox is used to restore diagrams posted with the [d] tag before the upgrade.
Post Reply
User avatar
gbtami
Posts: 340
Joined: Wed Sep 26, 2012 11:29 am
Location: Hungary
Contact:

PyChess 0.12rc4

Post by gbtami » Tue Aug 18, 2015 9:39 am

We're pleased to announce, that a new PyChess Anderssen 0.12 rc4 has been made available. In most cases rc4 should contain only final fixes, but after rc3 we faced that fixing random crashes and freezee is nearly impossible. (It was caused by using old/deprecated way of pygtk threading.) So we decided to rewrite all our code in the supported way. At the same time we started to port PyChess to Python3 and John Cheetham started to port PyChess to Gtk3 too. After merging these branches it opened the way to support Windows (the old/deprecated threading mode was never supported on Windows). Finally with the help of Leonardo Gregianin PyChess now has experimental Windows support! (No installer yet.)

Some other new variant support was implemented too:
ASEAN, Makruk(Thai), OukChatrang(Cambodian), Sittuyin(Burmese)
King of the hill
Three check

Other minor enhancements:
Adding Windows engines on Linux
Auto save games
Auto adding engines if they ship .eng files
Copy PGN to clipboard

Download: http://pychess.org/download/

Ferdy
Posts: 3607
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: PyChess 0.12rc4

Post by Ferdy » Tue Aug 18, 2015 10:16 am

gbtami wrote:We're pleased to announce, that a new PyChess Anderssen 0.12 rc4 has been made available. In most cases rc4 should contain only final fixes, but after rc3 we faced that fixing random crashes and freezee is nearly impossible. (It was caused by using old/deprecated way of pygtk threading.) So we decided to rewrite all our code in the supported way. At the same time we started to port PyChess to Python3 and John Cheetham started to port PyChess to Gtk3 too. After merging these branches it opened the way to support Windows (the old/deprecated threading mode was never supported on Windows). Finally with the help of Leonardo Gregianin PyChess now has experimental Windows support! (No installer yet.)

Some other new variant support was implemented too:
ASEAN, Makruk(Thai), OukChatrang(Cambodian), Sittuyin(Burmese)
King of the hill
Three check

Other minor enhancements:
Adding Windows engines on Linux
Auto save games
Auto adding engines if they ship .eng files
Copy PGN to clipboard

Download: http://pychess.org/download/
How to run this in windows 7?
I have downloaded the file pychess-0.12rc4.tar.gz, unpack then run the setup.py and I got this.

Code: Select all

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>setup.py
ERROR: PyChess in Windows Platform requires to install PyGObject.
Installing from http://sourceforge.net/projects/pygobjectwin32

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>
But nothing was installed.

Now I am downloading pygi-aio-3.14.0 from "http://sourceforge.net/projects/pygobjectwin32", will this program not mess up my python 2.7.6?

User avatar
gbtami
Posts: 340
Joined: Wed Sep 26, 2012 11:29 am
Location: Hungary
Contact:

Re: PyChess 0.12rc4

Post by gbtami » Tue Aug 18, 2015 11:37 am

Ferdy wrote:

Code: Select all

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>setup.py
ERROR: PyChess in Windows Platform requires to install PyGObject.
Installing from http://sourceforge.net/projects/pygobjectwin32

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>
But nothing was installed.

Now I am downloading pygi-aio-3.14.0 from "http://sourceforge.net/projects/pygobjectwin32", will this program not mess up my python 2.7.6?
No, it will not.
Don't forget to select the components listed in INSTALL in pychess-0.12rc4.tar.gz

Ferdy
Posts: 3607
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: PyChess 0.12rc4

Post by Ferdy » Tue Aug 18, 2015 12:05 pm

gbtami wrote:
Ferdy wrote:

Code: Select all

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>setup.py
ERROR: PyChess in Windows Platform requires to install PyGObject.
Installing from http://sourceforge.net/projects/pygobjectwin32

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>
But nothing was installed.

Now I am downloading pygi-aio-3.14.0 from "http://sourceforge.net/projects/pygobjectwin32", will this program not mess up my python 2.7.6?
No, it will not.
Don't forget to select the components listed in INSTALL in pychess-0.12rc4.tar.gz
Thanks but I don't like installing this pygi-aio. It is offering me so many options, that I don't understand.
I will check/research this software later.

User avatar
gbtami
Posts: 340
Joined: Wed Sep 26, 2012 11:29 am
Location: Hungary
Contact:

Re: PyChess 0.12rc4

Post by gbtami » Tue Aug 18, 2015 12:34 pm

Ferdy wrote:
gbtami wrote:
Ferdy wrote:

Code: Select all

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>setup.py
ERROR: PyChess in Windows Platform requires to install PyGObject.
Installing from http://sourceforge.net/projects/pygobjectwin32

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>
But nothing was installed.

Now I am downloading pygi-aio-3.14.0 from "http://sourceforge.net/projects/pygobjectwin32", will this program not mess up my python 2.7.6?
No, it will not.
Don't forget to select the components listed in INSTALL in pychess-0.12rc4.tar.gz
Thanks but I don't like installing this pygi-aio. It is offering me so many options, that I don't understand.
I will check/research this software later.
You have to check components only listed in pychess INSTALL file.

Ferdy
Posts: 3607
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: PyChess 0.12rc4

Post by Ferdy » Tue Aug 18, 2015 11:25 pm

gbtami wrote:
Ferdy wrote:
gbtami wrote:
Ferdy wrote:

Code: Select all

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>setup.py
ERROR: PyChess in Windows Platform requires to install PyGObject.
Installing from http://sourceforge.net/projects/pygobjectwin32

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>
But nothing was installed.

Now I am downloading pygi-aio-3.14.0 from "http://sourceforge.net/projects/pygobjectwin32", will this program not mess up my python 2.7.6?
No, it will not.
Don't forget to select the components listed in INSTALL in pychess-0.12rc4.tar.gz
Thanks but I don't like installing this pygi-aio. It is offering me so many options, that I don't understand.
I will check/research this software later.
You have to check components only listed in pychess INSTALL file.
From INSTALL file.

Code: Select all

[...]

Dependencies for Windows:
python >= 2.7
PyGObject (from http://sourceforge.net/projects/pygobjectwin32)
  Base packages
  GDK-Pixbuf
  GStreamer
  Gst-plugins
  GTK+ 3.x
  GTKSourceView 3.x
  Pango
(create engine: pyinstaller and pywin32)
I have done the ff.

Code: Select all

python >= 2.7
PyGObject (from http://sourceforge.net/projects/pygobjectwin32)
  Base packages
  GDK-Pixbuf
  GStreamer
  Gst-plugins
  GTK+ 3.x
  GTKSourceView 3.x
  Pango
What is next?

User avatar
gbtami
Posts: 340
Joined: Wed Sep 26, 2012 11:29 am
Location: Hungary
Contact:

Re: PyChess 0.12rc4

Post by gbtami » Wed Aug 19, 2015 7:44 am

Ferdy wrote:
gbtami wrote:
Ferdy wrote:
gbtami wrote:
Ferdy wrote:

Code: Select all

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>setup.py
ERROR: PyChess in Windows Platform requires to install PyGObject.
Installing from http://sourceforge.net/projects/pygobjectwin32

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>
But nothing was installed.

Now I am downloading pygi-aio-3.14.0 from "http://sourceforge.net/projects/pygobjectwin32", will this program not mess up my python 2.7.6?
No, it will not.
Don't forget to select the components listed in INSTALL in pychess-0.12rc4.tar.gz
Thanks but I don't like installing this pygi-aio. It is offering me so many options, that I don't understand.
I will check/research this software later.
You have to check components only listed in pychess INSTALL file.
From INSTALL file.

Code: Select all

[...]

Dependencies for Windows:
python >= 2.7
PyGObject (from http://sourceforge.net/projects/pygobjectwin32)
  Base packages
  GDK-Pixbuf
  GStreamer
  Gst-plugins
  GTK+ 3.x
  GTKSourceView 3.x
  Pango
(create engine: pyinstaller and pywin32)
I have done the ff.

Code: Select all

python >= 2.7
PyGObject (from http://sourceforge.net/projects/pygobjectwin32)
  Base packages
  GDK-Pixbuf
  GStreamer
  Gst-plugins
  GTK+ 3.x
  GTKSourceView 3.x
  Pango
What is next?
Now you can run:
python setup.py install
then:
python c:\python27\scripts\pychess
(change python path as needed)

Ferdy
Posts: 3607
Joined: Sun Aug 10, 2008 1:15 pm
Location: Philippines

Re: PyChess 0.12rc4

Post by Ferdy » Wed Aug 19, 2015 9:32 am

gbtami wrote:
Ferdy wrote:
gbtami wrote:
Ferdy wrote:
gbtami wrote:
Ferdy wrote:

Code: Select all

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>setup.py
ERROR: PyChess in Windows Platform requires to install PyGObject.
Installing from http://sourceforge.net/projects/pygobjectwin32

C:\Users\Intel\Downloads\pychess-0.12rc4\pychess-0.12rc4>
But nothing was installed.

Now I am downloading pygi-aio-3.14.0 from "http://sourceforge.net/projects/pygobjectwin32", will this program not mess up my python 2.7.6?
No, it will not.
Don't forget to select the components listed in INSTALL in pychess-0.12rc4.tar.gz
Thanks but I don't like installing this pygi-aio. It is offering me so many options, that I don't understand.
I will check/research this software later.
You have to check components only listed in pychess INSTALL file.
From INSTALL file.

Code: Select all

[...]

Dependencies for Windows:
python >= 2.7
PyGObject (from http://sourceforge.net/projects/pygobjectwin32)
  Base packages
  GDK-Pixbuf
  GStreamer
  Gst-plugins
  GTK+ 3.x
  GTKSourceView 3.x
  Pango
(create engine: pyinstaller and pywin32)
I have done the ff.

Code: Select all

python >= 2.7
PyGObject (from http://sourceforge.net/projects/pygobjectwin32)
  Base packages
  GDK-Pixbuf
  GStreamer
  Gst-plugins
  GTK+ 3.x
  GTKSourceView 3.x
  Pango
What is next?
Now you can run:
python setup.py install
then:
python c:\python27\scripts\pychess
(change python path as needed)
Thanks a lot, it is now working :).

[pgn][Event "Local Event"]
[Site "Local Site"]
[Date "2015.08.19"]
[Round "1"]
[White "Intel"]
[Black "PyChess.py"]
[Result "1-0"]
[ECO "D20"]
[TimeControl "300+0"]
[Time "17:07:00"]
[WhiteClock "0:00:07.223"]
[BlackClock "0:04:51.562"]
[PlyCount "63"]

1. d4 d5 2. c4 dxc4 3. e3 Qd5 4. Nc3 Qc6 5. Nf3 Bf5 6. Ne5 Qd6 7. Bxc4 e6 8.
O-O Nc6 9. Bb5 Ne7 10. Qa4 a5 11. e4 Bg6 12. Be3 O-O-O 13. Nxc6 Nxc6 14. Bxc6
Qxc6 15. Qxa5 Bxe4 16. Nb5 Qc2 17. Rac1 Bb4 18. Qxb4 Qe2 19. Rxc7+ Kb8 20. Qa5
Qxb5 21. Qxb5 Kxc7 22. Rc1+ Bc6 23. Qe5+ Kc8 24. b4 Rhg8 25. b5 Rd5 26. Qg3
Rxb5 27. d5 Rxd5 28. Ba7 Rdd8 29. Bb6 Rd7 30. Qa3 Kb8 31. Qa7+ Kc8 32. Qa8# 1-0[/pgn]

Alexander Schmidt
Posts: 1060
Joined: Thu May 10, 2007 12:49 pm

Re: PyChess 0.12rc4

Post by Alexander Schmidt » Wed Aug 19, 2015 6:04 pm

gbtami wrote:We're pleased to announce, that a new PyChess Anderssen 0.12 rc4 has been made available. In most cases rc4 should contain only final fixes, but after rc3 we faced that fixing random crashes and freezee is nearly impossible. (It was caused by using old/deprecated way of pygtk threading.) So we decided to rewrite all our code in the supported way. At the same time we started to port PyChess to Python3 and John Cheetham started to port PyChess to Gtk3 too. After merging these branches it opened the way to support Windows (the old/deprecated threading mode was never supported on Windows). Finally with the help of Leonardo Gregianin PyChess now has experimental Windows support! (No installer yet.)

Some other new variant support was implemented too:
ASEAN, Makruk(Thai), OukChatrang(Cambodian), Sittuyin(Burmese)
King of the hill
Three check

Other minor enhancements:
Adding Windows engines on Linux
Auto save games
Auto adding engines if they ship .eng files
Copy PGN to clipboard

Download: http://pychess.org/download/
Thanks a lot, I really like PyChess!

There is an issue with frc castling, in case the rook don't move it disappears from the board:

[Event "Lokales Ereignis"]
[Site "Lokaler Ort"]
[Date "2015.08.19"]
[Round "1"]
[White "alex"]
[Black "Maverick 0.60 linux"]
[Result "*"]
[TimeControl "300+0"]
[Time "20:01:00"]
[WhiteClock "0:04:35.117"]
[BlackClock "0:04:22.362"]
[Variant "Fischerandom"]
[SetUp "1"]
[FEN "rbknnrbq/pppppppp/8/8/8/8/PPPPPPPP/RBKNNRBQ w FAfa - 0 1"]
[PlyCount "10"]

1. Nc3 {[%emt 0:00:00]} 1... f5 {[%emt 0:00:00]} 2. Nf3 {[%emt 0:00:04]} 2...
c5 {[%emt 0:00:07]} 3. h3 {[%emt 0:00:01]} 3... d5 {[%emt 0:00:08]} 4. Bh2
{[%emt 0:00:00]} 4... Nc6 {[%emt 0:00:11]} 5. O-O {[%emt 0:00:01]} 5... e5
{[%emt 0:00:12]} *

User avatar
gbtami
Posts: 340
Joined: Wed Sep 26, 2012 11:29 am
Location: Hungary
Contact:

Re: PyChess 0.12rc4

Post by gbtami » Wed Aug 19, 2015 7:40 pm

Alexander Schmidt wrote:
gbtami wrote:We're pleased to announce, that a new PyChess Anderssen 0.12 rc4 has been made available. In most cases rc4 should contain only final fixes, but after rc3 we faced that fixing random crashes and freezee is nearly impossible. (It was caused by using old/deprecated way of pygtk threading.) So we decided to rewrite all our code in the supported way. At the same time we started to port PyChess to Python3 and John Cheetham started to port PyChess to Gtk3 too. After merging these branches it opened the way to support Windows (the old/deprecated threading mode was never supported on Windows). Finally with the help of Leonardo Gregianin PyChess now has experimental Windows support! (No installer yet.)

Some other new variant support was implemented too:
ASEAN, Makruk(Thai), OukChatrang(Cambodian), Sittuyin(Burmese)
King of the hill
Three check

Other minor enhancements:
Adding Windows engines on Linux
Auto save games
Auto adding engines if they ship .eng files
Copy PGN to clipboard

Download: http://pychess.org/download/
Thanks a lot, I really like PyChess!

There is an issue with frc castling, in case the rook don't move it disappears from the board:

[Event "Lokales Ereignis"]
[Site "Lokaler Ort"]
[Date "2015.08.19"]
[Round "1"]
[White "alex"]
[Black "Maverick 0.60 linux"]
[Result "*"]
[TimeControl "300+0"]
[Time "20:01:00"]
[WhiteClock "0:04:35.117"]
[BlackClock "0:04:22.362"]
[Variant "Fischerandom"]
[SetUp "1"]
[FEN "rbknnrbq/pppppppp/8/8/8/8/PPPPPPPP/RBKNNRBQ w FAfa - 0 1"]
[PlyCount "10"]

1. Nc3 {[%emt 0:00:00]} 1... f5 {[%emt 0:00:00]} 2. Nf3 {[%emt 0:00:04]} 2...
c5 {[%emt 0:00:07]} 3. h3 {[%emt 0:00:01]} 3... d5 {[%emt 0:00:08]} 4. Bh2
{[%emt 0:00:00]} 4... Nc6 {[%emt 0:00:11]} 5. O-O {[%emt 0:00:01]} 5... e5
{[%emt 0:00:12]} *
Thx! Filed as https://github.com/pychess/pychess/issues/996

Post Reply