Unable to Save Dacument: u'TypeError ("\int\'object is not iterable",)'
A Full PLM system based on odoo
Brought to you by:
matteoboscolo
Unable to Save Dacument from Inventor to the PLm Module in OdooPLM.
Everytime, when i upload a CAD-Part or 2D-Drawing the Message comes:
"Unable to Save Dacument
u'TypeError ("\int\'object is not iterable",)' "
The upload terminates everytime at 52%.
I'm using:
Inventor 2016 Pro / Client from 09.11.2016 / Windows 7
Odoo V10 / Ubuntu 16.04
How can I fix this problem?
Now i changed the Odoo version from 10 to 8 and it works very well.
the V10 is in beta testing.
be sure to use the some version of the odooV10 and the plug-in V10
client:
https://sourceforge.net/projects/openerpplm/files/Client/Beta/v10/
server:
https://sourceforge.net/projects/openerpplm/files/Server/10.0/beta/
thanks for the report,
we will investigate deeper to understand the problem
regards,
Matteo
Does it work on Odoo 10 Enterprise? (Solidworks 2017 / Inventor 2017)
Server platform is Ubuntu 16.04
When i try save eg Solidworks part, i receive errormessages.
(This is so frustrating...)
..
<type 'exceptions.TypeError'="">
TypeError("'int' object is not iterable",)
<traceback object="" at="" 0x0000000029168288="">
Locals by frame, innermost last
Frame 'Invoke' in 'win32com\server\policy.pyc' at line 277
Or
com_error(-2147352567, 'Kohdattiin poikkeus.', (0, u'Python COM Server Internal Error', u'Unexpected Python Error: Traceback (most recent call last):\n File "win32com\server\policy.pyc", line 277, in Invoke\n File "win32com\server\policy.pyc", line 282, in invoke\n File "win32com\server\policy.pyc", line 585, in invokeex\n File "utils.pyc", line 116, in func_wrapper\nTypeError: \'int\' object is not iterable\n', None, 0, -2147467259), None)<class 'pywintypes.com_error'="">
BR
Harri
hi Harry,
Next week we will release a new stable version for v10.
may be the problem that you mention is already fixed.
The v10e and sw2017 i2017 are supported.
regards,
Matteo
Hi Harry the new version is out, the problem shuld be fixed.
regards
Matteo
Hi
I have installed PLM newest versions, but when i try save my Solidworks part i get erros messages:''-
.....
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/odoo/service/wsgi_server.py", line 56, in xmlrpc_return
result = odoo.http.dispatch_rpc(service, method, params)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 118, in dispatch_rpc
result = dispatch(method, params)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 38, in dispatch
res = fn(db, uid, params)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 175, in execute_kw
return execute(db, uid, obj, method, args, kw or {})
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 119, in wrapper
return f(dbname, *args, kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 182, in execute
res = execute_cr(cr, uid, obj, method, *args, kw)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 171, in execute_cr
return odoo.api.call_kw(recs, method, args, kw)
File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 679, in call_kw
return call_kw_model(method, model, args, kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 664, in call_kw_model
result = method(recs, *args, kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/addons/plm/models/plm_document.py", line 624, in create
return super(PlmDocument, self).create(vals)
File "/usr/lib/python2.7/dist-packages/odoo/addons/mail/models/mail_thread.py", line 228, in create
thread = super(MailThread, self).create(values)
File "/usr/lib/python2.7/dist-packages/odoo/addons/base/ir/ir_attachment.py", line 438, in create
return super(IrAttachment, self).create(values)
File "/usr/lib/python2.7/dist-packages/odoo/models.py", line 3818, in create
self._fields[key].determine_inverse(record)
File "/usr/lib/python2.7/dist-packages/odoo/fields.py", line 999, in determine_inverse
getattr(records, self.inverse)()
File "/usr/lib/python2.7/dist-packages/odoo/addons/plm/models/plm_document.py", line 177, in _inverse_datas
fname, filesize = self._manageFile(filestore, value)
File "/usr/lib/python2.7/dist-packages/odoo/addons/plm/models/plm_document.py", line 317, in _manageFile
for dirs in os.listdir(filestore):
OSError: [Errno 2] Tiedostoa tai hakemistoa ei ole: '' (->No directory)
Hi it seems that you have no right to save the file into the server.
you can set the variable
document_path into you openerp-server.conf file in order to control the path of where the file is stored.
regards,
Matteo
Thanks! Now i can save document, but when i try edit part data, i get same
error messages:
"Unable to access/retrieve Part Data.
Error: TypeError("ínt´object is not iterable".
What i do wrong???
Still some kind access right issue?
Br
Harri
2017-03-20 19:51 GMT+02:00 Matteo Boscolo matteoboscolo@users.sf.net:
Related
Tickets:
#80Hi Harry,
can you check that you have the right client version?
For odooV10 the right client is OdooPlm(x64)_06032017_124314(V10).exe
if the client is right can you post the entire error ?
best regards
Matteo
Hi Matteo
One step ahead, one back :-/
I chance client OdooPlm(x64)_06032017_124600(V10) to OdooPlm(x64)_06032017_124314(V10)
Now Edit part data dialog open.
When i try assign Raw Material, i get following error messages.
......
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/odoo/service/wsgi_server.py", line 56, in xmlrpc_return
result = odoo.http.dispatch_rpc(service, method, params)
File "/usr/lib/python2.7/dist-packages/odoo/http.py", line 118, in dispatch_rpc
result = dispatch(method, params)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 38, in dispatch
res = fn(db, uid, params)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 119, in wrapper
return f(dbname, args, kwargs)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 182, in execute
res = execute_cr(cr, uid, obj, method, *args, kw)
File "/usr/lib/python2.7/dist-packages/odoo/service/model.py", line 171, in execute_cr
return odoo.api.call_kw(recs, method, args, kw)
File "/usr/lib/python2.7/dist-packages/odoo/api.py", line 677, in call_kw
method = getattr(type(model), name)
AttributeError: type object 'ir.values' has no attribute 'get'
Anyway, i m happy, becouse now i can save my Solidwork part in Odoo :D
And spring is coming to Finland :-)
Have nice weekend.