smtpclient crashes on install

Bug #380955 reported by JuanR
28
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
High
Stephane Wirtel (OpenERP)

Bug Description

When I try installing smtpclient crashes showing this error:

Traceback (most recent call last):
  File "netsvc.pyo", line 231, in dispatch
  File "netsvc.pyo", line 74, in __call__
  File "service\web_services.pyo", line 552, in execute
  File "service\web_services.pyo", line 532, in _execute
  File "wizard\__init__.pyo", line 178, in execute
  File "wizard\__init__.pyo", line 74, in execute_cr
  File "C:\Archivos de programa\OpenERP AllInOne\Server\addons\base\module\wizard\wizard_module_upgrade.py", line 92, in _upgrade_module
  File "pooler.pyo", line 61, in restart_pool
  File "pooler.pyo", line 40, in get_db_and_pool
  File "addons\__init__.pyo", line 715, in load_modules
  File "addons\__init__.pyo", line 584, in load_module_graph
  File "addons\__init__.pyo", line 384, in register_class
  File "C:\Archivos de programa\OpenERP AllInOne\Server\addons\smtpclient\__init__.py", line 22, in <module>
  File "C:\Archivos de programa\OpenERP AllInOne\Server\addons\smtpclient\smtpclient.py", line 33, in <module>
  File "email\__init__.pyo", line 79, in __getattr__
  File "email\message.pyo", line 86, in <module>
  File "email\message.pyo", line 786, in Message
  File "email\__init__.pyo", line 79, in __getattr__
ImportError: No module named iterators

Related branches

Revision history for this message
vir (Open ERP) (vir-tinyerp) wrote :

hi

you are getting error in windows.
Please go to the path below

C:\Archivos de programa\OpenERP AllInOne\Server\library.zip in that there is a folder called email.
Plz add iterators.py file here

In email folder, there is a folder called mime

C:\Archivos de programa\OpenERP AllInOne\Server\library.zip\email\mime folder add following files in it

- base.py
- multipart.py
- nonmultipart.py
- text.py

I m attching zip file in which all these files are there. plz check it.

Thank You

Revision history for this message
jorge.a (jorge-a86) wrote :

Hi Vir
I did what you said and it does not work.see the error below

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 582, in execute
  File "service\web_services.pyo", line 562, in _execute
  File "wizard\__init__.pyo", line 178, in execute
  File "wizard\__init__.pyo", line 74, in execute_cr
  File "C:\Program Files\OpenERP Server\addons\base\module\wizard\wizard_module_upgrade.py", line 92, in _upgrade_module
  File "pooler.pyo", line 62, in restart_pool
  File "pooler.pyo", line 40, in get_db_and_pool
  File "addons\__init__.pyo", line 718, in load_modules
  File "addons\__init__.pyo", line 578, in load_module_graph
  File "addons\__init__.pyo", line 406, in register_class
  File "C:\Program Files\OpenERP Server\addons\smtpclient.zip\smtpclient\__init__.py", line 22, in <module>
  File "C:\Program Files\OpenERP Server\addons\smtpclient.zip\smtpclient\smtpclient.py", line 33, in <module>
  File "email\__init__.pyo", line 79, in __getattr__
  File "email\message.pyo", line 86, in <module>
  File "email\message.pyo", line 786, in Message
  File "email\__init__.pyo", line 79, in __getattr__
ImportError: No module named iterators

thank you
Jorge.A

Revision history for this message
vir (Open ERP) (vir-tinyerp) wrote :

hi

After coping all these files, please restart your server. or check with creating new database.

Thank you

Revision history for this message
jorge.a (jorge-a86) wrote :

Hello Vir
The files you posted don't work because them are compiled in "py" and the mail module is compiled in "pyo"
I download the file bellow and now I got a new error.
http://stuff.mit.edu/afs/sipb/project/python/lib/python2.6/email/iterators.pyo

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 582, in execute
  File "service\web_services.pyo", line 562, in _execute
  File "wizard\__init__.pyo", line 178, in execute
  File "wizard\__init__.pyo", line 74, in execute_cr
  File "C:\Program Files\OpenERP Server\addons\base\module\wizard\wizard_module_upgrade.py", line 92, in _upgrade_module
  File "pooler.pyo", line 62, in restart_pool
  File "pooler.pyo", line 40, in get_db_and_pool
  File "addons\__init__.pyo", line 718, in load_modules
  File "addons\__init__.pyo", line 578, in load_module_graph
  File "addons\__init__.pyo", line 406, in register_class
  File "C:\Program Files\OpenERP Server\addons\smtpclient.zip\smtpclient\__init__.py", line 22, in <module>
  File "C:\Program Files\OpenERP Server\addons\smtpclient.zip\smtpclient\smtpclient.py", line 33, in <module>
  File "email\__init__.pyo", line 79, in __getattr__
  File "email\message.pyo", line 86, in <module>
  File "email\message.pyo", line 786, in Message
  File "email\__init__.pyo", line 79, in __getattr__
ZipImportError: can't find module 'email.iterators'

I haven't find the file "email.iterators.pyo" if anybody find it please let us know
Thank you
Jorge.A

Revision history for this message
Ajay (yosis) wrote :

Jorge,

Please be sure to copy the files emails exactly as the system will automatically compile the .py files for you. I had the same problem and now it works.

After you've copied the .py files as instructed, close whatever client you're running and then be sure to go to your and follow this path: Start Menu / Open ERP Server / Stop Service and then click "Start Service". Fire up your client again and try to reinstall the smtpclient again and it should work.

Best Regards!

Revision history for this message
jorge.a (jorge-a86) wrote :

Hello Ajay

I copy the files and it does not work neither, I steel with the same errror..
note inside "library.zip/mail" all the files are in ".pyo" extention.

I'm using openerp 5.0.1
windows server 2003

thanks
Jorge.A

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello JuanR, jorge.a,

Sorry for the inconvenience.
We will add these files in the next release.

Thanks.

Changed in openobject-addons:
status: New → Confirmed
Revision history for this message
jorge.a (jorge-a86) wrote :

thanks for your answer Jay (Open ERP)

when will be available the the next release?
thank you.
Jorge.A

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello,

At the end of the month, a new release will be made and it will have this problem resolved.

Till then, you can apply the solution given by VIR(openERP) in the above posts.
Sorry for the inconvenience,

Thank you.

Changed in openobject-addons:
importance: Undecided → Medium
Revision history for this message
jorge.a (jorge-a86) wrote :

Hello Jay

Do you know if the new release is available for download.

thank you
Jorge.A

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Hello Jorge.a,

Sorry to say, but its not released yet.

Thanks.

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Have we some news for this bug ?

Thank you

Revision history for this message
jpereira (x-trail543) wrote :

my solution was follow the instructions of this threat, but restart the server from the "windows services" NOT with the start/stop bats of server.

Revision history for this message
Vadim - Enapps LTD (vadim-enapps) wrote :

restarting from windows services sorted it for me too, thanks

Revision history for this message
GEM (nimp3) wrote :

before to build setup for windows, in file C:\Python25\Lib\email\mime\__init__.py I add lines :

from email.mime import application
from email.mime import audio
from email.mime import base
from email.mime import image
from email.mime import message
from email.mime import multipart
from email.mime import nonmultipart
from email.mime import text

all this compiled modules (.pyo) are added for server and client gtk in library.zip\email\mime

build himself setup for windows :
http://www.openobject.com/forum/topic12184.html

Revision history for this message
Saurabh (saurabh-mukherjee) wrote :

Environment Information :
System : Windows-2003Server-5.2.3790
OS Name : nt
Operating System Release : 2003Server
Operating System Version : 5.2.3790
Operating System Architecture : 32bit
Operating System Locale : en_US.cp1252
Python Version : 2.5.2
OpenERP-Client Version : 5.0.6
Last revision No. & ID :Bazaar Package not Found !Traceback (most recent call last):
  File "netsvc.pyo", line 244, in dispatch
  File "netsvc.pyo", line 73, in __call__
  File "service\web_services.pyo", line 639, in execute
  File "service\web_services.pyo", line 619, in _execute
  File "wizard\__init__.pyo", line 178, in execute
  File "wizard\__init__.pyo", line 74, in execute_cr
  File "F:\OpenERP AllInOne\Server\addons\base\module\wizard\wizard_module_upgrade.py", line 92, in _upgrade_module
  File "pooler.pyo", line 62, in restart_pool
  File "pooler.pyo", line 40, in get_db_and_pool
  File "addons\__init__.pyo", line 728, in load_modules
  File "addons\__init__.pyo", line 578, in load_module_graph
  File "addons\__init__.pyo", line 406, in register_class
  File "F:\OpenERP AllInOne\Server\addons\smtpclient.zip\smtpclient\__init__.py", line 22, in <module>
  File "F:\OpenERP AllInOne\Server\addons\smtpclient.zip\smtpclient\smtpclient.py", line 33, in <module>
  File "email\__init__.pyo", line 79, in __getattr__
  File "email\message.pyo", line 86, in <module>
  File "email\message.pyo", line 786, in Message
  File "email\__init__.pyo", line 79, in __getattr__
ImportError: No module named iterators

I get this error still. I tried all mentioned above. A little help would be generous. You have the environment info above.

Revision history for this message
GEM (nimp3) wrote :

download the complet folder email (include iterators) and put it in library.zip, don't forget to restart services in panel config->administration tools->services-> openerp server services :
(to download click on the page : telecharger ce fichier)
http://dl.free.fr/getfile.pl?file=/JCeZ5gzX

Changed in openobject-addons:
milestone: none → 5.0.7
importance: Medium → High
assignee: nobody → Stephane (Open ERP) (stephane-openerp)
Revision history for this message
Manu Sharm (manu-sharma1232-deactivatedaccount) wrote :

Hi ,

Try Doing this..
copy openerp-web/pyhton25/email/iterators.py into server/library/email

Regards,

Manu

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Gem, can you explain me how I can regenerate this file ?

thanks

Revision history for this message
Ana Juaristi Olalde (ajuaristio) wrote : Re: [Bug 380955] Re: smtpclient crashes on install

Hi... if this could help, solution to this bug is posted here:
http://openobject.com/forum/topic10457.html<http://openobject.com/forum/topic10457.html?highlight=smtp>

Thank you:

Ana

2010/2/17 Stephane (Open ERP) <email address hidden>

> Gem, can you explain me how I can regenerate this file ?
>
> thanks
>
> --
> smtpclient crashes on install
> https://bugs.launchpad.net/bugs/380955
> You received this bug notification because you are subscribed to
> OpenObject Addons.
>
> Status in OpenObject Addons Modules: Confirmed
>
> Bug description:
> When I try installing smtpclient crashes showing this error:
>
> Traceback (most recent call last):
> File "netsvc.pyo", line 231, in dispatch
> File "netsvc.pyo", line 74, in __call__
> File "service\web_services.pyo", line 552, in execute
> File "service\web_services.pyo", line 532, in _execute
> File "wizard\__init__.pyo", line 178, in execute
> File "wizard\__init__.pyo", line 74, in execute_cr
> File "C:\Archivos de programa\OpenERP
> AllInOne\Server\addons\base\module\wizard\wizard_module_upgrade.py", line
> 92, in _upgrade_module
> File "pooler.pyo", line 61, in restart_pool
> File "pooler.pyo", line 40, in get_db_and_pool
> File "addons\__init__.pyo", line 715, in load_modules
> File "addons\__init__.pyo", line 584, in load_module_graph
> File "addons\__init__.pyo", line 384, in register_class
> File "C:\Archivos de programa\OpenERP
> AllInOne\Server\addons\smtpclient\__init__.py", line 22, in <module>
> File "C:\Archivos de programa\OpenERP
> AllInOne\Server\addons\smtpclient\smtpclient.py", line 33, in <module>
> File "email\__init__.pyo", line 79, in __getattr__
> File "email\message.pyo", line 86, in <module>
> File "email\message.pyo", line 786, in Message
> File "email\__init__.pyo", line 79, in __getattr__
> ImportError: No module named iterators
>
>
>

--
Ana Juaristi Olalde
Consultor Freelance OpenERP
www.anajuaristi.com
www.openerpsite.com
www.avanzosc.com
677 93 42 59 - 943 85 06 25

Revision history for this message
Sharoon Thomas http://openlabs.co.in (sharoonthomas) wrote :

We had similar issues with poweremail and our site carries a tutorial on how to get over this.

My understanding is it is the problem with missing libraries in windows installer.

Its here:

http://openlabs.co.in/blog/post/power-email-installation-windows/

@stephane,
with 5.0.6 we had repacked the Open ERP installer with the libraries and it had solved most of the issues. Can you check your setup.py and py2exe settings.

Sharoon Thomas
CEO @ Open Labs Business Solutions
http://openlabs.co.in

Revision history for this message
GEM (nimp3) wrote :

Hi,
sorry for the low answer,
I installed python 2.5 and libraries to build openerp for windows (from list of branch trunk win installer), see this topic for detailed info :
http://openobject.com/forum/topic12184.html

as I said, to have application.py, audio.py .... in library.zip, in th file C:\Python25\Lib\email\mime\__init__.py, I add this lines to import this modules when the script collect all asked modules :
from email.mime import application
from email.mime import audio
from email.mime import base
from email.mime import image
from email.mime import message
from email.mime import multipart
from email.mime import nonmultipart
from email.mime import text

I change nothing else in win32\setup.py, setup.py or setup.nsi

in fact I believe that there was nothing written in file C:\Python25\email\mime\__init__.py, pehaps it wasn't exist, I can't remember.

Ask me what you want if it isn't enougn.
Bye

Revision history for this message
GEM (nimp3) wrote :

for webmail :
I'm lookink for th link openlabs :
to solve it with manual build follow this different steps
open a console, tape : easy_install mako
in c\python25\lib\site-packages\mako-0.2.4-py2.5.egg copy folder mako, paste it in c\python25\lib\site-packages\
delete folder mako-0.2.4-py2.5.egg
in file c\python25\lib\site-packages\easy-install.path delete line mako-0.2.4-py2.5.egg save
in mako\__init.py__ add line :
from mako import *
in mako\ext\__init__.py add line :
from mako.ext import *

in server\setup.py line 151 at the end of the list, add module mako imaplib and poplib to be collected :

options = {
    "py2exe": {
        "compressed": 1,
        "optimize": 2,
        "dist_dir": 'dist',
        "packages": ["lxml", "lxml.builder", "lxml._elementpath", "lxml.etree",
                     "lxml.objectify", "decimal", "xml", "xml.dom", "xml.xpath",
                     "encodings","mx.DateTime","wizard","pychart","PIL", "pyparsing",
                     "pydot","asyncore","asynchat", "reportlab", "vobject",
                     "HTMLParser", "select", "libxslt", "libxml2", "mako", "poplib", "imaplib"], (line 151)

launch your script for build server, mako will be in library.zip

for mime files (follow how to get it in library.zip more high)
base64.pyo is in server\library and client\library

if necessary, add in client\setup.py too (some libraries are in client web) line 149 :
"packages": ["encodings","gtk", "matplotlib", "pytz", "OpenSSL"],

Revision history for this message
GEM (nimp3) wrote :

I forget : libxslt and libxsml2 are added for error no module libxslt for base_report_designer

Revision history for this message
GEM (nimp3) wrote :

in fact powermail do an error at the install with I said before.

in fact just add module "email" to the list packages in server\setup.py as :

options = {
    "py2exe": {
        "compressed": 1,
        "optimize": 2,
        "dist_dir": 'dist',
        "packages": ["lxml", "lxml.builder", "lxml._elementpath", "lxml.etree",
                     "lxml.objectify", "decimal", "xml", "xml.dom", "xml.xpath",
                     "encodings","mx.DateTime","wizard","pychart","PIL", "pyparsing",
                     "pydot","asyncore","asynchat", "reportlab", "vobject",
                     "HTMLParser", "select", "libxslt", "libxml2", "mako", "poplib", "imaplib", "email"], (line 151)

Changed in openobject-addons:
milestone: 5.0.7 → 5.0.8
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

I have packaged a preview [1] of the openerp 5.0.8 server with the mako, poplib, imaplib, email and smtplib.

Can you give me your feedback about this issue ?

It's not an official release candidate of 5.0.8 !!!
[1] http://openerp.com/download/unstable/win32/openerp-server-setup-5.0.8-rc1.exe

Thanks

Revision history for this message
GEM (nimp3) wrote :

j'ai installe le serveur rc1, ajoute les modules smtpclient et powermail des addons extra-5.0, et aucune erreur lors de leur installation respective.

en passant une remarque pour le win installer :
entre la version allinone et le setup independant du server, harmoniser si possible le fichier de configuration, car si quelqu'un installe une allinone, qu'il n'a rien modifie dans le fichier de conf, et qu'il veut mettre a jour avec le dernier setup du server, cela fait une "erreur de connexion au server", alors s'ils nont pas sauvegarde leur fichier de conf ou ne sont pas top doues, petit probleme pour eux.
Voila that's all folks.
Bon dev.
GEM

____________________________________________________

 Envie de partager vos photos de vacances ? Voila vous offre 1 Go d’espace de stockage sur http://macle.voila.fr !

Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Fixed in the following revision:
http://bazaar.launchpad.net/~openerp/openobject-server/5.0/revision/2010

2010 <email address hidden>

Thank you

Changed in openobject-addons:
status: In Progress → Fix Released
affects: openobject-addons → openobject-server
Changed in openobject-server:
milestone: 5.0.8 → none
Changed in openobject-server:
milestone: none → 5.0.8
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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