Error on simplejason on debian testing x86_64
Downloading
http://www.turbogears.org/2.0/downloads/1.9.7a1/simplejson-1.9.1.tar.gz
Processing simplejson-1.9.1.tar.gz
Running simplejson-1.9.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-t_8uEg/simplejson-1.9.1/egg-dist-tmp-DXocd1
simplejson/_speedups.c:1:20: error: Python.h: No such file or directory
simplejson/_speedups.c:17: error: expected ')' before 'c'
simplejson/_speedups.c:18: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
simplejson/_speedups.c:20: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
simplejson/_speedups.c:22: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
simplejson/_speedups.c:36: error: expected ')' before 'c'
simplejson/_speedups.c:80: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
simplejson/_speedups.c:130: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
simplejson/_speedups.c:193: error: expected declaration specifiers or
'...' before 'PyObject'
simplejson/_speedups.c: In function 'raise_errmsg':
simplejson/_speedups.c:195: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
simplejson/_speedups.c:195: error: 'errmsg_fn' undeclared (first use
in this function)
simplejson/_speedups.c:195: error: (Each undeclared identifier is
reported only once
simplejson/_speedups.c:195: error: for each function it appears in.)
simplejson/_speedups.c:195: error: 'NULL' undeclared (first use in
this function)
simplejson/_speedups.c:196: error: 'PyObject' undeclared (first use in
this function)
simplejson/_speedups.c:196: error: 'pymsg' undeclared (first use in
this function)
simplejson/_speedups.c:198: error: 'decoder' undeclared (first use in
this function)
simplejson/_speedups.c:198: warning: implicit declaration of function
'PyImport_ImportModule'
simplejson/_speedups.c:200: warning: implicit declaration of function
'PyObject_GetAttrString'
simplejson/_speedups.c:202: warning: implicit declaration of function
'Py_XDECREF'
simplejson/_speedups.c:205: warning: implicit declaration of function
'PyObject_CallFunction'
simplejson/_speedups.c:205: error: 's' undeclared (first use in this function)
simplejson/_speedups.c:209: warning: implicit declaration of function
'PyErr_SetObject'
simplejson/_speedups.c:209: error: 'PyExc_ValueError' undeclared
(first use in this function)
simplejson/_speedups.c: At top level:
simplejson/_speedups.c:232: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
simplejson/_speedups.c:250: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
simplejson/_speedups.c:415: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
simplejson/_speedups.c:575: error: expected ')' before string constant
simplejson/_speedups.c:580: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
simplejson/_speedups.c:608: error: expected ')' before string constant
simplejson/_speedups.c:613: error: expected '=', ',', ';', 'asm' or
'__attribute__' before '*' token
simplejson/_speedups.c:627: error: expected '=', ',', ';', 'asm' or
'__attribute__' before 'speedups_methods'
simplejson/_speedups.c: In function 'init_speedups':
simplejson/_speedups.c:642: error: 'PyObject' undeclared (first use in
this function)
simplejson/_speedups.c:642: error: 'm' undeclared (first use in this function)
simplejson/_speedups.c:643: warning: implicit declaration of function
'Py_InitModule4'
simplejson/_speedups.c:643: error: 'speedups_methods' undeclared
(first use in this function)
simplejson/_speedups.c:643: error: 'NULL' undeclared (first use in
this function)
simplejson/_speedups.c:643: error: 'PYTHON_API_VERSION' undeclared
(first use in this function)
**********************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Below is the output showing how the compilation failed:
command 'gcc' failed with exit status 1
**********************************************************************
error: Setup script exited with error: can't copy
'simplejson.egg-info/native_libs.txt': doesn't exist or not a regular
file
Error on formencode after installing python-dev:
aptitude install python-dev
home/lucas/tmp/tg1.9.7test/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.py",
line 1749, in declare_namespace
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.5/site-packages/setuptools-0.6c8-py2.5.egg/pkg_resources.py",
line 1720, in _handle_ns
File "/usr/lib/python2.5/pkgutil.py", line 238, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.5/site-packages/TurboGears2-1.9.7a2-py2.5.egg/tg/__init__.py",
line 53, in <module>
from tg.controllers import TGController, redirect, url
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.5/site-packages/TurboGears2-1.9.7a2-py2.5.egg/tg/controllers.py",
line 19, in <module>
import formencode
ImportError: No module named formencode
Solution:
rm -r tg1.9.7test/
install everything again.
Sucess: Finished processing dependencies for tg.devtools
**********************************************************************************
Error on debian stable x86, python2.4
Installed
/home/lucas/tmp/tg1.9.7test/lib/python2.4/site-packages/Pylons-0.9.7beta5-py2.4.egg
Reading http://www.pylonshq.com/download/0.9.7
Searching for simplejson>=1.9.1
Reading http://www.turbogears.org/2.0/downloads/1.9.7a1/index/simplejson/
Best match: simplejson 1.9.1
Downloading
http://www.turbogears.org/2.0/downloads/1.9.7a1/simplejson-1.9.1.tar.gz
Processing simplejson-1.9.1.tar.gz
Running simplejson-1.9.1/setup.py -q bdist_egg --dist-dir
/tmp/easy_install-U0egML/simplejson-1.9.1/egg-dist-tmp-5k9OLa
unable to execute gcc: No such file or directory
**********************************************************************
WARNING: The C extension could not be compiled, speedups are not enabled.
Below is the output showing how the compilation failed:
command 'gcc' failed with exit status 1
**********************************************************************
error: Setup script exited with error: can't copy
'simplejson.egg-info/native_libs.txt': doesn't exist or not a regular
file
part 2
*******re running the installation after installing gcc and
python-dev*************
aptitude install gcc python-dev
(tg1.9.7test)[EMAIL PROTECTED]:~/tmp/tg1.9.7test$ easy_install -i
http://www.turbogears.org/2.0/downloads/1.9.7a1/index tg.devtools
Traceback (most recent call last):
File "/home/lucas/tmp/tg1.9.7test/bin/easy_install", line 5, in ?
from pkg_resources import load_entry_point
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py",
line 2581, in ?
add_activation_listener(lambda dist: dist.activate())
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py",
line 640, in subscribe
callback(dist)
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py",
line 2581, in <lambda>
add_activation_listener(lambda dist: dist.activate())
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py",
line 2130, in activate
map(declare_namespace, self._get_metadata('namespace_packages.txt'))
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py",
line 1734, in declare_namespace
declare_namespace(parent)
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py",
line 1749, in declare_namespace
_handle_ns(packageName, path_item)
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py",
line 1720, in _handle_ns
loader.load_module(packageName); module.__path__ = path
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/pkg_resources.py",
line 1549, in load_module
mod = imp.load_module(fullname, self.file, self.filename, self.etc)
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.4/site-packages/TurboGears2-1.9.7a2-py2.4.egg/tg/__init__.py",
line 53, in ?
from tg.controllers import TGController, redirect, url
File
"/home/lucas/tmp/tg1.9.7test/lib/python2.4/site-packages/TurboGears2-1.9.7a2-py2.4.egg/tg/controllers.py",
line 19, in ?
import formencode
ImportError: No module named formencode
part 3
Deleted the virtual environment and started from scratch:
Success: "Finished processing dependencies for tg.devtools"
easy_install should restart the download process I would assume. I
shouldn't delete the virtualenv.
Let me know, if I can help somehow.
Can the background under "welcome to turbogears" be changed to what it
was in turbogears 1. tg1 blue background looks 10x more professional
and more web2.0 then the blue strips under tg2.
Thanks a lot,
Lucas
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Trunk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-trunk?hl=en
-~----------~----~----~----~------~----~------~--~---