Re: 'module' object has no attribute 'instancemethod' error

2010-08-18 Thread Wim Feijen
And I solved the problem as well, a new.pyc file was dangling
somewhere in my project root, so that was why new.SomeThing didn't
work. Oh, I'm happy now!

On 18 aug, 16:13, Wim Feijen  wrote:
> Nice app Reinout! This does really help in cleaning up!
>
> Unfortunately, it does not solve this problem. But I'll try to dig
> some deeper.
>
> On 11 aug, 13:19, Reinout van Rees  wrote:
>
>
>
> > On 08/10/2010 09:53 PM, WimFeijenwrote:
>
> > > Exception Type: ViewDoesNotExist at /
> > > Exception Value: Tried book in module book.address.views. Error was:
> > > 'module' object has no attribute 'instancemethod'
>
> > It *looks* like you're using 'instancemethod' in that views.py, but that
> > it isn't available in views.py.  Perhaps a missing import?
>
> > Tip: "easy_install pyflakes" and call "pyflakes views.py", it'll report
> > on missing (or extraneous) imports or variables.
>
> > Reinout
>
> > --
> > Reinout van Rees - rein...@vanrees.org -http://reinout.vanrees.org
> > Programmer athttp://www.nelen-schuurmans.nl
> > "Military engineers build missiles. Civil engineers build targets"

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: 'module' object has no attribute 'instancemethod' error

2010-08-18 Thread Wim Feijen
Nice app Reinout! This does really help in cleaning up!

Unfortunately, it does not solve this problem. But I'll try to dig
some deeper.

On 11 aug, 13:19, Reinout van Rees  wrote:
> On 08/10/2010 09:53 PM, WimFeijenwrote:
>
> > Exception Type: ViewDoesNotExist at /
> > Exception Value: Tried book in module book.address.views. Error was:
> > 'module' object has no attribute 'instancemethod'
>
> It *looks* like you're using 'instancemethod' in that views.py, but that
> it isn't available in views.py.  Perhaps a missing import?
>
> Tip: "easy_install pyflakes" and call "pyflakes views.py", it'll report
> on missing (or extraneous) imports or variables.
>
> Reinout
>
> --
> Reinout van Rees - rein...@vanrees.org -http://reinout.vanrees.org
> Programmer athttp://www.nelen-schuurmans.nl
> "Military engineers build missiles. Civil engineers build targets"

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



Re: 'module' object has no attribute 'instancemethod' error

2010-08-11 Thread Reinout van Rees

On 08/10/2010 09:53 PM, Wim Feijen wrote:

Exception Type: ViewDoesNotExist at /
Exception Value: Tried book in module book.address.views. Error was:
'module' object has no attribute 'instancemethod'


It *looks* like you're using 'instancemethod' in that views.py, but that 
it isn't available in views.py.  Perhaps a missing import?



Tip: "easy_install pyflakes" and call "pyflakes views.py", it'll report 
on missing (or extraneous) imports or variables.


Reinout

--
Reinout van Rees - rein...@vanrees.org - http://reinout.vanrees.org
Programmer at http://www.nelen-schuurmans.nl
"Military engineers build missiles. Civil engineers build targets"

--
You received this message because you are subscribed to the Google Groups "Django 
users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



'module' object has no attribute 'instancemethod' error

2010-08-10 Thread Wim Feijen
Hi,

When using reportlab trying to import a file which contains the
following line, I get an error.

from reportlab.platypus import Paragraph

The error says:
ViewDoesNotExist at /
Tried book in module book.address.views. Error was: 'module' object
has no attribute 'instancemethod'

The trace is below.

What could be wrong?

Wim



Environment:

Request Method: GET
Request URL: http://localhost:8000/
Django Version: 1.0.3 pre-alpha SVN-10924
Python Version: 2.6.5
Installed Applications:
['django.contrib.auth',
 'django.contrib.contenttypes',
 'django.contrib.flatpages',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.admin',
 'book.address',
 'book.adyen',
 'book.birthday',
 'book.budget',
 'book.export',
 'book.event',
 'book.field',
 'book.files',
 'book.friend',
 'book.help',
 'book.importbook',
 'book.login',
 'book.management',
 'book.password',
 'book.preferences',
 'book.create_pdf',
 'book.registration',
 'book.search',
 'book.tag',
 'book.write']
Installed Middleware:
('django.contrib.sessions.middleware.SessionMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.middleware.common.CommonMiddleware')


Traceback:
File "/home/wim/myprojects/book/django/core/handlers/base.py" in
get_response
  82. request.path_info)
File "/home/wim/myprojects/book/django/core/urlresolvers.py" in
resolve
  183. sub_match = pattern.resolve(new_path)
File "/home/wim/myprojects/book/django/core/urlresolvers.py" in
resolve
  124. return self.callback, args, kwargs
File "/home/wim/myprojects/book/django/core/urlresolvers.py" in
_get_callback
  136. raise ViewDoesNotExist, "Tried %s in module %s.
Error was: %s" % (func_name, mod_name, str(e))

Exception Type: ViewDoesNotExist at /
Exception Value: Tried book in module book.address.views. Error was:
'module' object has no attribute 'instancemethod'

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.