You are not logged in.

#1 2011-04-09 11:52:50

maxie
Member
Registered: 2010-12-25
Posts: 18

SOLVED: Problem with starting Eric (5)

Hello,

I cannot start eric5 (installation from [extra]). eric4 is working fine.

Output when trying to start eric(5) from xterm...

$ eric
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3.2/site-packages/eric5/eric5.py", line 98, in excepthook
    logFile = os.path.join(Utilities.getConfigDir(), "eric5_error.log")
  File "/usr/lib/python2.7/posixpath.py", line 68, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'QString' object has no attribute 'endswith'

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/python3.2/site-packages/eric5/eric5.py", line 262, in <module>
    main()
  File "/usr/lib/python3.2/site-packages/eric5/eric5.py", line 185, in main
    Startup.initializeResourceSearchPath()
  File "/usr/lib/python3.2/site-packages/eric5/Utilities/Startup.py", line 137, in initializeResourceSearchPath
    for iconPath in iconPaths:
TypeError: 'QVariant' object is not iterable

Any ideas?

Thanks.

Maxie

Last edited by maxie (2011-04-10 00:16:41)

Offline

#2 2011-04-10 00:08:17

rockin turtle
Member
From: Montana, USA
Registered: 2009-10-22
Posts: 227

Re: SOLVED: Problem with starting Eric (5)

I'm not sure if this is the answer, but looking at your traceback:

The first exception

File "/usr/lib/python3.2/site-packages/eric5/eric5.py", line 98, in excepthook
    logFile = os.path.join(Utilities.getConfigDir(), "eric5_error.log")

is from a python 3.2 library, while the next exception

File "/usr/lib/python2.7/posixpath.py", line 68, in join
    elif path == '' or path.endswith('/'):

is from a python 2.7 library.  It is unlikely that these two are compatible.

From the eric5 webpage, it states that eric5 is based on python 3; but somehow on your machine, it is trying to call a python 2 library.

What does ls -l /usr/bin/python do on your machine?

$ ls -l /usr/bin/python
lrwxrwxrwx 1 root root 7 Mar 19 21:48 /usr/bin/python -> python3

Offline

#3 2011-04-10 00:16:08

maxie
Member
Registered: 2010-12-25
Posts: 18

Re: SOLVED: Problem with starting Eric (5)

Thanks,

just found the solution.

/usr/bin/python was linked to python2. Since I changed it to python3 it is working.

Offline

#4 2011-04-10 00:17:36

cesura
Package Maintainer (PM)
From: Tallinn, Estonia
Registered: 2010-01-23
Posts: 1,867

Re: SOLVED: Problem with starting Eric (5)

deleted

Last edited by cesura (2011-04-10 00:17:53)

Offline

Board footer

Powered by FluxBB