On Sat, May 24, 2008 at 1:12 AM, LouA <larn...@gmail.com> wrote:
>
> I've read the Devjavu notes on installing Gaphor, and there is a lot
> of confusion as to what is needed, where to get it, and what order to
> install things in. Perhaps some one can speak to these matters:
>
> 1) There is an all-in-one installer for PyGTK at http://www.pygtk.org/news.html
> (an article early in that page). That appears to bring in the latest
> edition of Python as well as many other things. Is this useful? I
> assume this should be downloaded and installed first?
This sounds good. I was not aware of this (boy, isn't this bad
publicity?). I'll make a reference on the wiki ASAP.
> 2) Towards the top of the DevjaVu page, there is statement "Windows
> users should check out the gaphor-win32-libs module from subversion."
> Did you really intend for us to extract software from a repository or
> was "check out" and "subversion" just an unfortunate choice of words?
> Modelers don't always know how to work with version control
> repositories.
If you put it this way... Indeed I didn't realise extracting stuff
from a repository isn't a common thing on windows.
> 3) Re. the CustomInstallationLocation. I assume the instructions there
> must be carried out after Python is installed? How does this fit in
> with the all-in-one installer and/or the gaphor-Win32-libs or gaphor-
> x.x.x?
This should be applied after Python is installed, since it allows you
to install additional software in a different location from the python
base code (which allows you to simply remove and reinstall
applications and libraries).
> 4) On the Devjavu page, at the very end, it says
> -----"Windows users should not need to install Gaphor at all, but have
> to download the gaphor-win32-libs package from Subversion and place in
> the directory gaphor-x.x.x.".
> I downloaded gaphor-0.8.1-win32-py24.zip and when I unzipped it that
> created a subfolder named "gaphor-win32-libs". Now both the main
> folder and subfolder have batch files named "run-gaphor.bat".
> Which is to be used? And inside the file, what folder name must be
> given for "gaphor-Win32-libs"?
Gaphor 0.8.1 is quite old. I didn't take that into account when
writing the documentation.
.. and you should use the .bat file from the topmost folder...
> That folder tree gaphor-x.x.x seems to contain GTK 2.0 or things that
> are related to GTK 2.0; is that not true? Will the files and folders
> be put where PyGTK is (from the all-in-one installer)?
This is redundant, I guess the all in one installer will provide all
libraries necessary.
> Should I be using the gaphor-Win32-libs instead of the easy_install
> tool?
gaphor-win32-libs just installs the libraries. In the old days (half a
year ago) I had to compile quite some code myself (on win32) in order
to get Gaphor working.
> Does executing run-gahor.bat install Gaphor?
:) nope.
> 5) Do I really need to install MingGW at all? And if so, when in
> relation to the other downloads and installs? Is there really code to
> compile to run Gaphor? When does this compilation occur? What about a
> linker?
You don't have to install Mingw.
Your comment make clear to me that my documentation on getting Gaphor
working on win32 is seriously lacking.
I think it's best to stick with the all-in-one installer and fetch
gaphor using easy_install. If this work, please let me know so I can
update the documentation. That would seriously lower the barrier of
using gaphor on windows (I'm not a windows user ;).
Thanks for pointing out and I'm looking forward to your findings.
Kind regards,
Arjan
On Mon, May 26, 2008 at 5:44 PM, LouA <larn...@gmail.com> wrote:
>
> In response:
> Thank you for your help. Let confirm these items:
> 1) I am to use the all-in-one installer
Yes,this will install Python 2.5 + GTK + pygtk. I haven't tried it
myself though.
> 2) I am to set up my folders as per the CustomInstallationLocation.
This is an optional step, otherwise everything will be installed in
your python 2.5 directory.
> 2) I then use the easy-install.py script to install Gaphor.
> 3) I am not to use the gaphor-Win32-libs package.
Correct
> And for further clarification:
> When I last used easy_install, python was already installed, but
> GTK2.0, etc was not. Neither was gaphor-Win32-libs.
> When executing setup, a message came up about something having been
> compiled with Visual Studio 2003, and that this software was not
> found. It suggested instead that MingGW should be used. This suggests
> that the setup program was trying to compile something. Is that
> correct? Will this happen again once I use the all-in-one installer?
Oh, that's zope.interface. This package contains a few files that are required.
Try "easy_install zope.interface==3.3.0", since this is the last
version that contains a pre-compiled egg for Python 2.5 on windows.
> Please note: Windows users are often very knowledgeable about Linux
> matters. It is modelers that tend not to have such knowledge. Of
> necessity we need to focus on the software analysis rather than
> compilers and libraries. This makes communication with us rather
> difficult at times. Please bear with us.
I'm aware of this. I've looked into several ways to create all-in-one
package installer, but didn't succeed so far.
If you have any suggestions ;)
Regards,
Arjan
Ehhm.. yes ;/
Correct.
> Also, immediately after the listing of the file, there is a sentence
> that suggests the use of "python setup.py develop". Is this the proper
> command to use?
"python setup.py install" should also work. I'll update this on the
website. the "develop" target will create a "link" to the directory
you install from , which is meaningful when you're, well, developing.
Regards,
Arjan
I created a short description of how Gaphor can simply be installed.
It's located on http://gaphor.devjavu.com/wiki/Win32.
No custom installation locations. It seems to work here ;).
Regards,
Arjan
It's good to see it worked for you too. I'll try to figure out how I
can avoid having this nice command box with debug statements.
Then, a nice all-in-one installer would probably be a good idea ;).
Regards,
Arjan
On Fri, May 30, 2008 at 5:10 PM, LouA <larn...@gmail.com> wrote:
>
> Some feed back:
> The install process worked well.
> - I installed ActiveState's ActivePython first. It installs by default
> to C:\Python25.
> - I set the install folder to c:\Python25 for the all-in-one installer
> and then executed that but opted not to install the Python runtime (as
> they call it). However I still see a Pythonwin.exe which may indicate
> that a second Python executable has been installed after all.
IIRC it's called pythonw in the "official" python 2.5 installation.
I did some work on an all-in-one installer for ASCEND, which is a PyGTK
app that runs on Windows. You might want to have a look at the following:
http://ascendcode.cheme.cmu.edu/viewvc.cgi/code/branches/extfn/nsis/
This installer checks for prereqs such as Python, GTK+, PyGTK, PyCairo,
PyGObject and downloads and installs the missing ones before proceeding
to install itself. I think that this approach is better than the big
super-package because it works better when other packages are also
making use of these other Python packages.
The file 'installer.nsi' is the main file, the others are #includes.
Cheers
JP
I like the way it works. I've been playing a bit with it and I think
it should be pretty easy to modify it in order to get Gaphor installed
(download ez_setup.py and execute it with the right options).
Regards,
Arjan
Yes, it's Gaphas (http://gaphor.devjavu.com/wiki/Subprojects/Gaphas).
> I'm looking for some open source drawing editor with and API that I
> can tag into. Its for modeling - mostly the same functionality as
> Gaphor. Only 2D, takes several loadable symbols sets, no hand drawn
> figures, no image processing, no reflections - something much lighter
> than OpenGL, or GTK. Any suggestions?
>
> Re. :) the install process: Its really not bad. Just very unusual to
> see so much happening in a DOS window, and to draw the software from a
> few separate sites. It may turn some people off, and some may see it
> as not be very secure. I just don't know.
I'm aware of that, but since I don't have any windows at home its hard
for me to build a decent installer. I hope I can get this working with
John's installer. It looks very promising.
> The ActivePython has a Visual Studio style of IDE and may therefore be
> more attractive. Hard to judge that also.
>
>
> I think the current install process is good. It was the first time I
> encountered an
Regards,
Arjan