Open ERP Forum
   IndexIndex   SearchSearch     RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   RSSRSS   Mailing ListMailing List   Log inLog in 

Error NoneType' object has no attribute 'expandtab using BI
 
Post new topic   Reply to topic    Open Object Forum Index -> Business Intelligence - OLAP Engine
View previous topic :: View next topic  
Author Message
joolsr



Joined: 27 Jul 2009
Posts: 22
Location: Leominster, UK

PostPosted: Wed Jan 27, 2010 5:57 pm    Post subject: Error NoneType' object has no attribute 'expandtab using BI Reply with quote

Hi

I finally managed to get open ERP Bi running with the web client from launchpad on 5.0.6.

i'm using my own db, but keep getting the same error whatever tables i try and create fields for.

I tried getting fields from partners and sales, but whatever i choose for Dimensions and Measures always gives me the same error when i try and drop either of the facets into the green area.

Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 242, in dispatch
result = LocalService(service_name)(method, *params)
File "/usr/lib/python2.5/site-packages/openerp-server/netsvc.py", line 73, in __call__
return getattr(self, method)(*params)
File "/usr/lib/python2.5/site-packages/openerp-server/service/web_services.py", line 583, in execute
res = service.execute(db, uid, object, method, *args)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 59, in wrapper
return f(self, dbname, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 119, in execute
res = pool.execute_cr(cr, uid, obj, method, *args, **kw)
File "/usr/lib/python2.5/site-packages/openerp-server/osv/osv.py", line 111, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/olap/olap.py", line 282, in request
mdx = mdx_parser.parse(request)
File "/usr/lib/python2.5/site-packages/openerp-server/addons/olap/cube/mdx_parser.py", line 163, in parse
return self.mdx_query().parseString(query)[0]
File "/usr/lib/python2.5/site-packages/pyparsing-1.5.2-py2.5.egg/pyparsing.py", line 1068, in parseString
instring = instring.expandtabs()
AttributeError: 'NoneType' object has no attribute 'expandtabs'

what is expandtabs ? does sound too awkward, but i cant get anywhere at the moment

Julian
Back to top
View user's profile Send private message
gegard



Joined: 21 Apr 2006
Posts: 1244
Location: Cambridge, UK

PostPosted: Thu Jan 28, 2010 3:29 pm    Post subject: Re: Error NoneType' object has no attribute 'expandtab using Reply with quote

joolsr wrote:
....
Code:
AttributeError: 'NoneType' object has no attribute 'expandtabs'


This says that the None object has no attribute. It's not just returning a list of zero objects, it's returning a None.
_________________
Regards,
Geoff
Seath Solutions Ltd
Back to top
View user's profile Send private message Visit poster's website
joolsr



Joined: 27 Jul 2009
Posts: 22
Location: Leominster, UK

PostPosted: Thu Jan 28, 2010 3:36 pm    Post subject: Reply with quote

So, its probably not returning a dataset correctly. I think Tiny shoudl add something here to capture problems such as this, but guess they will when its brought fully into stable
Back to top
View user's profile Send private message
tarik



Joined: 07 Dec 2009
Posts: 6

PostPosted: Tue Feb 09, 2010 4:36 pm    Post subject: Reply with quote

Hi
i managed to run the olap module on windows but when i try to drag and drop i ve got nearly the same problem
this is the message

Traceback (most recent call last):
File "netsvc.pyo", line 235, in dispatch
File "netsvc.pyo", line 74, in __call__
File "service\web_services.pyo", line 526, in execute
File "osv\osv.pyo", line 59, in wrapper
File "osv\osv.pyo", line 119, in execute
File "osv\osv.pyo", line 111, in execute_cr
File "C:\Program Files\OpenERP AllInOne\Server\addons\olap\olap.py", line 282, in request
File "C:\Program Files\OpenERP AllInOne\Server\addons\olap\cube\mdx_parser.py", line 163, in parse
File "pyparsing.pyo", line 1048, in parseString
AttributeError: 'NoneType' object has no attribute 'expandtabs'

Anyone please to tel me how to resolve the problem.
i am very grateful
Back to top
View user's profile Send private message
joolsr



Joined: 27 Jul 2009
Posts: 22
Location: Leominster, UK

PostPosted: Tue Feb 09, 2010 5:05 pm    Post subject: Reply with quote

Tarik

If you find the answer, pls post it here, as i never did get this fixed

Julian
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Open Object Forum Index -> Business Intelligence - OLAP Engine All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum