Review Request: RFC: Installing GCD dev platform on Windows x64

26 views
Skip to first unread message

Jean-François Massé

unread,
Nov 15, 2012, 10:23:17 AM11/15/12
to Jean-François Massé, GCD Tech Group
This is an automatically generated e-mail. To reply, visit: http://reviews.comics.org/r/1100/

Review request for GCD Tech Group.
By Jean-François Massé.

Description

This is the implementation of the GCD in Python using Django
Installation procedure for Windows x64
RFC
This is plain text version
When RFC is completed, I plan to add an html version (mostly to get hyperlinks)
Also I'd like the doc to be splitted:
-1st part: platform-specific instructions to setup dev infrastructure
-2nd part: generic instructions for coding and reviewing

Diffs

  • docs/Getting_Started_on_Windows (PRE-CREATION)

View Diff

Jochen G.

unread,
Nov 18, 2012, 4:40:48 AM11/18/12
to Jean-François Massé, Jochen G., GCD Tech Group
This is an automatically generated e-mail. To reply, visit: http://reviews.comics.org/r/1100/

Can someone who does Windows can have a look at this ? I will have a look at it later next week in any case.

- Jochen


On November 15th, 2012, 4:23 p.m., Jean-François Massé wrote:

Review request for GCD Tech Group.
By Jean-François Massé.

Updated Nov. 15, 2012, 4:23 p.m.

Jean-François Massé

unread,
Nov 18, 2012, 9:32:22 AM11/18/12
to gcd-...@googlegroups.com
Hi,
I'd like to be in sync with what Henry does with pip package installation (requirements.txt)
I didn't install virtualenv: I don't know if that's an absolute requirement.
I won't do this part, but I guess that "Getting_Started_on_MacOS_or_Linux.txt" needs some updating too (e.g.: svn vs. git)
 
JF
 

From: gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com] On Behalf Of Jochen G.
Sent: dimanche 18 novembre 2012 10:41
To: Jean-François Massé; Jochen G.; GCD Tech Group
Subject: [gcd-tech] Re: Review Request: RFC: Installing GCD dev platform on Windows x64

--
GCD-Tech mailing list - gcd-...@googlegroups.com
To unsubscribe send email to gcd-tech+u...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/gcd-tech

Jochen G.

unread,
Nov 18, 2012, 4:03:29 PM11/18/12
to gcd-...@googlegroups.com
an updated Getting_Started_on_MacOS_or_Linux.txt is on the django1.4
branch at github

Jochen

Am 18.11.2012 15:32, schrieb Jean-Fran�ois Mass�:
> Hi,
> I'd like to be in sync with what Henry does with pip package
> installation (requirements.txt)
> I didn't install virtualenv: I don't know if that's an absolute requirement.
> I won't do this part, but I guess that
> "Getting_Started_on_MacOS_or_Linux.txt" needs some updating too (e.g.:
> svn vs. git)
>
> JF
>
> ------------------------------------------------------------------------
> *From:* gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com] *On
> Behalf Of *Jochen G.
> *Sent:* dimanche 18 novembre 2012 10:41
> *To:* Jean-Fran�ois Mass�; Jochen G.; GCD Tech Group
> *Subject:* [gcd-tech] Re: Review Request: RFC: Installing GCD dev
> platform on Windows x64
>
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.comics.org/r/1100/
>
>
> Can someone who does Windows can have a look at this ? I will have a look at it later next week in any case.
>
>
> - Jochen
>
>
> On November 15th, 2012, 4:23 p.m., Jean-Fran�ois Mass� wrote:
>
> Review request for GCD Tech Group.
> By Jean-Fran�ois Mass�.
>
> /Updated Nov. 15, 2012, 4:23 p.m./
>
>
> Description
>
> This is the implementation of the GCD in Python using Django
> Installation procedure for Windows x64
> RFC
> This is plain text version
> When RFC is completed, I plan to add an html version (mostly to get hyperlinks)
> Also I'd like the doc to be splitted:
> -1st part: platform-specific instructions to setup dev infrastructure
> -2nd part: generic instructions for coding and reviewing
>
>
> Diffs
>
> * docs/Getting_Started_on_Windows (PRE-CREATION)
>
> View Diff <http://reviews.comics.org/r/1100/diff/>

Jean-François Massé

unread,
Nov 19, 2012, 5:44:45 AM11/19/12
to gcd-...@googlegroups.com
Thanks,
I'll do an update.
Sorry, how do I proceed to submit the updated doc?
The current submission is still pending.
It looks that I don't really understand the review process yet...
Regards
JF


-----Original Message-----
From: gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com] On Behalf
Of Jochen G.
Sent: dimanche 18 novembre 2012 10:03
To: gcd-...@googlegroups.com
Subject: Re: [gcd-tech] Re: Review Request: RFC: Installing GCD dev platform
on Windows x64

an updated Getting_Started_on_MacOS_or_Linux.txt is on the django1.4 branch
at github

Jochen

Am 18.11.2012 15:32, schrieb Jean-François Massé:
> Hi,
> I'd like to be in sync with what Henry does with pip package
> installation (requirements.txt) I didn't install virtualenv: I don't
> know if that's an absolute requirement.
> I won't do this part, but I guess that
> "Getting_Started_on_MacOS_or_Linux.txt" needs some updating too (e.g.:
> svn vs. git)
>
> JF
>
> ----------------------------------------------------------------------
> --
> *From:* gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com]
> *On Behalf Of *Jochen G.
> *Sent:* dimanche 18 novembre 2012 10:41
> *To:* Jean-François Massé; Jochen G.; GCD Tech Group
> *Subject:* [gcd-tech] Re: Review Request: RFC: Installing GCD dev
> platform on Windows x64
>
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.comics.org/r/1100/
>
>
> Can someone who does Windows can have a look at this ? I will have a look
at it later next week in any case.
>
>
> - Jochen
>
>
> On November 15th, 2012, 4:23 p.m., Jean-François Massé wrote:
>
> Review request for GCD Tech Group.
> By Jean-François Massé.

Jochen G.

unread,
Nov 19, 2012, 5:43:26 PM11/19/12
to gcd-...@googlegroups.com
I was hoping that someone knowing windows would look at it and comment.

I'll try to have a closer look tomorrow, also in regard to re-organising
into OS-specific and not.

Jochen

Am 19.11.2012 11:44, schrieb Jean-Fran�ois Mass�:
> Thanks,
> I'll do an update.
> Sorry, how do I proceed to submit the updated doc?
> The current submission is still pending.
> It looks that I don't really understand the review process yet...
> Regards
> JF
>
>
> -----Original Message-----
> From: gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com] On Behalf
> Of Jochen G.
> Sent: dimanche 18 novembre 2012 10:03
> To: gcd-...@googlegroups.com
> Subject: Re: [gcd-tech] Re: Review Request: RFC: Installing GCD dev platform
> on Windows x64
>
> an updated Getting_Started_on_MacOS_or_Linux.txt is on the django1.4 branch
> at github
>
> Jochen
>
> Am 18.11.2012 15:32, schrieb Jean-Fran�ois Mass�:
>> Hi,
>> I'd like to be in sync with what Henry does with pip package
>> installation (requirements.txt) I didn't install virtualenv: I don't
>> know if that's an absolute requirement.
>> I won't do this part, but I guess that
>> "Getting_Started_on_MacOS_or_Linux.txt" needs some updating too (e.g.:
>> svn vs. git)
>>
>> JF
>>
>> ----------------------------------------------------------------------
>> --
>> *From:* gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com]
>> *On Behalf Of *Jochen G.
>> *Sent:* dimanche 18 novembre 2012 10:41
>> *To:* Jean-Fran�ois Mass�; Jochen G.; GCD Tech Group
>> *Subject:* [gcd-tech] Re: Review Request: RFC: Installing GCD dev
>> platform on Windows x64
>>
>> This is an automatically generated e-mail. To reply, visit:
>> http://reviews.comics.org/r/1100/
>>
>>
>> Can someone who does Windows can have a look at this ? I will have a look
> at it later next week in any case.
>>
>>
>> - Jochen
>>
>>
>> On November 15th, 2012, 4:23 p.m., Jean-Fran�ois Mass� wrote:
>>
>> Review request for GCD Tech Group.
>> By Jean-Fran�ois Mass�.

Witold Karpeta

unread,
Nov 20, 2012, 4:18:36 AM11/20/12
to Jean-François Massé, Witold Karpeta, GCD Tech Group
This is an automatically generated e-mail. To reply, visit: http://reviews.comics.org/r/1100/

I'm not really a Windows developer, however I tried earlier to set this all up on Windows (but finally I'm developing under Linux on VMWare Player).
But looking at it, it looks as quite good and precise description.

(x64).txt (Diff revision 1)
None
141
You'll need to set up an account with our Review Board instance and get added to the SourceForge project with write permissions, as noted on the wiki.  
A GitHub account instead of SourceForge should be mentioned here.

- Witold


On November 15th, 2012, 4:23 p.m., Jean-François Massé wrote:

Review request for GCD Tech Group.
By Jean-François Massé.

Updated Nov. 15, 2012, 4:23 p.m.

Description

Jean-François Massé

unread,
Nov 20, 2012, 10:31:49 AM11/20/12
to gcd-...@googlegroups.com
OK
I've read the updated doc.
There's no way I can see to split this to have platform-specific separated
from generic instructions.
Then, I'll add/upate/correct required parts in my doc.
I'll have then to carefully re-run the install from scratch.
Due to VC9 use for C code compilation, that's quite different...

Anyway I already have many questions:
PIL: Are JPEG and ZLIB libs enough? Could one need FREETYPE?
MySQL: Why 5.1? I run 5.5 without much problem as far as I can tell.
Master branch cannot run with Django above 1.3.(doc assumes that one is
running master branch with Django 1.4!)
Isn't registration to Github required?
Will master branch be dropped in favor of django-1.4 soon?
(installation process is slightly different...pip,South...)

Adding a pip freeze listing for reference would be nice.

Regards

JF

-----Original Message-----
From: gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com] On Behalf
Of Jochen G.
Sent: dimanche 18 novembre 2012 10:03
To: gcd-...@googlegroups.com
Subject: Re: [gcd-tech] Re: Review Request: RFC: Installing GCD dev platform
on Windows x64

an updated Getting_Started_on_MacOS_or_Linux.txt is on the django1.4 branch
at github

Jochen

Am 18.11.2012 15:32, schrieb Jean-François Massé:
> Hi,
> I'd like to be in sync with what Henry does with pip package
> installation (requirements.txt) I didn't install virtualenv: I don't
> know if that's an absolute requirement.
> I won't do this part, but I guess that
> "Getting_Started_on_MacOS_or_Linux.txt" needs some updating too (e.g.:
> svn vs. git)
>
> JF
>
> ----------------------------------------------------------------------
> --
> *From:* gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com]
> *On Behalf Of *Jochen G.
> *Sent:* dimanche 18 novembre 2012 10:41
> *To:* Jean-François Massé; Jochen G.; GCD Tech Group
> *Subject:* [gcd-tech] Re: Review Request: RFC: Installing GCD dev
> platform on Windows x64
>
> This is an automatically generated e-mail. To reply, visit:
> http://reviews.comics.org/r/1100/
>
>
> Can someone who does Windows can have a look at this ? I will have a look
at it later next week in any case.
>
>
> - Jochen
>
>
> On November 15th, 2012, 4:23 p.m., Jean-François Massé wrote:
>
> Review request for GCD Tech Group.
> By Jean-François Massé.

Jochen G.

unread,
Nov 20, 2012, 5:33:39 PM11/20/12
to gcd-...@googlegroups.com
Am 20.11.2012 16:31, schrieb Jean-Fran�ois Mass�:
> Anyway I already have many questions:
> PIL: Are JPEG and ZLIB libs enough? Could one need FREETYPE?

Isn't FREETYPE something with fonts ?
PIL is in the end only needed if you do actual work involving image
processing, so JPEG and ZLIB is enough, unless you want to do more with
the covers code.

> MySQL: Why 5.1? I run 5.5 without much problem as far as I can tell.

5.5 it is on production by now if I am not mistaken, so this can be updated.

> Master branch cannot run with Django above 1.3.(doc assumes that one is
> running master branch with Django 1.4!)

The new doc on the django1.4 branch is written as it being the new
master. So if it references master, it means (for now) django1.4

> Isn't registration to Github required?

Not for downloading. Just for uploading/pushing.

> Will master branch be dropped in favor of django-1.4 soon?
> (installation process is slightly different...pip,South...)

As soon as Andres has enough time available.

Jochen


Henry Andrews

unread,
Nov 20, 2012, 5:41:26 PM11/20/12
to gcd-...@googlegroups.com
And by "master branch dropped in favor of django1.4" we mean "django1.4 will be merged to master, we'll deploy the updated master, and we'll drop django1.4 as a branch".
With git, by convention there is always a master branch.  It's the other ones that come and go.

thanks,
-henry


From: Jochen G. <gcd...@garcke.de>
To: gcd-...@googlegroups.com
Sent: Tuesday, November 20, 2012 2:33 PM

Subject: Re: [gcd-tech] Re: Review Request: RFC: Installing GCD dev platform on Windows x64
--
GCD-Tech mailing list - gcd-...@googlegroups.com
To unsubscribe send email to gcd-tech+unsub...@googlegroups.com

Jean-François Massé

unread,
Nov 21, 2012, 10:46:23 AM11/21/12
to gcd-...@googlegroups.com
Hi,
Isn't PIL required to display png files? (like gcd logo)

Freetype is open source version of Truetype (yes, fonts!)
So, that's not used in gcd.
Good thing because I didn't manage to compile this for x64, yet.(would be
straightforward with paid VS)

Is PyYAML still required when we use South?

We could explain why CSSTidy: required by django-compressor package.

Registration to Github: this note could be added (I will)

I'll consider that django-1.4 branch is the one to use in order to validate
installation doc for Windows x64.

BTW: I cannot use requirements.txt as is (some packages require manual
building in Windows)

Could someone give me a brief explaination for code/doc submission process?
(or point me to a page about that!)
E.g.: why review board + git? I'm a bit lost there...
I have no experience in team development at all.

Regards

JF

-----Original Message-----
From: gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com] On Behalf
Of Jochen G.
Sent: mardi 20 novembre 2012 11:34
To: gcd-...@googlegroups.com
Subject: Re: [gcd-tech] Re: Review Request: RFC: Installing GCD dev platform
on Windows x64

Jochen G.

unread,
Nov 21, 2012, 2:46:41 PM11/21/12
to gcd-...@googlegroups.com
Am 21.11.2012 16:46, schrieb Jean-Fran�ois Mass�:
> Isn't PIL required to display png files? (like gcd logo)

Hmm, don't know, that should be due to the browser.

I think we only need PIL in the OI, due to the line
import Image as pyImage
in covers.py

Actually forget that, the generic Images need this since we are using
imagekit, and that is not just in the OI.

One probably could remove the image functionality in some way from the
apps, we do not distribute the images anyway, and then don't use PIL.
But that would be somewhat complicated to describe, so forget that I
mentioned it.

In other words, for normal dev use a very basic PIL installation is enough.

> Is PyYAML still required when we use South?

Hmm, good question.

> We could explain why CSSTidy: required by django-compressor package.

yes.

> Could someone give me a brief explaination for code/doc submission process?
> (or point me to a page about that!)

There is:
http://docs.comics.org/wiki/Web_Site_Project_Page#Using_Review_Board
but that needs to be updated for git. Does this help a bit ?

I myself still need to see what best practise is for review-board and
git, so this is a bit in flux. I am getting some ideas though. Note that
I currently have to do much grant writing at work, so doing other tech
writing I don't have energy for. (Oddly policy discussions are a kind of
relaxing change from work)

> E.g.: why review board + git? I'm a bit lost there...

We decided that we do not like the github builtin code review
possibilities. Try looking at some of the other code reviews, there you
can see that the review board display is much more workable.

Jochen

Jean-François Massé

unread,
Nov 22, 2012, 11:31:08 AM11/22/12
to gcd-...@googlegroups.com

Thanks
That's a good starting point.
Yet, it looks that I need to read full Review Board doc to really
understand...

Regarding PIL, I did uninstall it to check.
Most image features work without it.
For what I saw, it's all about picture scaling support in the gcd code.

For the users created by "manage.py loaddata users", it would helpful to
give their passwords within installation doc.
(yes, one can read contents of "users.yaml" but...)
I didn't check yet what South does when reinstalling from scratch.

JF


-----Original Message-----
From: gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com] On Behalf
Of Jochen G.
Sent: mercredi 21 novembre 2012 8:47
To: gcd-...@googlegroups.com
Subject: Re: [gcd-tech] Re: Review Request: RFC: Installing GCD dev platform
on Windows x64

Clay Mitchell

unread,
Dec 22, 2012, 5:15:54 PM12/22/12
to gcd-...@googlegroups.com
I'm going through the process right now - it's pretty much spot on, though could use some clarification on what you need to do with the VS2008 / vcvarsall.bat problems that popped up - I installed Visual C++ Express and added "C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC" to my path. 

However, I was unable to install python-MySQL or PyICU via pip, I had to download the binaries.

Additionally, It might be a good idea to specifically mention you need to drop the local cache alternative into settings_local.py

I am running into a problem at the "manage.py users" step.

I get the error: DatabaseError: Could not load gcd.Indexer(pk=1): (1146, "Table 'gcdonline.gcd_indexer' doesn't exist")

And it's right, that table doesn't exist.

Any idea where it's created?

Thanks
-Clay

On Monday, November 19, 2012 5:43:27 PM UTC-5, Jochen G. wrote:
I was hoping that someone knowing windows would look at it and comment.

I'll try to have a closer look tomorrow, also in regard to re-organising
into OS-specific and not.

Jochen

>> *To:* Jean-Fran�ois Mass�; Jochen G.; GCD Tech Group
>> *Subject:* [gcd-tech] Re: Review Request: RFC: Installing GCD dev
>> platform on Windows x64
>>
>> This is an automatically generated e-mail. To reply, visit:
>> http://reviews.comics.org/r/1100/
>>
>>
>> Can someone who does Windows can have a look at this ? I will have a look
> at it later next week in any case.
>>
>>
>> - Jochen
>>
>>
>> On November 15th, 2012, 4:23 p.m., Jean-Fran�ois Mass� wrote:
>>
>> Review request for GCD Tech Group.
>> By Jean-Fran�ois Mass�.

Andres Jimenez

unread,
Dec 22, 2012, 5:20:17 PM12/22/12
to gcd-...@googlegroups.com
What's your database name?

Error is looking for database "gcdonline". Probably you will need to
correct that, as that was the name of the database 3 years ago....


Andrés

2012/12/22 Clay Mitchell <cl...@pfd.net>:
> (1146, "Table 'gcdonline.gcd_indexer' doesn't exist")



--
Andres Jimenez

Clay Mitchell

unread,
Dec 22, 2012, 5:25:03 PM12/22/12
to gcd-...@googlegroups.com
It's named gcdonline, per the instructions :)

Username is gcd (if that makes a difference for some reason)

mysql> SELECT table_schema, table_name FROM INFORMATION_SCHEMA.TABLES where table_schema = 'gcdonline';
+--------------+----------------------------+
| table_schema | table_name                 |
+--------------+----------------------------+
| gcdonline    | auth_group                 |
| gcdonline    | auth_group_permissions     |
| gcdonline    | auth_permission            |
| gcdonline    | auth_user                  |
| gcdonline    | auth_user_groups           |
| gcdonline    | auth_user_user_permissions |
| gcdonline    | django_admin_log           |
| gcdonline    | django_content_type        |
| gcdonline    | django_session             |
| gcdonline    | django_site                |
| gcdonline    | gcd_brand                  |
| gcdonline    | gcd_country                |
| gcdonline    | gcd_indicia_publisher      |
| gcdonline    | gcd_issue                  |
| gcdonline    | gcd_issue_reprint          |
| gcdonline    | gcd_language               |
| gcdonline    | gcd_publisher              |
| gcdonline    | gcd_reprint                |
| gcdonline    | gcd_reprint_from_issue     |
| gcdonline    | gcd_reprint_to_issue       |
| gcdonline    | gcd_series                 |
| gcdonline    | gcd_story                  |
| gcdonline    | gcd_story_type             |
| gcdonline    | south_migrationhistory     |
| gcdonline    | taggit_tag                 |
| gcdonline    | taggit_taggeditem          |
+--------------+----------------------------+

Jochen G.

unread,
Dec 23, 2012, 5:05:13 AM12/23/12
to gcd-...@googlegroups.com
Did you run

python manage.py syncdb

after you loaded our public dump ? It generates the missing tables which
are not in it.

Although some seem to be there, because if I am not mistaken the public
dump should not include the auth and django tables ?

Or did the above fail ?

Jochen
> Andr�s
>
> 2012/12/22 Clay Mitchell <cl...@pfd.net <javascript:>>:
> > (1146, "Table 'gcdonline.gcd_indexer' doesn't exist")
>
>
>
> --
> Andres Jimenez
>

Jochen G.

unread,
Dec 23, 2012, 5:48:37 AM12/23/12
to gcd-...@googlegroups.com
Finally found some time to closer look at this windows installation process.

This does not use virtualenv and pip install -r requirements.txt on
Windows. I assume because Jean-Francois was working on this while that
other process was being developed and documented.

Did anyone try installing using virtualenv under windows ?

You would need to have installed (I think)

git
python
mysql
ICU
CSSTidy
setuptools
virtualenv

And then do a virtualenv and try pip install -r requirements.txt in that
virtualenv.

But I suspect from some of the problems reported it wouldn't work under
Windows for all the packages ?

Jochen

Am 22.12.2012 23:15, schrieb Clay Mitchell:
> I'm going through the process right now - it's pretty much spot on,
> though could use some clarification on what you need to do with the
> VS2008 / vcvarsall.bat problems that popped up - I installed Visual C++
> Express and added "C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC" to my path.
>
> However, I was unable to install python-MySQL or PyICU via pip, I had to
> download the binaries.
>
> Additionally, It might be a good idea to specifically mention you need
> to drop the local cache alternative into settings_local.py
>
> I am running into a problem at the "manage.py users" step.
>
> I get the error: DatabaseError: Could not load gcd.Indexer(pk=1): (1146,
> "Table 'gcdonline.gcd_indexer' doesn't exist")
>
> And it's right, that table doesn't exist.
>
> Any idea where it's created?
>
> Thanks
> -Clay
>
> On Monday, November 19, 2012 5:43:27 PM UTC-5, Jochen G. wrote:
>
> I was hoping that someone knowing windows would look at it and comment.
>
> I'll try to have a closer look tomorrow, also in regard to
> re-organising
> into OS-specific and not.
>
> Jochen
>
> >> *From:* gcd-...@googlegroups.com <javascript:>
> [mailto:gcd-...@googlegroups.com <javascript:>]
> >> *On Behalf Of *Jochen G.
> >> *Sent:* dimanche 18 novembre 2012 10:41
> >> *To:* Jean-Fran�ois Mass�; Jochen G.; GCD Tech Group
> >> *Subject:* [gcd-tech] Re: Review Request: RFC: Installing GCD dev
> >> platform on Windows x64
> >>
> >> This is an automatically generated e-mail. To reply, visit:
> >> http://reviews.comics.org/r/1100/
> <http://reviews.comics.org/r/1100/>
> >>
> >>
> >> Can someone who does Windows can have a look at this ? I will
> have a look
> > at it later next week in any case.
> >>
> >>
> >> - Jochen
> >>
> >>
> >> On November 15th, 2012, 4:23 p.m., Jean-Fran�ois Mass� wrote:
> >>
> >> Review request for GCD Tech Group.
> >> By Jean-Fran�ois Mass�.
> >>
> >> /Updated Nov. 15, 2012, 4:23 p.m./
> >>
> >>
> >> Description
> >>
> >> This is the implementation of the GCD in Python using Django
> >> Installation procedure for Windows x64 RFC This is plain text
> version
> >> When RFC is completed, I plan to add an html version (mostly to get
> >> hyperlinks) Also I'd like the doc to be splitted:
> >> -1st part: platform-specific instructions to setup dev
> infrastructure
> >> -2nd part: generic instructions for coding and reviewing
> >>
> >>
> >> Diffs
> >>
> >> * docs/Getting_Started_on_Windows (PRE-CREATION)
> >>
> >> View Diff <http://reviews.comics.org/r/1100/diff/
> <http://reviews.comics.org/r/1100/diff/>>
> >>
> >> --
> >> GCD-Tech mailing list - gcd-...@googlegroups.com <javascript:> To
> unsubscribe send
> >> email to gcd-tech+u...@googlegroups.com <javascript:>
> >> For more options, visit this group at
> >> http://groups.google.com/group/gcd-tech
> <http://groups.google.com/group/gcd-tech>
> >>
> >> --
> >> GCD-Tech mailing list - gcd-...@googlegroups.com <javascript:> To
> unsubscribe send
> >> email to gcd-tech+u...@googlegroups.com <javascript:>
> >> For more options, visit this group at
> >> http://groups.google.com/group/gcd-tech
> <http://groups.google.com/group/gcd-tech>
> >
> > --
> > GCD-Tech mailing list - gcd-...@googlegroups.com <javascript:> To
> unsubscribe send email
> > to gcd-tech+u...@googlegroups.com <javascript:>

Jochen G.

unread,
Dec 23, 2012, 6:10:44 AM12/23/12
to Jean-François Massé, Jochen G., GCD Tech Group
This is an automatically generated e-mail. To reply, visit: http://reviews.comics.org/r/1100/

(x64).txt (Diff revision 1)
107
9. From the gcd-django/ directory, run:
108
manage.py syncdb
109
This will create the various tables that are not present in the data dump and load data in tables that need them. 
110
Now, instead of creating a local admin in the syncdb step, you should load several additional data fixtures:
111
manage.py loaddata support
112
manage.py loaddata users
For this, could someone please try the 'new' way using South which is explained in Mac/Linux doc under GCD project and apps ?

I am kind of hoping that everything starting from that header in that doc would apply verbatim to Windows.

- Jochen


On November 15th, 2012, 4:23 p.m., Jean-François Massé wrote:

Review request for GCD Tech Group.
By Jean-François Massé.

Updated Nov. 15, 2012, 4:23 p.m.

Description

Jochen G.

unread,
Dec 23, 2012, 6:12:49 AM12/23/12
to gcd-...@googlegroups.com
We have the following in our Mac/Linux doc which I hope does apply for
Windows as well. These changes aren't reflected in the RFC as of now.

If you can try it ?

Jochen

===============================================================================
= The GCD project and apps
===============================================================================

settings.py and settings_local.py
=================================
In the top level directory of your repository clone, open up settings.py and
take a look at it. You should create a settings_local.py file in the same
directory, and override any values from settings.py that need overriding in
that settings_local.py. Do not modify settings.py itself, unless you need
to push a change out to all other development and production environments.

Our .gitignore settings will prevent git from noticing settings_local.py.

The settings.py file has numerous comments indicating what needs to be
overridden.
The most obvious is the DATABASES group of settings.

Creating your test database
===========================
Create your database and set up whatever permissions you want. Django
will create the tables for you, but you need to create the database first.

If you want data in your database, and know that the current development
master
matches the production shema, you can load a data dump from

http://www.comics.org/download/

Contact the GCD tech team to find out if the development and production
schemas currently match, and what to do if they do not.

Populating your database with empty tables
==========================================
From the root project directory, run

python manage.py syncdb

which will create the various tables that are not present in the data
dump and
load data in tables that need them. DO NOT create a local admin user when
syncdb prompts you to do so. Creating such a user will produce a user
without
a profile (gcd_indexer row) which will cause problems.

You will notice that syncdb says that it cannot sync some apps because they
are controlled by South migrations. To run the migrations, run:

python manage.py migrate

This will create the remainder of the tables, populate them with the
required
initial data (and if DEBUG=True in your settings, which it is by default,
this will include an admin user, an approver, and a basic indexer),
and update your schema if any updates beyond the initial state are required.
See

http://south.aeracode.org/

for help with any difficulties with South.

Launching your test web server
==============================
At this time you should be able to test your installation and data
import using a
read-only mode, or try out editing with read-write mode.

Read-write mode is the default.
For read-only mode, set READ_ONLY = True and NO_OI = True in
settings_local.py

Once your settings are chosen, run

python manage.py runserver

and take a look at http://127.0.0.1:8000/

If you don't get any page at all, check http://www.djangoproject.com/ if it
looks like Django isn't configured correctly, or
http://dev.comics.org/ and/or http://groups.google.com/group/gcd-tech/
if it appears to be a code problem.

Am 22.12.2012 23:15, schrieb Clay Mitchell:
> I'm going through the process right now - it's pretty much spot on,
> though could use some clarification on what you need to do with the
> VS2008 / vcvarsall.bat problems that popped up - I installed Visual C++
> Express and added "C:\Program Files (x86)\Microsoft Visual Studio
> 9.0\VC" to my path.
>
> However, I was unable to install python-MySQL or PyICU via pip, I had to
> download the binaries.
>
> Additionally, It might be a good idea to specifically mention you need
> to drop the local cache alternative into settings_local.py
>
> I am running into a problem at the "manage.py users" step.
>
> I get the error: DatabaseError: Could not load gcd.Indexer(pk=1): (1146,
> "Table 'gcdonline.gcd_indexer' doesn't exist")
>
> And it's right, that table doesn't exist.
>
> Any idea where it's created?
>
> Thanks
> -Clay
>
> On Monday, November 19, 2012 5:43:27 PM UTC-5, Jochen G. wrote:
>
> I was hoping that someone knowing windows would look at it and comment.
>
> I'll try to have a closer look tomorrow, also in regard to
> re-organising
> into OS-specific and not.
>
> Jochen
>
> >> *From:* gcd-...@googlegroups.com <javascript:>
> [mailto:gcd-...@googlegroups.com <javascript:>]
> >> *On Behalf Of *Jochen G.
> >> *Sent:* dimanche 18 novembre 2012 10:41
> >> *To:* Jean-Fran�ois Mass�; Jochen G.; GCD Tech Group
> >> *Subject:* [gcd-tech] Re: Review Request: RFC: Installing GCD dev
> >> platform on Windows x64
> >>
> >> This is an automatically generated e-mail. To reply, visit:
> >> http://reviews.comics.org/r/1100/
> <http://reviews.comics.org/r/1100/>
> >>
> >>
> >> Can someone who does Windows can have a look at this ? I will
> have a look
> > at it later next week in any case.
> >>
> >>
> >> - Jochen
> >>
> >>
> >> On November 15th, 2012, 4:23 p.m., Jean-Fran�ois Mass� wrote:
> >>
> >> Review request for GCD Tech Group.
> >> By Jean-Fran�ois Mass�.
> >>
> >> /Updated Nov. 15, 2012, 4:23 p.m./
> >>
> >>
> >> Description
> >>
> >> This is the implementation of the GCD in Python using Django
> >> Installation procedure for Windows x64 RFC This is plain text
> version
> >> When RFC is completed, I plan to add an html version (mostly to get
> >> hyperlinks) Also I'd like the doc to be splitted:
> >> -1st part: platform-specific instructions to setup dev
> infrastructure
> >> -2nd part: generic instructions for coding and reviewing
> >>
> >>
> >> Diffs
> >>
> >> * docs/Getting_Started_on_Windows (PRE-CREATION)
> >>
> >> View Diff <http://reviews.comics.org/r/1100/diff/
> <http://reviews.comics.org/r/1100/diff/>>
> >>
> >> --
> >> GCD-Tech mailing list - gcd-...@googlegroups.com <javascript:> To
> unsubscribe send
> >> email to gcd-tech+u...@googlegroups.com <javascript:>
> >> For more options, visit this group at
> >> http://groups.google.com/group/gcd-tech
> <http://groups.google.com/group/gcd-tech>
> >>
> >> --
> >> GCD-Tech mailing list - gcd-...@googlegroups.com <javascript:> To
> unsubscribe send
> >> email to gcd-tech+u...@googlegroups.com <javascript:>
> >> For more options, visit this group at
> >> http://groups.google.com/group/gcd-tech
> <http://groups.google.com/group/gcd-tech>
> >
> > --
> > GCD-Tech mailing list - gcd-...@googlegroups.com <javascript:> To
> unsubscribe send email
> > to gcd-tech+u...@googlegroups.com <javascript:>

Clay Mitchell

unread,
Dec 23, 2012, 2:07:35 PM12/23/12
to gcd-...@googlegroups.com
Ok, I've been working on trying to get the pip -r requirements.txt process working within a virtualenv and it's not a lot of fun :D

Once you get Visual Studio C++ Express installed, most everything will build except for MySQL-python and PyICU.

MySQL requires that you have the MySQL connectors installed, then to start building MySQL-python, wait for it to fail, then go in and edit a couple files under build/MySQL-python, then restarting the build process.

And PyICU... I have no idea. I was unable to get it to installed.

Here's what I recommend. Instruct the user snag the appropriate binary distribution of PyICE and MySQL-python


The installer on these are set up to put the libs into your Python install, however they are just zip files (or something that can be opened with 7zip) so if you're using virtualenv, you can extract the files out into your virtualenv's site-packages directory.

Then, include a "requirements_windows.txt" that has the entries that are buildable and have the user run that (pip install -r requirements_windows.txt) after installing the binary distributions.

I'm still working on getting everything up and running, but things seems relatively installed at this point.

-Clay
>     >> *To:* Jean-Fran�ois Mass�; Jochen G.; GCD Tech Group
>     >> *Subject:* [gcd-tech] Re: Review Request: RFC: Installing GCD dev
>     >> platform on Windows x64
>     >>
>     >> This is an automatically generated e-mail. To reply, visit:
>     >> http://reviews.comics.org/r/1100/
>     <http://reviews.comics.org/r/1100/>
>     >>
>     >>
>     >> Can someone who does Windows can have a look at this ? I will
>     have a look
>     > at it later next week in any case.
>     >>
>     >>
>     >> - Jochen
>     >>
>     >>
>     >> On November 15th, 2012, 4:23 p.m., Jean-Fran�ois Mass� wrote:
>     >>
>     >> Review request for GCD Tech Group.
>     >> By Jean-Fran�ois Mass�.

Jochen G.

unread,
Dec 23, 2012, 6:55:22 PM12/23/12
to gcd-...@googlegroups.com
Am 23.12.2012 20:07, schrieb Clay Mitchell:
> Ok, I've been working on trying to get the pip -r requirements.txt
> process working within a virtualenv and it's not a lot of fun :D
>
> Once you get Visual Studio C++ Express installed, most everything will
> build except for MySQL-python and PyICU.
>
> MySQL requires that you have the MySQL connectors installed, then to
> start building MySQL-python, wait for it to fail, then go in and edit a
> couple files under build/MySQL-python, then restarting the build process.
>
> And PyICU... I have no idea. I was unable to get it to installed.
>
> Here's what I recommend. Instruct the user snag the appropriate binary
> distribution of PyICE and MySQL-python
>
> http://www.lfd.uci.edu/~gohlke/pythonlibs/#pyicu
> http://www.lfd.uci.edu/~gohlke/pythonlibs/#mysql-python
>
> The installer on these are set up to put the libs into your Python
> install, however they are just zip files (or something that can be
> opened with 7zip) so if you're using virtualenv, you can extract the
> files out into your virtualenv's site-packages directory.
>
> Then, include a "requirements_windows.txt" that has the entries that are
> buildable and have the user run that (pip install -r
> requirements_windows.txt) after installing the binary distributions.

I think that if these are installed in the virtualenv's site-packages
directory a following pip install -r requirements.txt should see these
two and hopefully consider them installed and not try to install these
again.

In other words, what happens if one does such a pip-call after these two
are installed by using the above binary distributions ?

Jochen

Clay Mitchell

unread,
Dec 23, 2012, 7:41:49 PM12/23/12
to gcd-...@googlegroups.com
Good call - I just ran it and :

Requirement already satisfied (use --upgrade to upgrade): MySQL-python in d:\github\gcd-django\venv\lib\site-packages (from -r requirements.txt (line 3))

Requirement already satisfied (use --upgrade to upgrade): PyICU in d:\github\gcd-django\venv\lib\site-packages (from -r requirements.txt (line 5))

So no requirements_windows.txt, just have to make sure the user installs the binaries before running pip install.

-Clay

Jochen G.

unread,
Dec 24, 2012, 12:25:41 AM12/24/12
to gcd-...@googlegroups.com
Good, so it looks like the Windows install description can be simplified
a bit in regard to the python packages.

Jochen

Jan Roar Hansen

unread,
Dec 24, 2012, 7:56:39 AM12/24/12
to gcd-...@googlegroups.com

Andres Jimenez

unread,
Dec 24, 2012, 9:03:25 AM12/24/12
to gcd-...@googlegroups.com
Are you getting any errors or the buttons are not displayed?

Andrés

2012/12/24 Jan Roar Hansen <jan-...@online.no>:
> http://www.comics.org/changeset/1678262/compare/
>
> Jan
>
> --
> GCD-Tech mailing list - gcd-...@googlegroups.com
> To unsubscribe send email to gcd-tech+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/gcd-tech



--
Andres Jimenez

Andres Jimenez

unread,
Dec 24, 2012, 9:16:24 AM12/24/12
to gcd-...@googlegroups.com, Jan Roar Hansen
It's fixed now.

Please confirm.

Andrés

2012/12/24 Andres Jimenez <gand...@gmail.com>:
--
Andres Jimenez

Jan Roar Hansen

unread,
Dec 24, 2012, 9:16:32 AM12/24/12
to gcd-...@googlegroups.com
No, just "the spinning wheel"

Jan

-----Opprinnelig melding-----
Fra: gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com] På vegne
av Andres Jimenez
Sendt: 24. desember 2012 15:03
Til: gcd-...@googlegroups.com
Emne: Re: [gcd-tech] can not approve or unassign
-----
No virus found in this message.
Checked by AVG - www.avg.com
Version: 2012.0.2221 / Virus Database: 2637/5482 - Release Date: 12/23/12


Andres Jimenez

unread,
Dec 24, 2012, 9:17:38 AM12/24/12
to gcd-...@googlegroups.com
Please. Try again.

I could approve just fine.

Jan Roar Hansen

unread,
Dec 24, 2012, 9:18:08 AM12/24/12
to gcd-...@googlegroups.com
Issue approved. Thanks!

Jan

-----Opprinnelig melding-----
Fra: gcd-...@googlegroups.com [mailto:gcd-...@googlegroups.com] På vegne
av Andres Jimenez
Sendt: 24. desember 2012 15:16
Til: gcd-...@googlegroups.com
Kopi: Jan Roar Hansen
Emne: Re: [gcd-tech] can not approve or unassign

Andres Jimenez

unread,
Dec 24, 2012, 9:21:01 AM12/24/12
to gcd-...@googlegroups.com
It was a weird problem...

I saw some errors as the server was using IPv6 in some circunstances.
I did disable it, as we have no IPv6 configuration.

But, per default, the hosts file gets both IPv4 and IPv6 records for
localhost and IPv6 is on top, so it was having problems to find it's
own loopback.
Reply all
Reply to author
Forward
0 new messages