NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

danielvegas1's avatar
danielvegas1
Aspirant
Feb 23, 2012

Installing python-twisted fails

Hi,

I try to install the twisted-engine on my ReadyNas Duo (Sparc). It's used to let an IRC-bot communicate with the network.
The package is available for Debian as "python-twisted": http://twistedmatrix.com/trac/wiki/Downloads

However, when I issue
apt-get install python-twisted
I receive the following errors:

ReadyNas:~# apt-get install python-twisted
Reading Package Lists... Done
Building Dependency Tree... Done
You might want to run `apt-get -f install' to correct these:
The following packages have unmet dependencies:
python-twisted: Depends: python2.3-twisted but it is not going to be installed
python2.6: Depends: libdb4.8 but it is not installable
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).


I installed python 2.6.6 via "WhoCares?" add-on and that works nicely.

So to me it seems like he's trying to install a package called "libdb4.8", but can't. When I try to install it directly, I get the following error:
ReadyNas:~# apt-get install libdb4.8
Reading Package Lists... Done
Building Dependency Tree... Done
Package libdb4.8 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package libdb4.8 has no installation candidate


I googled this, but since I found nothing, I thought it might be a ReadyNas-specific problem?

Thank you guys for you help!
Daniel

4 Replies

Replies have been turned off for this discussion
  • libdb4,8 should be installed on your ReadyNAS already but it is not available from the standard 'etch' repo the ReadyNAS firmware is based on. To install python-twisted you best try to build it from the sources available in the 'lenny' repository, that's what the Python add-on is based on.

    -Stefan
  • ReadyNas:/c/home/eggy/TwistedCore-8.1.0# python setup.py install


    Things start off well and he's copying stuff: (I replaced most of the boring lines with ellipses. The error-messages are in the second part.)
    running install

    running build

    running build_py
    creating build
    creating build/lib.linux-padre-2.6
    creating build/lib.linux-padre-2.6/twisted
    creating build/lib.linux-padre-2.6/twisted/plugins
    copying twisted/plugins/__init__.py -> build/lib.linux-padre-2.6/twisted/plugins
    ...
    copying twisted/plugin.py -> build/lib.linux-padre-2.6/twisted
    creating build/lib.linux-padre-2.6/twisted/application
    copying twisted/application/__init__.py -> build/lib.linux-padre-2.6/twisted/application
    ...
    copying twisted/application/strports.py -> build/lib.linux-padre-2.6/twisted/application
    creating build/lib.linux-padre-2.6/twisted/cred
    copying twisted/cred/__init__.py -> build/lib.linux-padre-2.6/twisted/cred
    ...
    copying twisted/cred/util.py -> build/lib.linux-padre-2.6/twisted/cred
    creating build/lib.linux-padre-2.6/twisted/enterprise
    copying twisted/enterprise/__init__.py -> build/lib.linux-padre-2.6/twisted/enterprise
    ...
    copying twisted/enterprise/util.py -> build/lib.linux-padre-2.6/twisted/enterprise
    creating build/lib.linux-padre-2.6/twisted/internet
    copying twisted/internet/__init__.py -> build/lib.linux-padre-2.6/twisted/internet
    ...
    copying twisted/internet/wxsupport.py -> build/lib.linux-padre-2.6/twisted/internet
    creating build/lib.linux-padre-2.6/twisted/internet/iocpreactor
    copying twisted/internet/iocpreactor/__init__.py -> build/lib.linux-padre-2.6/twisted/internet/iocpreactor
    ...
    copying twisted/internet/iocpreactor/udp.py -> build/lib.linux-padre-2.6/twisted/internet/iocpreactor
    creating build/lib.linux-padre-2.6/twisted/internet/test
    copying twisted/internet/test/__init__.py -> build/lib.linux-padre-2.6/twisted/internet/test
    copying twisted/internet/test/test_iocp.py -> build/lib.linux-padre-2.6/twisted/internet/test
    creating build/lib.linux-padre-2.6/twisted/manhole
    copying twisted/manhole/__init__.py -> build/lib.linux-padre-2.6/twisted/manhole
    ...
    copying twisted/manhole/telnet.py -> build/lib.linux-padre-2.6/twisted/manhole
    creating build/lib.linux-padre-2.6/twisted/manhole/ui
    copying twisted/manhole/ui/__init__.py -> build/lib.linux-padre-2.6/twisted/manhole/ui
    ...
    copying twisted/manhole/ui/spelunk_gnome.py -> build/lib.linux-padre-2.6/twisted/manhole/ui
    creating build/lib.linux-padre-2.6/twisted/persisted
    copying twisted/persisted/__init__.py -> build/lib.linux-padre-2.6/twisted/persisted
    ...
    copying twisted/persisted/styles.py -> build/lib.linux-padre-2.6/twisted/persisted
    creating build/lib.linux-padre-2.6/twisted/persisted/journal
    copying twisted/persisted/journal/__init__.py -> build/lib.linux-padre-2.6/twisted/persisted/journal
    ...
    copying twisted/persisted/journal/rowjournal.py -> build/lib.linux-padre-2.6/twisted/persisted/journal
    creating build/lib.linux-padre-2.6/twisted/protocols
    copying twisted/protocols/__init__.py -> build/lib.linux-padre-2.6/twisted/protocols
    ...
    copying twisted/protocols/xmlstream.py -> build/lib.linux-padre-2.6/twisted/protocols
    creating build/lib.linux-padre-2.6/twisted/protocols/gps
    copying twisted/protocols/gps/__init__.py -> build/lib.linux-padre-2.6/twisted/protocols/gps
    copying twisted/protocols/gps/rockwell.py -> build/lib.linux-padre-2.6/twisted/protocols/gps
    creating build/lib.linux-padre-2.6/twisted/protocols/mice
    copying twisted/protocols/mice/__init__.py -> build/lib.linux-padre-2.6/twisted/protocols/mice
    copying twisted/protocols/mice/mouseman.py -> build/lib.linux-padre-2.6/twisted/protocols/mice
    creating build/lib.linux-padre-2.6/twisted/python
    copying twisted/python/__init__.py -> build/lib.linux-padre-2.6/twisted/python
    ...
    copying twisted/python/zshcomp.py -> build/lib.linux-padre-2.6/twisted/python
    creating build/lib.linux-padre-2.6/twisted/python/test
    copying twisted/python/test/__init__.py -> build/lib.linux-padre-2.6/twisted/python/test
    ...
    copying twisted/python/test/test_zipstream.py -> build/lib.linux-padre-2.6/twisted/python/test
    creating build/lib.linux-padre-2.6/twisted/scripts
    copying twisted/scripts/__init__.py -> build/lib.linux-padre-2.6/twisted/scripts
    ...
    copying twisted/scripts/twistd.py -> build/lib.linux-padre-2.6/twisted/scripts
    creating build/lib.linux-padre-2.6/twisted/scripts/test
    copying twisted/scripts/test/__init__.py -> build/lib.linux-padre-2.6/twisted/scripts/test
    copying twisted/scripts/test/test_mktap.py -> build/lib.linux-padre-2.6/twisted/scripts/test
    creating build/lib.linux-padre-2.6/twisted/spread
    copying twisted/spread/__init__.py -> build/lib.linux-padre-2.6/twisted/spread
    ...
    copying twisted/spread/util.py -> build/lib.linux-padre-2.6/twisted/spread
    creating build/lib.linux-padre-2.6/twisted/spread/ui
    copying twisted/spread/ui/__init__.py -> build/lib.linux-padre-2.6/twisted/spread/ui
    ...
    copying twisted/spread/ui/tkutil.py -> build/lib.linux-padre-2.6/twisted/spread/ui
    creating build/lib.linux-padre-2.6/twisted/tap
    copying twisted/tap/__init__.py -> build/lib.linux-padre-2.6/twisted/tap
    ...
    copying twisted/tap/telnet.py -> build/lib.linux-padre-2.6/twisted/tap
    creating build/lib.linux-padre-2.6/twisted/test
    copying twisted/test/__init__.py -> build/lib.linux-padre-2.6/twisted/test
    ...
    copying twisted/test/time_helpers.py -> build/lib.linux-padre-2.6/twisted/test
    creating build/lib.linux-padre-2.6/twisted/trial
    copying twisted/trial/__init__.py -> build/lib.linux-padre-2.6/twisted/trial
    ...
    copying twisted/trial/util.py -> build/lib.linux-padre-2.6/twisted/trial
    creating build/lib.linux-padre-2.6/twisted/trial/test
    copying twisted/trial/test/__init__.py -> build/lib.linux-padre-2.6/twisted/trial/test
    ...
    copying twisted/trial/test/weird.py -> build/lib.linux-padre-2.6/twisted/trial/test


    After the copying-part it goes downhill:
    running build_ext
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c conftest.c -o conftest.o
    building 'twisted.protocols._c_urlarg' extension
    creating build/temp.linux-padre-2.6
    creating build/temp.linux-padre-2.6/twisted
    creating build/temp.linux-padre-2.6/twisted/protocols

    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c twisted/protocols/_c_urlarg.c -o build/temp.linux-padre-2.6/twisted/protocols/_c_urlarg.o

    twisted/protocols/_c_urlarg.c:12:20: Python.h: No such file or directory
    twisted/protocols/_c_urlarg.c:13:23: cStringIO.h: No such file or directory
    twisted/protocols/_c_urlarg.c:24: error: syntax error before '*' token
    twisted/protocols/_c_urlarg.c:24: warning: type defaults to `int' in declaration of `UrlargError'
    twisted/protocols/_c_urlarg.c:24: warning: data definition has no type or storage class
    twisted/protocols/_c_urlarg.c:39: error: syntax error before '*' token
    twisted/protocols/_c_urlarg.c:39: error: syntax error before '*' token
    twisted/protocols/_c_urlarg.c:40: warning: return type defaults to `int'
    twisted/protocols/_c_urlarg.c:40: warning: function declaration isn't a prototype
    twisted/protocols/_c_urlarg.c: In function `unquote':
    twisted/protocols/_c_urlarg.c:44: error: `NULL' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:44: error: (Each undeclared identifier is reported only once
    twisted/protocols/_c_urlarg.c:44: error: for each function it appears in.)
    twisted/protocols/_c_urlarg.c:44: error: initializer element is not constant
    twisted/protocols/_c_urlarg.c:44: error: (near initialization for `kwlist[2]')
    twisted/protocols/_c_urlarg.c:46: error: `PyObject' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:46: error: `output' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:46: error: `str' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:46: warning: left-hand operand of comma expression has no effect
    twisted/protocols/_c_urlarg.c:47: warning: implicit declaration of function `PyArg_ParseTupleAndKeywords'
    twisted/protocols/_c_urlarg.c:47: error: `args' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:47: error: `kwargs' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:51: error: `PycStringIO' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:103: warning: implicit declaration of function `Py_DECREF'
    twisted/protocols/_c_urlarg.c: At top level:
    twisted/protocols/_c_urlarg.c:107: error: syntax error before "_c_urlarg_methods"
    twisted/protocols/_c_urlarg.c:107: warning: type defaults to `int' in declaration of `_c_urlarg_methods'
    twisted/protocols/_c_urlarg.c:108: warning: braces around scalar initializer
    twisted/protocols/_c_urlarg.c:108: warning: (near initialization for `_c_urlarg_methods[0]')
    twisted/protocols/_c_urlarg.c:108: warning: initialization makes integer from pointer without a cast
    twisted/protocols/_c_urlarg.c:108: error: `PyCFunction' undeclared here (not in a function)
    twisted/protocols/_c_urlarg.c:108: warning: excess elements in scalar initializer
    twisted/protocols/_c_urlarg.c:108: warning: (near initialization for `_c_urlarg_methods[0]')
    twisted/protocols/_c_urlarg.c:108: error: syntax error before "unquote"
    twisted/protocols/_c_urlarg.c:108: error: `METH_VARARGS' undeclared here (not in a function)
    twisted/protocols/_c_urlarg.c:108: error: `METH_KEYWORDS' undeclared here (not in a function)
    twisted/protocols/_c_urlarg.c:108: warning: excess elements in scalar initializer
    twisted/protocols/_c_urlarg.c:108: warning: (near initialization for `_c_urlarg_methods[0]')
    twisted/protocols/_c_urlarg.c:109: warning: braces around scalar initializer
    twisted/protocols/_c_urlarg.c:109: warning: (near initialization for `_c_urlarg_methods[1]')
    twisted/protocols/_c_urlarg.c:109: error: `NULL' undeclared here (not in a function)
    twisted/protocols/_c_urlarg.c:109: error: initializer element is not constant
    twisted/protocols/_c_urlarg.c:109: error: (near initialization for `_c_urlarg_methods[1]')
    twisted/protocols/_c_urlarg.c:109: error: `NULL' undeclared here (not in a function)
    twisted/protocols/_c_urlarg.c:109: warning: excess elements in scalar initializer
    twisted/protocols/_c_urlarg.c:109: warning: (near initialization for `_c_urlarg_methods[1]')
    twisted/protocols/_c_urlarg.c:109: error: initializer element is not constant
    twisted/protocols/_c_urlarg.c:109: error: (near initialization for `_c_urlarg_methods[1]')
    twisted/protocols/_c_urlarg.c:110: warning: data definition has no type or storage class
    twisted/protocols/_c_urlarg.c:112: error: syntax error before "init_c_urlarg"
    twisted/protocols/_c_urlarg.c:113: warning: return type defaults to `int'
    twisted/protocols/_c_urlarg.c: In function `init_c_urlarg':
    twisted/protocols/_c_urlarg.c:114: error: `PyObject' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:114: error: `m' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:115: error: `d' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:118: error: `PycString_IMPORT' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:119: warning: implicit declaration of function `Py_InitModule'
    twisted/protocols/_c_urlarg.c:120: warning: implicit declaration of function `PyModule_GetDict'
    twisted/protocols/_c_urlarg.c:123: warning: implicit declaration of function `PyErr_NewException'
    twisted/protocols/_c_urlarg.c:123: error: `PyExc_Exception' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:123: error: `NULL' undeclared (first use in this function)
    twisted/protocols/_c_urlarg.c:123: warning: assignment makes pointer from integer without a cast
    twisted/protocols/_c_urlarg.c:124: warning: implicit declaration of function `PyDict_SetItemString'
    twisted/protocols/_c_urlarg.c:141: warning: implicit declaration of function `PyErr_Occurred'
    twisted/protocols/_c_urlarg.c:142: warning: implicit declaration of function `PyErr_Print'
    twisted/protocols/_c_urlarg.c:143: warning: implicit declaration of function `Py_FatalError'

    error: command 'gcc' failed with exit status 1


    Do I have to pass some extra parameters to the setup-script? These error-messages don't tell me much unfortunately.

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More