Quantcast

Gramps Webapp help needed for Win7

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Gramps Webapp help needed for Win7

tannooba
I started playing around with the webapp part of GRAMPS last week, but I'm running into difficulty compiling the webapp on win7-64bit.

- downloaded gramps3.4 via svn
- installed a GNUWIN32 "make" program
- cd to src/webapp
- make clean, make, make run  (all failed)

I tried to manually execute steps in the Makefile with no success.

Is there an easier way to get make to work for webapp on windows?

Thank for your help
Tanno

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Gramps Webapp help needed for Win7

DS Blank
On Fri, Jun 15, 2012 at 10:22 AM, tannooba <[hidden email]> wrote:

> I started playing around with the webapp part of GRAMPS last week, but I'm
> running into difficulty compiling the webapp on win7-64bit.
>
> - downloaded gramps3.4 via svn
> - installed a GNUWIN32 "make" program
> - cd to src/webapp
> - make clean, make, make run  (all failed)
>
> I tried to manually execute steps in the Makefile with no success.
>
> Is there an easier way to get make to work for webapp on windows?

Yes! Sorry, I haven't done any work yet to make this work from
Windows. This is really for developers so far, but it goes something
like the following (the manage,py is a Django program):

% cd src\webapp
% set PYTHONPATH=..
% python manage.py syncdb
% python manage.py runserver

So, it is really easy. The Makefile is just to make the above easier
(because my memory is bad :).

-Doug

> Thank for your help
> Tanno
>
>
>
> --
> View this message in context: http://gramps.1791082.n4.nabble.com/Gramps-Webapp-help-needed-for-Win7-tp4655372.html
> Sent from the GRAMPS - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Gramps Webapp help needed for Win7

tannooba
Thank you Doug for the quick response!

I tried exactly the steps you mentioned, but django fails saying it cannot find "settings", although settings.py is in there.

I poked around a bit, and it seems it cannot import const (from settings).
I thought this was because I needed to build gramps first which would generate the module "const".
But I ran into difficulty building gramps from the windows directory/builder/build_GrampsWin32.py - it hangs on "Running: svn export C:\gramps34\src C:\gramps34\windows\gramps-3.4.1-SVNxxxx\src."

I guess I could wait for the official release, but I'm anxious to get it to work :)

Thanks again!
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Gramps Webapp help needed for Win7

DS Blank
On Fri, Jun 15, 2012 at 12:34 PM, tannooba <[hidden email]> wrote:

> Thank you Doug for the quick response!
>
> I tried exactly the steps you mentioned, but django fails saying it cannot
> find "settings", although settings.py is in there.
>
> I poked around a bit, and it seems it cannot import const (from settings).
> I thought this was because I needed to build gramps first which would
> generate the module "const".
> But I ran into difficulty building gramps from the windows
> directory/builder/build_GrampsWin32.py - it hangs on "Running: svn export
> C:\gramps34\src C:\gramps34\windows\gramps-3.4.1-SVNxxxx\src."
>
> I guess I could wait for the official release, but I'm anxious to get it to
> work :)

I'm anxious to get feedback on the web-based Gramps, so let's see if I
can help a bit more :)

Gramps is mostly just Python, so there are ways to get started without
all of the complexity.

src\const.py.in can just be copied (or renamed) to src\const.py so
that should be easy.

Then, all you need is the PYTHONPATH set so that it can find src, then
you can run the "python manage.py runserver" in the src\webapp folder
and be up and running hosting your own Gramps data on the web.

Things are changing quickly, but I'm actually trying to edit my real
data on the web. I'll post current status updates here:

http://gramps-project.org/wiki/index.php?title=Gramps-Connect#Status

And I'll try to find a Windows computer to test this out, and update
that wiki page with Windows-specific issues.

Thanks!

-Doug

> Thanks again!
>
> --
> View this message in context: http://gramps.1791082.n4.nabble.com/Gramps-Webapp-help-needed-for-Win7-tp4655372p4655374.html
> Sent from the GRAMPS - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Gramps Webapp help needed for Win7

DS Blank
Ok, I just updated gramps/trunk to be able to work with Windows7 and
serve Gramps-Connect data live.

1) Get Gramps from Trunk

https://gramps.svn.sourceforge.net/svnroot/gramps/trunk

I use Tortoise SVN. I put gramps on the Desktop, but anywhere will work.

2) Install pysqlite:

http://code.google.com/p/pysqlite/downloads/list

Run installer, and make sure you select the version of Python that you have.

3) Install Django:

svn checkout http://code.djangoproject.com/svn/django/branches/releases/1.3.X/django
to your Python site-packages directory:

c:\Python27\Lib\site-packages\

Django 1.3 would be best at this point.

4) Change to trunk\src\webapp

And run the following at the command line (cmd):

5) c:\Python27\python.exe init.py > grampsdb\fixtures\initial_data.json

6) c:\Python27\python.exe manage.py syncdb

7) c:\Python27\python.exe manage.py runserver

8) Point browser to 127.0.0.1:8000

Thanks it!

-Doug

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Gramps Webapp help needed for Win7

tannooba
In reply to this post by DS Blank
Almost there.

there is a "Locale" issue _GrampsLocale.py.

  File "C:\gramps34\src\GrampsLocale\_GrampsLocale.py", line 141, in <module>
    unicode(time.strftime('%B',(0,1,1,1,1,1,1,1,1)),codeset).lower() : 1,
TypeError: unicode() argument 2 must be string, not None

I used the python debugger to see what's gonig on.
It looks like locale.CODESET in _GrampsLocale.py line 38 is not returning anything.

I poked around on the web and read a lot of comments saying this function is not available for windoes.  I looked at the python code (locale.py) and saw they do test the case for win, so it should have worked.

Again, if you feel this is too much sidetracking for you right now, please accept my apologies.  I'd just wait for the official release :)

thanks for your help.

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Gramps Webapp help needed for Win7

DS Blank
On Fri, Jun 15, 2012 at 4:41 PM, tannooba <[hidden email]> wrote:
> Almost there.

You should do a svn update. I had to change a couple of items,
including this one, and it does work on Windows.

-Doug

> there is a "Locale" issue _GrampsLocale.py.
>
>  File "C:\gramps34\src\GrampsLocale\_GrampsLocale.py", line 141, in
> <module>
>    unicode(time.strftime('%B',(0,1,1,1,1,1,1,1,1)),codeset).lower() : 1,
> TypeError: unicode() argument 2 must be string, not None
>
> I used the python debugger to see what's gonig on.
> It looks like locale.CODESET in _GrampsLocale.py line 38 is not returning
> anything.
>
> I poked around on the web and read a lot of comments saying this function is
> not available for windoes.  I looked at the python code (locale.py) and saw
> they do test the case for win, so it should have worked.
>
> Again, if you feel this is too much sidetracking for you right now, please
> accept my apologies.  I'd just wait for the official release :)
>
> thanks for your help.
>
>
>
> --
> View this message in context: http://gramps.1791082.n4.nabble.com/Gramps-Webapp-help-needed-for-Win7-tp4655372p4655377.html
> Sent from the GRAMPS - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Gramps Webapp help needed for Win7

tannooba
Ahhhhh...  Works like a CHARM !!!!!

for the record,
Since I'm using Django 1.4 I had to do the following tweaks:
1. in ../src, copy const.py.in to const.py as you mentioned earlier
2. in settings.py, changed TEMPLATE_CONTEXT_PROCESSORS from "django.core.context_processors.auth" to "django.contrib.auth.context_processors.auth".
3. In settings.py, changed TEMPLATE_LOADERS to say "django.template.loaders.filesystem.Loader" instead of ...loaders.filesystem.Load_template_source.

Thank you very much for your help.

Tanno
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Gramps Webapp help needed for Win7

DS Blank
On Fri, Jun 15, 2012 at 7:42 PM, tannooba <[hidden email]> wrote:

> Ahhhhh...  Works like a CHARM !!!!!
>
> for the record,
> Since I'm using Django 1.4 I had to do the following tweaks:
> 1. in ../src, copy const.py.in to const.py as you mentioned earlier
> 2. in settings.py, changed TEMPLATE_CONTEXT_PROCESSORS from
> "django.core.context_processors.auth" to
> "django.contrib.auth.context_processors.auth".
> 3. In settings.py, changed TEMPLATE_LOADERS to say
> "django.template.loaders.filesystem.Loader" instead of
> ...loaders.filesystem.Load_template_source.

Excellent! Both that you got it to work, and that you provide help on
using Django 1.4, which I haven't used yet.

> Thank you very much for your help.

Ditto!

-Doug

> Tanno
>
> --
> View this message in context: http://gramps.1791082.n4.nabble.com/Gramps-Webapp-help-needed-for-Win7-tp4655372p4655379.html
> Sent from the GRAMPS - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Gramps-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gramps-users

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Loading...