Bug 11442 - 1.1.3 does not start: "ImportError: No module named evolution"
: 1.1.3 does not start: "ImportError: No module named evolution"
Status: RESOLVED WORKSFORME
Product: www2sms
General
: unspecified
: All Maemo
: Unspecified normal (vote)
: ---
Assigned To: Bjoern Olausson
: general
:
:
:
: 11427
  Show dependency tree
 
Reported: 2010-10-25 15:56 UTC by Andre Klapper
Modified: 2010-11-10 19:31 UTC (History)
1 user (show)

See Also:


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description Andre Klapper (reporter) maemo.org 2010-10-25 15:56:29 UTC
SOFTWARE VERSION:
www2sms 1.1.3
Maemo5 20.2010.36-2

EXACT STEPS LEADING TO PROBLEM: 
1. Installed www2sms via App Manager from Extras-Devel
2. Starting app from Application Menu showed window but window closed itself
quickly again
3. Hence in the terminal:
   python /opt/www2sms/www2sms.py

EXPECTED OUTCOME:
Application starts

ACTUAL OUTCOME:
python /opt/www2sms/www2sms.py
Traceback (most recent call last):
  File "/opt/www2sms/www2sms.py", line 26, in <module>
    import os, errno, pwd, sys, math, sqlite3, time, calendar, evolution, re
,socket
ImportError: No module named evolution

REPRODUCIBILITY:
always
Comment 1 Bjoern Olausson 2010-10-25 17:28:14 UTC
Could you pleas check if "python-evolution" is installed?
If not, please install it manually and try to start www2sms again.

-------------------------------------
sudo gainroot
apt-get install python-evolution
-------------------------------------

If this fixes the problem there might be an issue with the dependency
declaration in the Debian install file.

Thanks for reporting.

Cheers
Bjoern
Comment 2 Andre Klapper (reporter) maemo.org 2010-10-25 18:52:34 UTC
(In reply to comment #1)
> Could you pleas check if "python-evolution" is installed?

dpkg -l python-evolution says
ii  python-evoluti 0.0.4-maemo2
Comment 3 Bjoern Olausson 2010-10-25 19:53:13 UTC
(In reply to comment #2)
> dpkg -l python-evolution says
> ii  python-evoluti 0.0.4-maemo2
> 

Same on my phone.
Can you import evolution in a python shell

----------------------------
~ $ python
>>> import evolution
>>> help(evolution)
----------------------------

The package should be in
/usr/lib/python2.5/site-packages/gtk-2.0/evolution/
Comment 4 Andre Klapper (reporter) maemo.org 2010-10-25 22:58:38 UTC
(In reply to comment #3)
> ----------------------------
> ~ $ python
> >>> import evolution

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named evolution
Comment 5 Bjoern Olausson 2010-10-25 23:08:43 UTC
(In reply to comment #4)
> > ----------------------------
> > ~ $ python
> > >>> import evolution
> 
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> ImportError: No module named evolution
> 

Okay, then this is not a www2sms bug.

Either the installation of python-evolution went wrong or something other odd
is going on.

You should probably contact the devs of python-evolution and/or the python devs
(both of course here at Maemo).

I can't replicate the bug so I am not much of help here, sorry. :-(

I will close this bug as "WORKSFORME".

Please report back if you/them could fix the problem.

Kind regards
Bjoern
Comment 6 Bjoern Olausson 2010-10-27 00:14:43 UTC
I have one suggestion:

Try removing the python-evolution package with abt-get, and reinstall it with
apt-get.

Then try if you can import it in python.

Cheers
Bjoern
Comment 7 Andre Klapper (reporter) maemo.org 2010-11-10 19:24:15 UTC
(In reply to comment #6)
> Try removing the python-evolution package with abt-get, and reinstall it with
> apt-get. Then try if you can import it in python.

That still doesn't work - same error.

However "apt-get autoremove" removed 7 python related packages (python-central,
python2.5-qt4-core, python2.5-qt4-gui etc).
Running "apt-get www2sms" afterwards will install these (and python-evolution)
again. And still I get the ImportError. :-(
Comment 8 Bjoern Olausson 2010-11-10 19:31:57 UTC
I once could reproduce the error (after upgrading to PR1.3), but removing and
reinstalling python-evolution helped.

Sorry, I have no Idea.

You could give it a shot in forum with an own thread, maybe someone can help.

But since I cant reproduce it and you can import evolution in python console,
this is not www2sms related.

You might want to open a bug on python-evolution or python.

Sorry.

Cheers
Bjoern