Thread: [SQLObject] Installation trouble...
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Frank B. <fb...@fo...> - 2003-04-10 13:17:08
|
Hallo, I'm having problems installing SQLObject on a webserver running SusE-Linux system. I normally use Debian, so I don't know what exactly seems to go wrong here. Using SO-0.3.0 the error I get is this: # python2.2 setup.py install running install Traceback (most recent call last): File "setup.py", line 32, in ? download_url="http://prdownloads.sourceforge.net/sqlobject/SQLObject-0.3.tar.gz?download") File "/usr/lib/python2.2/distutils/core.py", line 138, in setup dist.run_commands() File "/usr/lib/python2.2/distutils/dist.py", line 893, in run_commands self.run_command(cmd) File "/usr/lib/python2.2/distutils/dist.py", line 912, in run_command cmd_obj.ensure_finalized() File "/usr/lib/python2.2/distutils/cmd.py", line 112, in ensure_finalized self.finalize_options() File "/usr/lib/python2.2/distutils/command/install.py", line 268, in finalize_options (prefix, exec_prefix) = get_config_vars('prefix', 'exec_prefix') File "/usr/lib/python2.2/distutils/sysconfig.py", line 408, in get_config_vars func() File "/usr/lib/python2.2/distutils/sysconfig.py", line 313, in _init_posix raise DistutilsPlatformError(my_msg) distutils.errors.DistutilsPlatformError: invalid Python installation: unable to open /usr/lib/python2.2/config/Makefile (No such file or directory) python package is python-2.2-166 with this version: Python 2.2 (#1, May 14 2002, 18:23:13) [GCC 2.95.3 20010315 (SuSE)] on linux2 Do I miss to install a package? ciao -- Frank Barknecht _ ______footils.org__ |
From: Bud P. B. <bu...@si...> - 2003-04-10 14:38:51
|
Not sure whether this is the problem, but if setup.py attempts to download the URL given below, it will come to a "dispatch" page where you have to chose a mirror, not to the actual software. The URL for the SWITCH mirror in Zurich (this should be close to you?) is http://prdownloads.sourceforge.net/sqlobject/SQLObject-0.3.tar.gz?use_mirror=switch that replaces "?download" in the URL listed below with "?use_mirror=switch"... Not sure where to change this, but likely you can edit setup.py...??? hope this works --b On Thu, 10 Apr 2003 15:16:05 +0200 Frank Barknecht <fb...@fo...> wrote: > Hallo, > > I'm having problems installing SQLObject on a webserver running > SusE-Linux system. I normally use Debian, so I don't know what exactly > seems to go wrong here. > > Using SO-0.3.0 the error I get is this: > > # python2.2 setup.py install > running install > Traceback (most recent call last): > File "setup.py", line 32, in ? > download_url="http://prdownloads.sourceforge.net/sqlobject/SQLObject-0.3. > tar.gz?download") > File "/usr/lib/python2.2/distutils/core.py", line 138, in setup > dist.run_commands() > File "/usr/lib/python2.2/distutils/dist.py", line 893, in > run_commands > self.run_command(cmd) > File "/usr/lib/python2.2/distutils/dist.py", line 912, in > run_command > cmd_obj.ensure_finalized() > File "/usr/lib/python2.2/distutils/cmd.py", line 112, in > ensure_finalized > self.finalize_options() > File "/usr/lib/python2.2/distutils/command/install.py", line 268, in > finalize_options > (prefix, exec_prefix) = get_config_vars('prefix', 'exec_prefix') > File "/usr/lib/python2.2/distutils/sysconfig.py", line 408, in > get_config_vars > func() > File "/usr/lib/python2.2/distutils/sysconfig.py", line 313, in > _init_posix > raise DistutilsPlatformError(my_msg) > distutils.errors.DistutilsPlatformError: invalid Python installation: > unable to open /usr/lib/python2.2/config/Makefile (No such file or > directory) > > python package is python-2.2-166 with this version: > > Python 2.2 (#1, May 14 2002, 18:23:13) > [GCC 2.95.3 20010315 (SuSE)] on linux2 > > Do I miss to install a package? > > ciao > -- > Frank Barknecht _ ______footils.org__ > > > ------------------------------------------------------- > This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger > for complex code. Debugging C/C++ programs can leave you feeling lost and > disoriented. TotalView can help you find your way. Available on major UNIX > and Linux platforms. Try it free. www.etnus.com > _______________________________________________ > sqlobject-discuss mailing list > sql...@li... > https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss > /----------------------------------------------------------------- | Bud P. Bruegger, Ph.D. | Sistema (www.sistema.it) | Via U. Bassi, 54 | 58100 Grosseto, Italy | +39-0564-411682 (voice and fax) \----------------------------------------------------------------- |
From: Frank B. <fb...@fo...> - 2003-04-10 15:02:32
|
Hallo, Frank Barknecht hat gesagt: // Frank Barknecht wrote: > I'm having problems installing SQLObject on a webserver running > SusE-Linux system. I normally use Debian, so I don't know what exactly > seems to go wrong here. I still don't know, what's wrong with the install script, but after I installed SQLObject by hand, I now have a more serious problem. Runnings the test script, I posted here earlier (see post regarding _defaultOrder), I get this error: $ python fragen.py Traceback (most recent call last): File "fragen.py", line 15, in ? class Answer(SQLObject): File "/usr/lib/python2.2/site-packages/SQLObject/SQLObject.py", line 124, in __new__ mod = sys.modules[dict['__module__']] KeyError: __module__ What does that mean and how to fix? Python is 2.2-final. ciao -- Frank Barknecht _ ______footils.org__ |
From: Ian B. <ia...@co...> - 2003-04-10 17:56:53
|
On Thu, 2003-04-10 at 10:01, Frank Barknecht wrote: > $ python fragen.py > Traceback (most recent call last): > File "fragen.py", line 15, in ? > class Answer(SQLObject): > File "/usr/lib/python2.2/site-packages/SQLObject/SQLObject.py", line 124, in __new__ > mod = sys.modules[dict['__module__']] > KeyError: __module__ > > What does that mean and how to fix? Python is 2.2-final. That's weird. It's like it isn't doing the metaclass thing right. As long as you don't use __connection__ that line shouldn't be executed, for a quick fix (or test)... I wonder if 2.2 has problems (I've been doing my testing on 2.2.2). Ian |
From: Frank B. <fb...@fo...> - 2003-04-10 18:45:51
|
Hallo, Ian Bicking hat gesagt: // Ian Bicking wrote: > That's weird. It's like it isn't doing the metaclass thing right. As > long as you don't use __connection__ that line shouldn't be executed, > for a quick fix (or test)... I wonder if 2.2 has problems (I've been > doing my testing on 2.2.2). I do, too, but this webserver currently has only 2.2.0 installed. I'll see, if we can update this without breaking other things. I'm the only one using python there, the webmaster is a perl guy... Changing connection to a class variable (_connection = ...) leads me past this error, but another one comes along: $ python fragen.py [...] Me OR You OR freeForm OR You OR freeForm -- Ah, no, I guess, "Me" is not a good answer... Traceback (most recent call last): File "fragen.py", line 92, in ? a1.destroy() File "/usr/lib/python2.2/site-packages/SQLObject/SQLObject.py", line 831, in destroy self._connection.cache.purge(self.id) AttributeError: 'CacheSet' object has no attribute 'purge' So, I cannot destroy. :( I guess, the requirements of SQLObject should be raised up 2 minor numbers... ciao -- Frank Barknecht _ ______footils.org__ |
From: Ian B. <ia...@co...> - 2003-04-10 20:58:42
|
On Thu, 2003-04-10 at 13:44, Frank Barknecht wrote: > Hallo, > > Ian Bicking hat gesagt: // Ian Bicking wrote: > > That's weird. It's like it isn't doing the metaclass thing right. As > > long as you don't use __connection__ that line shouldn't be executed, > > for a quick fix (or test)... I wonder if 2.2 has problems (I've been > > doing my testing on 2.2.2). > > I do, too, but this webserver currently has only 2.2.0 installed. > I'll see, if we can update this without breaking other things. I'm the > only one using python there, the webmaster is a perl guy... > > Changing connection to a class variable (_connection = ...) leads me > past this error, but another one comes along: That's a bug bug, not a version bug. It's fixed in CVS. Ian |
From: Frank B. <fb...@fo...> - 2003-04-10 21:35:39
|
Hallo, Ian Bicking hat gesagt: // Ian Bicking wrote: > On Thu, 2003-04-10 at 13:44, Frank Barknecht wrote: > > I do, too, but this webserver currently has only 2.2.0 installed. > > I'll see, if we can update this without breaking other things. I'm the > > only one using python there, the webmaster is a perl guy... > > > > Changing connection to a class variable (_connection = ...) leads me > > past this error, but another one comes along: > > That's a bug bug, not a version bug. It's fixed in CVS. I remember now another failure with my 2.2.0 installation: I had to add "True,False=..." to Cache.py and DBConnection.py, because otherwise the bools aren't defined. ciao -- Frank Barknecht _ ______footils.org__ |
From: Frank B. <fb...@fo...> - 2003-04-11 08:31:17
|
Hallo, Ian Bicking hat gesagt: // Ian Bicking wrote: > That's a bug bug, not a version bug. It's fixed in CVS. Thanks a lot Ian, now with current CVS everything (that I use) seems to be working fine on python 2.2.0 except the installation. This might be a broken Suse-rpm, but "cp -r build/lib/SQLObject /usr/lib/python2.2/site-packages" was all that's needed. I'm really impressed with the ease of use that SQLObject gives. It saves a h*ll of a lot of typing and JustWorks(tm) for my project. This is a survey application with Webware, where website users get asked how they like the website. So far only the "add questions and answers" editing interface is done, but it just took me a couple of hours to hack this together thanks to SQLObject. I'm sure, the real survey will be done just as fast. In this project, performance will be not that important, because we only have a handful of data, but I wonder how good the performance with really big databaseses would be? Doesn't SO issue rather plenty of selects so that performance might drop if lots of data is involved? Also what would be a preferred way of pooling database connections for SO in Webware? Does Webware's datapool make sense in the context of SQLObject? I fear, that every SQLObject I use creates and drops its own database connection, which would be bad for performance. ciao -- Frank Barknecht _ ______footils.org__ |