<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ascend4.org/index.php?action=history&amp;feed=atom&amp;title=Running_the_Python%2FPyGTK_GUI_on_Windows</id>
	<title>Running the Python/PyGTK GUI on Windows - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ascend4.org/index.php?action=history&amp;feed=atom&amp;title=Running_the_Python%2FPyGTK_GUI_on_Windows"/>
	<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=Running_the_Python/PyGTK_GUI_on_Windows&amp;action=history"/>
	<updated>2026-05-03T19:21:12Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://ascend4.org/index.php?title=Running_the_Python/PyGTK_GUI_on_Windows&amp;diff=76&amp;oldid=prev</id>
		<title>UploadBot: Restored page from Google Cache, uploaded by John Pye</title>
		<link rel="alternate" type="text/html" href="https://ascend4.org/index.php?title=Running_the_Python/PyGTK_GUI_on_Windows&amp;diff=76&amp;oldid=prev"/>
		<updated>2010-05-13T13:46:11Z</updated>

		<summary type="html">&lt;p&gt;Restored page from Google Cache, uploaded by John Pye&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;div class=&amp;quot;notice metadata&amp;quot; id=&amp;quot;outdated&amp;quot; style=&amp;quot;border:solid 2pt orange; width:70ex; background-color:#FFEEDD;padding:4px;margin-bottom:6px&amp;quot;&amp;gt;&amp;#039;&amp;#039;This article is &amp;#039;&amp;#039;&amp;#039;outdated&amp;#039;&amp;#039;&amp;#039;. You can help out by &amp;lt;span class=&amp;quot;plainlinks&amp;quot;&amp;gt;[http://ascendwiki.cheme.cmu.edu/index.php?title=Running_the_Python/PyGTK_GUI_on_Windows&amp;amp;action=edit updating it]&amp;lt;/span&amp;gt;. &amp;#039;&amp;#039;&amp;lt;/div&amp;gt;&amp;lt;div class=&amp;quot;floatright&amp;quot;&amp;gt;[[Image:Windows-with-plot.png]]&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The PyGTK GUI for ASCEND also runs on Windows, although you will probably find the list of prerequisites a little irritating at this stage. This page outlines the steps required to get it running, at least until we work out a better way to package all the various dependencies etc.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Text here has been moved to [[Building ASCEND]].&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== SCons ==&lt;br /&gt;
&lt;br /&gt;
[http://www.scons.org SCons] is the preferred build tool for ASCEND, because of its ability to support non-POSIX compilers on Windows, as well as all the usual suspects on unixy systems.&lt;br /&gt;
&lt;br /&gt;
Install SCons using the downloadable installer. Be sure to use [http://sourceforge.net/project/showfiles.php?group_id=30337 SCons-0.96.92] or later.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Getting the ASCEND source code ==&lt;br /&gt;
&lt;br /&gt;
I used [http://tortoisesvn.tigris.org TortoiseSVN] to get the source code from the repository. I set the location for the data to c:\msys\1.0\home\john\ascend&lt;br /&gt;
&lt;br /&gt;
See [[VersionManagement]] for the details of what URL to use to access our repository.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:mingw-4.png]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Building ==&lt;br /&gt;
&lt;br /&gt;
The PyGTK GUI requires a wrapper DLL (&amp;lt;tt&amp;gt;_ascpy.dll&amp;lt;/tt&amp;gt;) to handling interfacing ASCEND with the Python language. It also requires the &amp;#039;core&amp;#039; ASCEND DLL (&amp;lt;tt&amp;gt;ascend.dll&amp;lt;/tt&amp;gt;) containing the compiler and solver engine. This latter is shared with the Tcl/Tk interface. To build these, we recommend using SCons via the MSYS command line (doubleclick the new, big, blue &amp;#039;M&amp;#039; icon on your desktop).&lt;br /&gt;
&lt;br /&gt;
First change to the directory where you put the sources, and set up your &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;cd ~/ascend&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;export PATH=/mingw/bin:/bin:/c/Program\ Files/GnuWin32/bin:/c/Python24:/c/Python24/Scripts:/c/GTK/bin:/e/swigwin-1.3.29/:/c/Tcl/bin/:${PATH}&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Now, launch SCons:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;scons&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This should build the complete PyGTK interface. If all goes well, this should result in a file &amp;lt;tt&amp;gt;ascend.dll&amp;lt;/tt&amp;gt; in &amp;lt;tt&amp;gt;~/ascend&amp;lt;/tt&amp;gt; and a file &amp;lt;tt&amp;gt;_ascpy.dll&amp;lt;/tt&amp;gt; in &amp;lt;tt&amp;gt;~/ascend/pygtk&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Runtime prerequisites ==&lt;br /&gt;
&lt;br /&gt;
Please see [[Prerequisites for Windows]]. We are in the process of reorganising this content.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Running ==&lt;br /&gt;
&lt;br /&gt;
To run ASCEND, assuming you have installed all of the runtime prerequisites, you can use your MSYS commandline and type:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;tt&amp;gt;cd ~/ascend/pygtk&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;export ASC_DEV=1&amp;lt;/tt&amp;gt;&lt;br /&gt;
* &amp;lt;tt&amp;gt;./ascend&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that there are a number of [[Environment_variables_for_ASCEND|environment variables]] that affect how ASCEND runs.&lt;br /&gt;
&lt;br /&gt;
Please let us know of any bugs with this under the &amp;#039;pygtk-gui&amp;#039; section of the [[Debugging_ASCEND|bug tracker]].&lt;br /&gt;
&lt;br /&gt;
In particular, it looks like some of the plotting functionality, incidence matrix, and &amp;#039;diagnose&amp;#039; window are liable to crash. Normal solving seems fine. We are chasing these issues down with the GTK+ windows porters.&lt;br /&gt;
&lt;br /&gt;
You may also experience different results depending on whether you run from the MSYS commandline as opposed to the Window &amp;#039;cmd&amp;#039; console: under these two environment file paths are sometimes treated differently.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Installing ==&lt;br /&gt;
&lt;br /&gt;
There is a windows installer that can be created using the [http://nsis.sf.net/ NSIS] tool. Once NSIS is installed, follow the above instructions but replace the &amp;#039;&amp;lt;tt&amp;gt;scons&amp;lt;/tt&amp;gt;&amp;#039; command with &amp;#039;&amp;lt;tt&amp;gt;scons installer&amp;lt;/tt&amp;gt;&amp;#039;. The installer file &amp;lt;tt&amp;gt;ascend-NNNNN.exe&amp;lt;/tt&amp;gt; should appear in the pygtk subdirectory. Here, &amp;lt;tt&amp;gt;NNNNN&amp;lt;/tt&amp;gt; is a version number specified in the &amp;lt;tt&amp;gt;SConstruct&amp;lt;/tt&amp;gt; file. The installer doesn&amp;#039;t currently include the various prerequisites; these will need to be installed on your system before the installed version of ASCEND will sstart up correctly. We propose to add some logic to the installer warning about missing components, but this has yet to be done.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Note&amp;#039;&amp;#039;&amp;#039;: NSIS does &amp;#039;&amp;#039;&amp;#039;not&amp;#039;&amp;#039;&amp;#039; need to be in your path, because the NSIS Builder (&amp;lt;tt&amp;gt;scons/nsis.py&amp;lt;/tt&amp;gt;) uses the Windows registry to locate &amp;lt;tt&amp;gt;makensis.exe&amp;lt;/tt&amp;gt;. Only where the registry key cannot be found does the NSIS Builder look in your &amp;lt;tt&amp;gt;PATH&amp;lt;/tt&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
See also [http://nsis.sourceforge.net/Docs/AppendixG.html] for info on how it should be possible to build the Windows installer from Linux&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 [[Category:Outdated]]&lt;br /&gt;
[[Category:Documentation]]&lt;/div&gt;</summary>
		<author><name>UploadBot</name></author>
	</entry>
</feed>