[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: DDTSS-Django, developer release



Hello kleptop

On 06/29/2011 09:22 AM, Martijn van Oosterhout wrote:
After lots of playing around and learning, I've got the beginnings of
a replacement for the DDTSS, written in Python using Django and
SQLAlchemy.

https://github.com/kleptog/DDTSS-Django

sorry for the late response.

The days I make a clone and today I test your README.

But I get Errors...

Maybe you can help?

grisu@think:~/Projekte/privat/DDTSS-Django (master)$ python bootstrap.py
Downloading http://pypi.python.org/packages/2.6/s/setuptools/setuptools-0.6c11-py2.6.egg
Creating directory '/home/grisu/Projekte/privat/DDTSS-Django/bin'.
Creating directory '/home/grisu/Projekte/privat/DDTSS-Django/parts'.
Creating directory '/home/grisu/Projekte/privat/DDTSS-Django/eggs'.
Creating directory '/home/grisu/Projekte/privat/DDTSS-Django/develop-eggs'.
Getting distribution for 'setuptools'.
Got setuptools 0.6c12dev-r88846.
Generated script '/home/grisu/Projekte/privat/DDTSS-Django/bin/buildout'.
grisu@think:~/Projekte/privat/DDTSS-Django (master)$ vi bin/buildout
grisu@think:~/Projekte/privat/DDTSS-Django (master)$ bin/buildout
Develop: '/home/grisu/Projekte/privat/DDTSS-Django/.'
Getting distribution for 'djangorecipe'.
Got djangorecipe 0.99.
Getting distribution for 'django'.
zip_safe flag not set; analyzing archive contents...
django.core.management.__init__: module references __file__
django.core.management.__init__: module references __path__
django.core.management.sql: module references __file__
django.core.management.base: module references __path__
django.core.management.commands.makemessages: module references __file__
django.core.management.commands.loaddata: module references __file__
django.core.management.commands.loaddata: module references __path__
django.core.servers.basehttp: module references __path__
django.contrib.flatpages.tests.views: module references __file__
django.contrib.flatpages.tests.templatetags: module references __file__
django.contrib.flatpages.tests.middleware: module references __file__
django.contrib.flatpages.tests.csrf: module references __file__
django.contrib.admindocs.views: module references __file__
django.contrib.staticfiles.storage: module references __file__
django.contrib.gis.geometry.test_data: module references __file__
django.contrib.gis.tests.geogapp.tests: module references __file__
django.contrib.gis.tests.layermap.tests: module references __file__
django.contrib.gis.tests.geo3d.tests: module references __file__
django.contrib.sitemaps.tests.basic: module references __file__
django.contrib.auth.tests.views: module references __file__
django.contrib.formtools.tests.__init__: module references __file__
django.utils.module_loading: module references __path__
django.utils.version: module references __path__
django.utils.autoreload: module references __file__
django.utils.translation.__init__: module references __file__
django.utils.translation.trans_real: module references __file__
django.utils.unittest.loader: module references __file__
django.utils.unittest.collector: module references __file__
django.template.loaders.app_directories: module references __file__
django.conf.__init__: module references __file__
django.conf.project_template.manage: module references __file__
django.views.i18n: module references __file__
django.test._doctest: module references __file__
django.test._doctest: module MAY be using inspect.getsourcefile
django.test.simple: module references __file__
django.db.utils: module references __file__
django.db.models.loading: module references __file__
Got Django 1.3.
Getting distribution for 'zc.recipe.egg'.
Got zc.recipe.egg 1.3.2.
Installing django.
Getting distribution for 'django-debug-toolbar'.
Got django-debug-toolbar 0.8.5.
Getting distribution for 'SQLalchemy'.
warning: no files found matching '*.jpg' under directory 'doc'
no previously-included directories found matching 'doc/build/output'
lib/sqlalchemy/cextension/processors.c:9:20: error: Python.h: No such file or directory lib/sqlalchemy/cextension/processors.c:10:22: error: datetime.h: No such file or directory lib/sqlalchemy/cextension/processors.c:19: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token lib/sqlalchemy/cextension/processors.c:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token lib/sqlalchemy/cextension/processors.c:55: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token lib/sqlalchemy/cextension/processors.c:64: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token lib/sqlalchemy/cextension/processors.c:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token lib/sqlalchemy/cextension/processors.c:119: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token lib/sqlalchemy/cextension/processors.c:145: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ lib/sqlalchemy/cextension/processors.c:151: error: expected specifier-qualifier-list before ‘PyObject_HEAD’ lib/sqlalchemy/cextension/processors.c:163: error: expected declaration specifiers or ‘...’ before ‘PyObject’ lib/sqlalchemy/cextension/processors.c:164: error: expected declaration specifiers or ‘...’ before ‘PyObject’ lib/sqlalchemy/cextension/processors.c: In function ‘UnicodeResultProcessor_init’: lib/sqlalchemy/cextension/processors.c:166: error: ‘PyObject’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:166: error: (Each undeclared identifier is reported only once lib/sqlalchemy/cextension/processors.c:166: error: for each function it appears in.) lib/sqlalchemy/cextension/processors.c:166: error: ‘encoding’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:166: error: ‘errors’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:166: error: ‘NULL’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:166: warning: left-hand operand of comma expression has no effect lib/sqlalchemy/cextension/processors.c:169: warning: implicit declaration of function ‘PyArg_ParseTupleAndKeywords’ lib/sqlalchemy/cextension/processors.c:169: error: ‘args’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:169: error: ‘kwds’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:173: warning: implicit declaration of function ‘Py_INCREF’ lib/sqlalchemy/cextension/processors.c:174: error: ‘UnicodeResultProcessor’ has no member named ‘encoding’ lib/sqlalchemy/cextension/processors.c:174: warning: statement with no effect lib/sqlalchemy/cextension/processors.c:179: warning: implicit declaration of function ‘PyString_FromString’ lib/sqlalchemy/cextension/processors.c:179: warning: statement with no effect lib/sqlalchemy/cextension/processors.c:183: error: ‘UnicodeResultProcessor’ has no member named ‘errors’ lib/sqlalchemy/cextension/processors.c:183: warning: statement with no effect
lib/sqlalchemy/cextension/processors.c: At top level:
lib/sqlalchemy/cextension/processors.c:188: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token lib/sqlalchemy/cextension/processors.c: In function ‘UnicodeResultProcessor_dealloc’: lib/sqlalchemy/cextension/processors.c:210: warning: implicit declaration of function ‘Py_XDECREF’ lib/sqlalchemy/cextension/processors.c:210: error: ‘UnicodeResultProcessor’ has no member named ‘encoding’ lib/sqlalchemy/cextension/processors.c:211: error: ‘UnicodeResultProcessor’ has no member named ‘errors’ lib/sqlalchemy/cextension/processors.c:212: error: ‘UnicodeResultProcessor’ has no member named ‘ob_type’ lib/sqlalchemy/cextension/processors.c:212: error: request for member ‘tp_free’ in something not a structure or union lib/sqlalchemy/cextension/processors.c:212: error: ‘PyObject’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:212: error: expected expression before ‘)’ token lib/sqlalchemy/cextension/processors.c:212: error: invalid operands to binary * (have ‘char **’ and ‘char **’) lib/sqlalchemy/cextension/processors.c:212: error: called object ‘<erroneous-expression>’ is not a function lib/sqlalchemy/cextension/processors.c:212: warning: statement with no effect
lib/sqlalchemy/cextension/processors.c: At top level:
lib/sqlalchemy/cextension/processors.c:215: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘UnicodeResultProcessor_methods’ lib/sqlalchemy/cextension/processors.c:221: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘UnicodeResultProcessorType’ lib/sqlalchemy/cextension/processors.c:268: error: expected declaration specifiers or ‘...’ before ‘PyObject’ lib/sqlalchemy/cextension/processors.c:269: error: expected declaration specifiers or ‘...’ before ‘PyObject’ lib/sqlalchemy/cextension/processors.c: In function ‘DecimalResultProcessor_init’: lib/sqlalchemy/cextension/processors.c:271: error: ‘PyObject’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:271: error: ‘type’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:271: error: invalid operands to binary * (have ‘char **’ and ‘char **’) lib/sqlalchemy/cextension/processors.c:271: error: ‘format’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:271: warning: left-hand operand of comma expression has no effect lib/sqlalchemy/cextension/processors.c:271: warning: statement with no effect lib/sqlalchemy/cextension/processors.c:273: warning: implicit declaration of function ‘PyArg_ParseTuple’ lib/sqlalchemy/cextension/processors.c:273: error: ‘args’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:277: error: ‘DecimalResultProcessor’ has no member named ‘type’ lib/sqlalchemy/cextension/processors.c:277: warning: statement with no effect lib/sqlalchemy/cextension/processors.c:280: error: ‘DecimalResultProcessor’ has no member named ‘format’ lib/sqlalchemy/cextension/processors.c:280: warning: statement with no effect
lib/sqlalchemy/cextension/processors.c: At top level:
lib/sqlalchemy/cextension/processors.c:285: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token lib/sqlalchemy/cextension/processors.c: In function ‘DecimalResultProcessor_dealloc’: lib/sqlalchemy/cextension/processors.c:315: error: ‘DecimalResultProcessor’ has no member named ‘type’ lib/sqlalchemy/cextension/processors.c:316: error: ‘DecimalResultProcessor’ has no member named ‘format’ lib/sqlalchemy/cextension/processors.c:317: error: ‘DecimalResultProcessor’ has no member named ‘ob_type’ lib/sqlalchemy/cextension/processors.c:317: error: request for member ‘tp_free’ in something not a structure or union lib/sqlalchemy/cextension/processors.c:317: error: ‘PyObject’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:317: error: expected expression before ‘)’ token lib/sqlalchemy/cextension/processors.c:317: error: invalid operands to binary * (have ‘char **’ and ‘char **’) lib/sqlalchemy/cextension/processors.c:317: error: called object ‘<erroneous-expression>’ is not a function lib/sqlalchemy/cextension/processors.c:317: warning: statement with no effect
lib/sqlalchemy/cextension/processors.c: At top level:
lib/sqlalchemy/cextension/processors.c:320: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘DecimalResultProcessor_methods’ lib/sqlalchemy/cextension/processors.c:326: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘DecimalResultProcessorType’ lib/sqlalchemy/cextension/processors.c:373: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘module_methods’
lib/sqlalchemy/cextension/processors.c: In function ‘initcprocessors’:
lib/sqlalchemy/cextension/processors.c:392: error: ‘PyObject’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:392: error: ‘m’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:392: error: invalid operands to binary * (have ‘char **’ and ‘char **’) lib/sqlalchemy/cextension/processors.c:392: warning: statement with no effect lib/sqlalchemy/cextension/processors.c:394: error: ‘UnicodeResultProcessorType’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:394: error: request for member ‘tp_new’ in something not a structure or union lib/sqlalchemy/cextension/processors.c:394: error: ‘PyType_GenericNew’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:394: warning: statement with no effect lib/sqlalchemy/cextension/processors.c:395: warning: implicit declaration of function ‘PyType_Ready’ lib/sqlalchemy/cextension/processors.c:398: error: ‘DecimalResultProcessorType’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:398: error: request for member ‘tp_new’ in something not a structure or union lib/sqlalchemy/cextension/processors.c:398: warning: statement with no effect lib/sqlalchemy/cextension/processors.c:402: warning: implicit declaration of function ‘Py_InitModule3’ lib/sqlalchemy/cextension/processors.c:402: error: ‘module_methods’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:403: warning: statement with no effect lib/sqlalchemy/cextension/processors.c:404: error: ‘NULL’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:407: error: ‘PyDateTime_IMPORT’ undeclared (first use in this function) lib/sqlalchemy/cextension/processors.c:407: warning: statement with no effect lib/sqlalchemy/cextension/processors.c:410: warning: implicit declaration of function ‘PyModule_AddObject’ lib/sqlalchemy/cextension/processors.c:411: error: expected expression before ‘)’ token lib/sqlalchemy/cextension/processors.c:411: error: invalid operands to binary * (have ‘char **’ and ‘char **’) lib/sqlalchemy/cextension/processors.c:415: error: expected expression before ‘)’ token lib/sqlalchemy/cextension/processors.c:415: error: invalid operands to binary * (have ‘char **’ and ‘char **’)
***************************************************************************
command 'gcc' failed with exit status 1
WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
Retrying the build without the C extension now.
***************************************************************************
warning: no files found matching '*.jpg' under directory 'doc'
no previously-included directories found matching 'doc/build/output'
zip_safe flag not set; analyzing archive contents...
sqlalchemy.dialects.mysql.base: module MAY be using inspect.stack
***************************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python build succeeded.
***************************************************************************
Got SQLAlchemy 0.7.1.
Getting distribution for 'psycopg2'.
Error: pg_config executable not found.

Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:

    python setup.py build_ext --pg-config /path/to/pg_config build ...

or with the pg_config option in 'setup.cfg'.
error: Setup script exited with 1
An error occurred when trying to install psycopg2 2.4.2. Look above this message for any errors that were output by easy_install.
While:
  Installing django.
  Getting distribution for 'psycopg2'.
Error: Couldn't install: psycopg2 2.4.2
grisu@think:~/Projekte/privat/DDTSS-Django (master)$


But why compile you this stuff?

Django and SQLalchemy are in debian, or not?

grisu@think:~/Projekte/privat/DDTSS-Django (master)$ apt-cache policy python-django
python-django:
  Installed: (none)
  Candidate: 1.2.3-3+squeeze1
  Version table:
     1.2.3-3+squeeze1 0
        500 http://ftp.de.debian.org/debian/ squeeze/main amd64 Packages
        500 http://security.debian.org/ squeeze/updates/main amd64 Packages
     1.0.2-1+lenny2 0
        500 http://ftp.de.debian.org/debian/ lenny/main amd64 Packages
grisu@think:~/Projekte/privat/DDTSS-Django (master)$ apt-cache policy python-sqlalchemy
python-sqlalchemy:
  Installed: (none)
  Candidate: 0.6.3-3
  Version table:
     0.6.3-3 0
        500 http://ftp.de.debian.org/debian/ squeeze/main amd64 Packages
     0.4.7p1-2 0
        500 http://ftp.de.debian.org/debian/ lenny/main amd64 Packages

Can't we use this?

Thanks for your work...

Gruss
Grisu


Reply to: