[Pypedal-devel] Installing PyPedal on Debian + some minor issues
Brought to you by:
wintermind
From: Gregor G. <gre...@bf...> - 2007-04-12 09:54:18
|
Hi! I have taken some time to try your PyPedal package, which I find awesome! I am trying to install it on my Debian GNU/Linux box. I have some problems, but I think they might be related to system specific stuff. I will report you the whole procedure for Debian as it is very handy with its "apt" approach. I also did read some of the files in PyPedal folder after extracting. I noticed some small inconsistencies. Nothing spectacular, but I thought I might contribute something back, given that you give us whole package for free. --------------------------------------------------------------------------------------- Statement in README.txt <stolen from FLTK README>Contrary to popular belief, it can be used in commercial software! (Even Bill Gates could use it.) </stolen from FLTK README> is not all there it is to it. If you use GPL then commercial software can use your code only if they give their source. You need to use LGPL for what FLTK readme is referring to. I notice that LGPL is actually specified in setup.py and PKG_INFO files. I guess that README.txt i.e. licence stuff and whole COPYRIGHT section needs revision. * Expand copyright range in README.txt from 2001-2005 to 2001-2007. * Use this text for COPYRIGHT section if LGPL is the right licence This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this package; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA You can also download it from http://www.gnu.org/copyleft/lgpl.html in HTML and from http://www.gnu.org/copyleft/lgpl.txt in plain text format. --------------------------------------------------------------------------------------- * Why are pyparsing and ReportLab commented out in setup.py? * setup.py is referring to COPYING file, but there is no such file. * Now I see the source of my problem with installation. It is the use of setuptools. I might be totally wrong here as this is my first excursion to Python, but I guess that setuptools is also needed and you might add this info to the manual. When I have setuptools installed as a debian package I issued # python setup.py install running install running bdist_egg running egg_info writing requirements to PyPedal.egg-info/requires.txt writing PyPedal.egg-info/PKG-INFO writing top-level names to PyPedal.egg-info/top_level.txt writing dependency_links to PyPedal.egg-info/dependency_links.txt reading manifest file 'PyPedal.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' writing manifest file 'PyPedal.egg-info/SOURCES.txt' installing library code to build/bdist.linux-i686/egg running install_lib warning: install_lib: 'build/lib' does not exist -- no Python modules to install creating build creating build/bdist.linux-i686 creating build/bdist.linux-i686/egg creating build/bdist.linux-i686/egg/EGG-INFO copying PyPedal.egg-info/PKG-INFO -> build/bdist.linux-i686/egg/EGG-INFO copying PyPedal.egg-info/SOURCES.txt -> build/bdist.linux-i686/egg/EGG-INFO copying PyPedal.egg-info/dependency_links.txt -> build/bdist.linux-i686/egg/EGG-INFO copying PyPedal.egg-info/requires.txt -> build/bdist.linux-i686/egg/EGG-INFO copying PyPedal.egg-info/top_level.txt -> build/bdist.linux-i686/egg/EGG-INFO zip_safe flag not set; analyzing archive contents... creating dist creating 'dist/PyPedal-2.0.0b21-py2.4.egg' and adding 'build/bdist.linux-i686/egg' to it removing 'build/bdist.linux-i686/egg' (and everything under it) Processing PyPedal-2.0.0b21-py2.4.egg Copying PyPedal-2.0.0b21-py2.4.egg to /usr/lib/python2.4/site-packages Adding PyPedal 2.0.0b21 to easy-install.pth file Installed /usr/lib/python2.4/site-packages/PyPedal-2.0.0b21-py2.4.egg ---------------------------------------------------------------------- Log continues, but I can see PyPedal was installed! But why does the install continue (see bellow) with other dependencies? I have installed them before PyPedal; all of them and with versions that conform with conditions given in setup.py! ---------------------------------------------------------------------- Processing dependencies for PyPedal==2.0.0b21 Searching for testoob>=0.4 Reading http://www.python.org/pypi/testoob/ Reading http://testoob.sourceforge.net Reading http://sourceforge.net/project/showfiles.php?group_id=138557 Reading http://www.python.org/pypi/testoob/1.13 Best match: testoob 1.13 Downloading http://cheeseshop.python.org/packages/2.4/t/testoob/testoob-1.13-py2.4.egg#md5=6f3dd5eb45652e45a149790af37c6118 Processing testoob-1.13-py2.4.egg creating /usr/lib/python2.4/site-packages/testoob-1.13-py2.4.egg Extracting testoob-1.13-py2.4.egg to /usr/lib/python2.4/site-packages Adding testoob 1.13 to easy-install.pth file Installing testoob script to /usr/bin Installed /usr/lib/python2.4/site-packages/testoob-1.13-py2.4.egg Searching for pysqlite>=2.0.6 Reading http://www.python.org/pypi/pysqlite/ Reading http://pysqlite.org/ Reading http://www.python.org/pypi/pysqlite/2.3.3 Best match: pysqlite 2.3.3 Downloading http://initd.org/pub/software/pysqlite/releases/2.3/2.3.3/pysqlite-2.3.3.tar.gz Processing pysqlite-2.3.3.tar.gz Running pysqlite-2.3.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-3xpM20/pysqlite-2.3.3/egg-dist-tmp-nZUUnL warning: no files found matching 'doc/*.html' In file included from src/module.c:24: src/connection.h:33:21: error: sqlite3.h: No such file or directory In file included from src/module.c:24: src/connection.h:38: error: expected specifier-qualifier-list before ‘sqlite3’ In file included from src/module.c:25: src/statement.h:37: error: expected specifier-qualifier-list before ‘sqlite3’ src/module.c: In function ‘module_complete’: src/module.c:91: warning: implicit declaration of function ‘sqlite3_complete’ src/module.c: At top level: src/module.c:214: error: ‘SQLITE_OK’ undeclared here (not in a function) src/module.c:215: error: ‘SQLITE_DENY’ undeclared here (not in a function) src/module.c:216: error: ‘SQLITE_IGNORE’ undeclared here (not in a function) src/module.c:217: error: ‘SQLITE_CREATE_INDEX’ undeclared here (not in a function) src/module.c:218: error: ‘SQLITE_CREATE_TABLE’ undeclared here (not in a function) src/module.c:219: error: ‘SQLITE_CREATE_TEMP_INDEX’ undeclared here (not in a function) src/module.c:220: error: ‘SQLITE_CREATE_TEMP_TABLE’ undeclared here (not in a function) src/module.c:221: error: ‘SQLITE_CREATE_TEMP_TRIGGER’ undeclared here (not in a function) src/module.c:222: error: ‘SQLITE_CREATE_TEMP_VIEW’ undeclared here (not in a function) src/module.c:223: error: ‘SQLITE_CREATE_TRIGGER’ undeclared here (not in a function) src/module.c:224: error: ‘SQLITE_CREATE_VIEW’ undeclared here (not in a function) src/module.c:225: error: ‘SQLITE_DELETE’ undeclared here (not in a function) src/module.c:226: error: ‘SQLITE_DROP_INDEX’ undeclared here (not in a function) src/module.c:227: error: ‘SQLITE_DROP_TABLE’ undeclared here (not in a function) src/module.c:228: error: ‘SQLITE_DROP_TEMP_INDEX’ undeclared here (not in a function) src/module.c:229: error: ‘SQLITE_DROP_TEMP_TABLE’ undeclared here (not in a function) src/module.c:230: error: ‘SQLITE_DROP_TEMP_TRIGGER’ undeclared here (not in a function) src/module.c:231: error: ‘SQLITE_DROP_TEMP_VIEW’ undeclared here (not in a function) src/module.c:232: error: ‘SQLITE_DROP_TRIGGER’ undeclared here (not in a function) src/module.c:233: error: ‘SQLITE_DROP_VIEW’ undeclared here (not in a function) src/module.c:234: error: ‘SQLITE_INSERT’ undeclared here (not in a function) src/module.c:235: error: ‘SQLITE_PRAGMA’ undeclared here (not in a function) src/module.c:236: error: ‘SQLITE_READ’ undeclared here (not in a function) src/module.c:237: error: ‘SQLITE_SELECT’ undeclared here (not in a function) src/module.c:238: error: ‘SQLITE_TRANSACTION’ undeclared here (not in a function) src/module.c:239: error: ‘SQLITE_UPDATE’ undeclared here (not in a function) src/module.c:240: error: ‘SQLITE_ATTACH’ undeclared here (not in a function) src/module.c:241: error: ‘SQLITE_DETACH’ undeclared here (not in a function) src/module.c: In function ‘init_sqlite’: src/module.c:368: warning: implicit declaration of function ‘sqlite3_libversion’ src/module.c:368: warning: passing argument 1 of ‘PyString_FromString’ makes pointer from integer without a cast error: Setup script exited with error: command 'gcc' failed with exit status 1 -- Lep pozdrav / With regards, Gregor Gorjanc ---------------------------------------------------------------------- University of Ljubljana PhD student Biotechnical Faculty www: http://www.bfro.uni-lj.si/MR/ggorjan Zootechnical Department blog: http://ggorjan.blogspot.com Groblje 3 mail: gregor.gorjanc <at> bfro.uni-lj.si SI-1230 Domzale fax: +386 (0)1 72 17 888 Slovenia, Europe tel: +386 (0)1 72 17 861 ---------------------------------------------------------------------- |