Ticket #278 (closed enhancement: fixed)

Opened 10 months ago

Last modified 10 months ago

Logger plugin does not show up in list unless python-pysqlite2 is installed

Reported by: anonymous Owned by: marianoguerra
Priority: minor Milestone: 1.0
Component: plugins Version: 1.0pre-svn
Keywords: logger python-pysqlite2 Cc: pochu@…, luismarianoguerra@…

Description

I have the Logger.py plugin installed. However, it does not show up in the list of plugins unless I install the python-pysqlite2 package. After installing the package the plugin is in the list. It should be in the list to begin with and notify me that I need the python-pysqlite2 package when I try to enable it.

Attachments

logger-checkfix.patch (0.8 kB) - added by dx 10 months ago.
this fixes the "plugin is not in the list" problem. sqlite3 not implemented

Change History

Changed 10 months ago by pochu

  • cc pochu@… added
  • priority changed from normal to minor
  • version set to 1.0pre-svn
  • type changed from defect to enhancement

Changed 10 months ago by C10uD

so, does this mean that this

try:
    from pysqlite2 import dbapi2 as sqlite
except ImportError:
    try:
        import sqlite #Python 2.5 comes embedded with sqlite
    except ImportError:
        sqlite = None
        

is not working?

Changed 10 months ago by pochu

import sqlite #Python 2.5 comes embedded with sqlite

That's wrong. Python 2.5 doesn't include sqlite:

emilio@pochu:~$ python Python 2.5.2a0 (r251:54863, Jan 3 2008, 17:52:29) [GCC 4.2.3 20071223 (prerelease) (Ubuntu 4.2.2-4ubuntu3)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import sqlite

Traceback (most recent call last):

File "<stdin>", line 1, in <module>

ImportError?: No module named sqlite

In includes 'sqlite3' though.

Changed 10 months ago by C10uD

i tried

Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32) 
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite
>>> import sqlite3

so i guess sqlite has been removed in most recent updates :P

Changed 10 months ago by C10uD

erm wait i have all the other modules (pysqlite etc.) so don't rely on me :P

the fact is: that checks must be updated! :D

Changed 10 months ago by pochu

  • cc luismarianoguerra@… added
  • owner changed from somebody to marianoguerra

Assigning to mariano

Changed 10 months ago by dx

this fixes the "plugin is not in the list" problem. sqlite3 not implemented

Changed 10 months ago by marianoguerra

fixed on my copy, will upload later

Changed 10 months ago by dx

  • status changed from new to closed
  • resolution set to fixed

you can close tickets too, wariano..

Add/Change #278 (Logger plugin does not show up in list unless python-pysqlite2 is installed)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.