anxb26 / fritzing

Automatically exported from code.google.com/p/fritzing
1 stars 1 forks source link

Web dependency version issues #1021

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I'm trying to get the web code working and running into some issues with
dependencies.

My steps for bootstraping are:

1. virtualenv .
2. . bin/activate
3. pip install -r requirements.txt
4. ./manage.py syncdb

Which results in Error: One or more models did not validate:
forum.thread: "sticky": BooleanFields do not accept null values. Use a
NullBooleanField instead.
forum.thread: "closed": BooleanFields do not accept null values. Use a
NullBooleanField instead.

But if I hack the fields to be NullBooleanField and run the code I get the
following stack trace.

5. ./manage.py runserver

Traceback:
File
"/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/django/core/handlers/b
ase.py"
in get_response
  83.                     request.path_info)
File
"/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/django/core/urlresolve
rs.py"
in resolve
  216.             for pattern in self.url_patterns:
File
"/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/django/core/urlresolve
rs.py"
in _get_url_patterns
  245.         patterns = getattr(self.urlconf_module, "urlpatterns",
self.urlconf_module)
File
"/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/django/core/urlresolve
rs.py"
in _get_urlconf_module
  240.             self._urlconf_module = import_module(self.urlconf_name)
File
"/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/django/utils/importlib
.py"
in import_module
  35.     __import__(name)
File
"/Users/steven/Projects/electronics/fritzing-read-only/web/fritzing/../fritzing/
urls.py"
in <module>
  7. admin.autodiscover()
File
"/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/django/contrib/admin/_
_init__.py"
in autodiscover
  56.         import_module("%s.admin" % app)
File
"/Library/Python/2.6/site-packages/Django-1.1.1-py2.6.egg/django/utils/importlib
.py"
in import_module
  35.     __import__(name)
File
"/Users/steven/Projects/electronics/fritzing-read-only/web/fritzing/../fritzing/
apps/projects/admin.py"
in <module>
  4. from pages.admin.widgets import markItUpMarkdown

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

Original issue reported on code.google.com by osborn.s...@gmail.com on 11 Mar 2010 at 6:32

GoogleCodeExporter commented 9 years ago
Our web expert is off-site now, but maybe he ca have a look.

Mariano, do you have an idea what's going on?

Original comment by andre.knoerig@gmail.com on 12 Mar 2010 at 9:21

GoogleCodeExporter commented 9 years ago
This might possibly be due to Pinax requiring a particular version of Django--I 
think 
it might be 1.0.4?

Original comment by irasc...@gmail.com on 12 Mar 2010 at 12:05

GoogleCodeExporter commented 9 years ago
Ok, I downgraded to django 1.0.4 it fixed the NullBoolean stuff when running 
syncdb,
but I'm still getting the import error with the stack trace I pasted.

Original comment by osborn.s...@gmail.com on 12 Mar 2010 at 9:38

GoogleCodeExporter commented 9 years ago
I did some version wrangling.  Had to get an older version of 
django-filebrowse, and
pull django-pages from git because the release version seems to be missing 
widgets.py

Still fighting random errors.  Is there no better way to get this running?

Original comment by osborn.s...@gmail.com on 13 Mar 2010 at 12:01

GoogleCodeExporter commented 9 years ago
In the documentation at ixds private wiki, there's a little explanation about 
the
main problems that i got setting up the djnago-pinax environment.
The main problem is that the updating process it's kind heavy, i think mostly 
because
many of the django apps that pinax uses, are development versions... you cannot
actually rely on them, yet
I tried the update process some time ago, and I gave up and sticked to the 
original
environment: pinax 0.7.3 and django 1.0.2
With Jonathan we tried to set a django development environment in a windows 
machine,
but we couldn't find the 0.7.3 version of pinax. I guess it can be dragged from 
linux
machine at ixds (the process is lighlty described also in the ixds wiki).

Original comment by meru...@gmail.com on 13 Mar 2010 at 12:25

GoogleCodeExporter commented 9 years ago
I think I finally have everything working (or at least mostly working) and feel 
some
affirmation for choosing to go with a less feature rich, but workable stack in 
the
past - Pinax is a mess.

Original comment by osborn.s...@gmail.com on 14 Mar 2010 at 10:40

GoogleCodeExporter commented 9 years ago
We completely agree.

Original comment by irasc...@gmail.com on 14 Mar 2010 at 11:40

GoogleCodeExporter commented 9 years ago

Original comment by irasc...@gmail.com on 17 Mar 2013 at 6:42

GoogleCodeExporter commented 9 years ago
Issue has moved to new issue tracker at github. Please continue the discussion 
at https://github.com/fritzing/fritzing-app/issues

Original comment by andre.knoerig@gmail.com on 23 Sep 2014 at 3:37