SyntaxError: invalid syntax

54 views
Skip to first unread message

BT

unread,
Dec 20, 2021, 9:16:12 AM12/20/21
to wikidpa...@googlegroups.com, box...@gmail.com
Hi!


Try to start WikidPad in terminal Ubuntu 20.04
:

$ python WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 1, in <module>
import WikidPadStarter
File "/home/one/work/WikidPad/WikidPad-WikidPad-2-3-rc02/WikidPadStarter.py", line 237
except Exception, e:
^
SyntaxError: invalid syntax



Can anybody help?


Mike

Michael Butscher

unread,
Dec 20, 2021, 10:10:19 PM12/20/21
to wikidpa...@googlegroups.com, box...@gmail.com
WikidPad 2.3 was written for Python 2.6 or 2.7. It seems you are running it with
some Python 3.x.

There is a WikidPad 2.4alpha01 version at
https://github.com/WikidPad/WikidPad/releases/tag/WikidPad-2-4-alpha01 which was
written for Python 3.4 which may also work with later Python versions.



Michael

boxit

unread,
Dec 21, 2021, 3:24:25 AM12/21/21
to wikidpad-devel
Michael,

Thank You!

Mike

вторник, 21 декабря 2021 г. в 06:10:19 UTC+3, Michael Butscher:

BT

unread,
Dec 21, 2021, 7:10:58 AM12/21/21
to Michael Butscher, box...@gmail.com, wikidpad-devel
Michael,


not works:

With pytnon3:

one@one-Samsung-wor:~/work/WikidPad-master$ cd /home/one/work/WikidPad-master
one@one-Samsung-wor:~/work/WikidPad-master$ python3 WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 6, in <module>
from WikidPad import WikidPadStarter
File "/home/one/work/WikidPad-master/WikidPad/WikidPadStarter.py", line 105, in <module>
import wx
ModuleNotFoundError: No module named 'wx'
one@one-Samsung-wor:~/work/WikidPad-master$ cd /home/one/work/WikidPad-WikidPad-2-4-alpha01
one@one-Samsung-wor:~/work/WikidPad-WikidPad-2-4-alpha01$ python3 WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 3, in <module>
import WikidPadStarter
File "/home/one/work/WikidPad-WikidPad-2-4-alpha01/WikidPadStarter.py", line 12, in <module>
os.stat_float_times(True)
AttributeError: module 'os' has no attribute 'stat_float_times'
one@one-Samsung-wor:~/work/WikidPad-WikidPad-2-4-alpha01$

one@one-Samsung-wor:~/work/WikidPad-WikidPad-2-4-alpha01$ python3 WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 3, in <module>
import WikidPadStarter
File "/home/one/work/WikidPad-WikidPad-2-4-alpha01/WikidPadStarter.py", line 12, in <module>
os.stat_float_times(True)
AttributeError: module 'os' has no attribute 'stat_float_times'
one@one-Samsung-wor:~/work/WikidPad-WikidPad-2-4-alpha01$




With pytnon2:

one@one-Samsung-wor:~/work/WikidPad-WikidPad-2-4-alpha01$ cd /home/one/work/WikidPad-master
one@one-Samsung-wor:~/work/WikidPad-master$ python2 WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 6, in <module>
from WikidPad import WikidPadStarter
File "/home/one/work/WikidPad-master/WikidPad/WikidPadStarter.py", line 11, in <module>
import sys, os, traceback, os.path, glob, shutil, imp, warnings, configparser
ImportError: No module named configparser
one@one-Samsung-wor:~/work/WikidPad-master$




one@one-Samsung-wor:~/work/WikidPad-WikidPad-2-4-alpha01$ python2 WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 3, in <module>
import WikidPadStarter
File "/home/one/work/WikidPad-WikidPad-2-4-alpha01/WikidPadStarter.py", line 11, in <module>
import sys, os, traceback, os.path, glob, shutil, imp, warnings, configparser
ImportError: No module named configparser
one@one-Samsung-wor:~/work/WikidPad-WikidPad-2-4-alpha01$






21.12.2021 06:10, Michael Butscher пишет:

boxtrap

unread,
Dec 28, 2021, 5:56:11 PM12/28/21
to Michael Butscher, wikidpad-devel, box...@gmail.com
Michael,


not works:

With pytnon3:

one@one-Samsung-wor:~/work/WikidPad-master$ cd
/home/one/work/WikidPad-master
one@one-Samsung-wor:~/work/WikidPad-master$ python3 WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 6, in <module>
from WikidPad import WikidPadStarter
File "/home/one/work/WikidPad-master/WikidPad/WikidPadStarter.py",
line 105, in <module>
import wx
ModuleNotFoundError: No module named 'wx'
one@one-Samsung-work:~/work/WikidPad-master$ cd
/home/one/work/WikidPad-WikidPad-2-4-alpha01
one@one-Samsung-work:~/work/WikidPad-WikidPad-2-4-alpha01$ python3
WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 3, in <module>
import WikidPadStarter
File
"/home/one/work/WikidPad-WikidPad-2-4-alpha01/WikidPadStarter.py", line
12, in <module>
os.stat_float_times(True)
AttributeError: module 'os' has no attribute 'stat_float_times'
one@one-Samsung-work:~/work/WikidPad-WikidPad-2-4-alpha01$

one@one-Samsung-work:~/work/WikidPad-WikidPad-2-4-alpha01$ python3
WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 3, in <module>
import WikidPadStarter
File
"/home/one/work/WikidPad-WikidPad-2-4-alpha01/WikidPadStarter.py", line
12, in <module>
os.stat_float_times(True)
AttributeError: module 'os' has no attribute 'stat_float_times'
one@one-Samsung-work:~/work/WikidPad-WikidPad-2-4-alpha01$




With pytnon2:

one@one-Samsung-wor:~/work/WikidPad-WikidPad-2-4-alpha01$ cd
/home/one/work/WikidPad-master
one@one-Samsung-wor:~/work/WikidPad-master$ python2 WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 6, in <module>
from WikidPad import WikidPadStarter
File "/home/one/work/WikidPad-master/WikidPad/WikidPadStarter.py",
line 11, in <module>
import sys, os, traceback, os.path, glob, shutil, imp, warnings,
configparser
ImportError: No module named configparser
one@one-Samsung-wor:~/work/WikidPad-master$




one@one-Samsung-wor:~/work/WikidPad-WikidPad-2-4-alpha01$ python2
WikidPad.py
Traceback (most recent call last):
File "WikidPad.py", line 3, in <module>
import WikidPadStarter
File
"/home/one/work/WikidPad-WikidPad-2-4-alpha01/WikidPadStarter.py", line
11, in <module>
import sys, os, traceback, os.path, glob, shutil, imp, warnings,
configparser
ImportError: No module named configparser
one@one-Samsung-wor:~/work/WikidPad-WikidPad-2-4-alpha01$






21.12.2021 06:10, Michael Butscher пишет:
Reply all
Reply to author
Forward
0 new messages