briot / geneapro

Genealogical software based on the GenTech data model
http://briot.github.com/geneapro/
GNU General Public License v2.0
33 stars 8 forks source link

Can not run geneapro #3

Closed ghost closed 11 years ago

ghost commented 11 years ago

Wanting to try it out. received the First error below. Had a look in the file and can see you mention "# Experimental, does not work yet" for the geneapro.views.merge.view so I made lines 10 and 38 commented lines. Then I tried again and received the Second Error not sure what to do now?

Please help, I am just learning python and interested in trying geneapro

-Pat

First error:

Environment:

Request Method: GET Request URL: http://127.0.0.1:8000/

Django Version: 1.4.1 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'geneapro') Installed Middleware: ('mysites.middleware.simple_exception.AJAXSimpleExceptionResponse', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback: File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

  1. request.path_info) File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in resolve
  2. for pattern in self.url_patterns: File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in url_patterns
  3. patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module) File "/usr/lib/python2.7/dist-packages/django/core/urlresolvers.py" in urlconf_module
  4. self._urlconf_module = import_module(self.urlconf_name) File "/usr/lib/python2.7/dist-packages/django/utils/importlib.py" in import_module
  5. import(name) File "/home/pat/git/geneapro/mysites/urls.py" in
  6. import geneapro.urls File "/home/pat/git/geneapro/geneapro/urls.py" in
  7. import geneapro.views.merge

Exception Type: ImportError at / Exception Value: No module named merge


Second Error

Environment:

Request Method: GET Request URL: http://127.0.0.1:8000/

Django Version: 1.4.1 Python Version: 2.7.3 Installed Applications: ('django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'django.contrib.messages', 'django.contrib.staticfiles', 'geneapro') Installed Middleware: ('mysites.middleware.simple_exception.AJAXSimpleExceptionResponse', 'django.middleware.common.CommonMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware')

Traceback: File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response

  1. response = callback(request, _callback_args, *_callback_kwargs) File "/home/pat/git/geneapro/geneapro/views/pedigree.py" in pedigree_view
  2. {"pedigree_data": compute_data(graph, gens, False, decujus), File "/home/pat/git/geneapro/geneapro/views/pedigree.py" in compute_data
  3. last_gen_known=last_gen_known) File "/home/pat/git/geneapro/geneapro/views/pedigree.py" in get_sosa_tree
  4. decujus = graph.node_from_id(id) File "/home/pat/git/geneapro/geneapro/views/graph.py" in node_from_id
  5. return self.__nodes[id]

Exception Type: KeyError at / Exception Value: 1

briot commented 11 years ago

Wanting to try it out. received the First error below. Had a look in the file and can see you mention "# Experimental, does not work yet" for the geneapro.views.merge.view so I made lines 10 and 38 commented lines. Then I tried again and received the Second Error not sure what to do now?

Merge still does not work, but I had forgotten to check in the file. You no longer need to comment lines 10 and 38 as you did (which was a correct fix).

For the second issue, I suspect you haven't imported an existing GEDCOM file, which really is the only thing you can currently do to get data into geneapro. Actual editing mode will come, but is not there yet.

Try:

(make reset, or: ./manage.py reset --noinput geneapro ./manage.py loaddata geneapro/initial_data.json )

./manage.py import yourfile.ged

… and report errors in the import :-)

Emmanuel