2.0.5 not instalable on etch

Bug #185028 reported by ldng
2
Affects Status Importance Assigned to Milestone
Falcon
Confirmed
Medium
Unassigned

Bug Description

Can't install falcon 2.0.5 from source on Debian Etch

# cd falcon-2.0.5/
# python setup.py install
Traceback (most recent call last):
  File "setup.py", line 20, in ?
    eval("import %s" % i)
  File "<string>", line 1
    import chardet
         ^
SyntaxError: invalid syntax

# python
Python 2.4.4 (#2, Apr 5 2007, 20:11:18)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> i = 'chardet'
>>> eval("import %s" % i)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "<string>", line 1
    import chardet
         ^
SyntaxError: invalid syntax

Revision history for this message
ldng (ldng) wrote :

Of course Chardet is installed :

# python
Python 2.4.4 (#2, Apr 5 2007, 20:11:18)
[GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import chardet
>>>

Revision history for this message
ldng (ldng) wrote :

In setup.py the following line :

eval("import %s" % i)

should be changed to :

__import__(i)

Did you actually test that code ? I don't think so as import not working
with eval seems to be a common pitfall.

Revision history for this message
ldng (ldng) wrote :

imports = ['chardet', 'django', 'apt', 'sqlite3', 'newt']

Should be

imports = ['chardet', 'django', 'apt', 'pysqlite2', 'snack']

Revision history for this message
ldng (ldng) wrote :

5# falcon -V

 === ERROR! ===

An error occured in falcon. This is probably a bug in the software.
Please file a bug at https://launchpad.net/falcon/+filebug and
include the following backtrace:

Traceback (most recent call last):
  File "/usr/bin/falcon", line 14, in ?
    import falcon
  File "/usr/lib/python2.4/site-packages/falcon/__init__.py", line 45, in ?
    import falcon.config
  File "/usr/lib/python2.4/site-packages/falcon/config.py", line 53, in ?
    from django.db import models
  File "/usr/lib/python2.4/site-packages/django/db/__init__.py", line 3, in ?
    from django.dispatch import dispatcher
  File "/usr/lib/python2.4/site-packages/django/dispatch/dispatcher.py", line 345
    """Send signal from sender to all connected receivers.

    signal -- (hashable) signal value, see connect for details

    sender -- the sender of the signal

        if Any, only receivers registered for Any will receive
        the message.

        if Anonymous, only receivers registered to receive
        messages from Anonymous or Any will receive the message

        Otherwise can be any python object (normally one
        registered with a connect if you actually want
        something to occur).

    arguments -- positional arguments which will be passed to
        *all* receivers. Note that this may raise TypeErrors
        if the receivers do not allow the particular arguments.
        Note also that arguments are applied before named
        arguments, so they should be used with care.

    named -- named arguments which will be filtered according
        to the parameters of the receivers to only provide those
        acceptable to the receiver.

 ^
SyntaxError: EOF while scanning triple-quoted string

Revision history for this message
ldng (ldng) wrote :

Possibly due to my Django version.

# django-admin.py --version
0.97-pre

SVN revision 5947 to be acurate.

Revision history for this message
ldng (ldng) wrote :

My django install was boked, once fixed 'falcon -V' work fine

Revision history for this message
ldng (ldng) wrote :
Revision history for this message
Dennis Kaarsemaker (dennis) wrote :

I actually haven't tested that bit of the code recently, since I usually run 'make deb' from the sourcetree :) Thanks for reporting, this will be fixed in the next release.

Changed in falcon:
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.