Ubuntu 18.04 Installation Instructions

88 views
Skip to first unread message

Tyler Tolley

unread,
Oct 15, 2018, 9:29:00 AM10/15/18
to wikidpad-devel
I'm just wondering if anyone can point me to Ubuntu 18.04 installation instructions. The current install on linux is pretty old and isn't working for me. I've tried downloading the source and running it, but I get a "missing module wx" error. I've tried installing python-wxtools and python-wxgtk4.0 with apt but it hasn't resolved the error. I'm not a python expert so I'm not sure where to go next. Thanks!

Björn Johansson

unread,
Oct 15, 2018, 9:42:33 AM10/15/18
to wikidpa...@googlegroups.com
could you paste the error messages you get? I assume you run from source?
______O_________oO________oO______o_______oO________O_________oO________
Björn Johansson, Assistant Professor
Department of Biology
University of Minho
Campus de Gualtar
4710-057 Braga
PORTUGAL
https://metabolicengineeringgroupcbma.github.io | www.bio.uminho.pt
Office direct +351-253 601517 | mob.  +351-967 147 704Dept secretary +351-253 60 4310


On Mon, Oct 15, 2018 at 2:29 PM Tyler Tolley <thatto...@gmail.com> wrote:
I'm just wondering if anyone can point me to Ubuntu 18.04 installation instructions. The current install on linux is pretty old and isn't working for me. I've tried downloading the source and running it, but I get a "missing module wx" error. I've tried installing python-wxtools and python-wxgtk4.0 with apt but it hasn't resolved the error. I'm not a python expert so I'm not sure where to go next. Thanks!

--
You received this message because you are subscribed to the Google Groups "wikidpad-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wikidpad-deve...@googlegroups.com.
To post to this group, send email to wikidpa...@googlegroups.com.
Visit this group at https://groups.google.com/group/wikidpad-devel.
For more options, visit https://groups.google.com/d/optout.

Tyler Tolley

unread,
Oct 15, 2018, 10:40:41 AM10/15/18
to wikidpad-devel
python3 WikidPad.py
Traceback (most recent call last):
  File "WikidPad.py", line 3, in <module>
    import WikidPadStarter
  File "/home/tyler/personal-repo/WikidPad/WikidPadStarter.py", line 101, in <module>
    import wx
ModuleNotFoundError: No module named 'wx'

Francois Savard

unread,
Oct 15, 2018, 11:02:19 AM10/15/18
to wikidpa...@googlegroups.com

You're running it with python3, are you sure you installed wx for python 3 (e.g. python3-wxgtk4.0)? You might also want to try wx 3.0, I'm not sure the latest stable WikidPad uses 4.0.

I don't think the Ubuntu repositories have the "python3 + wxgtk3.0" combination so you might want to try running it with Python 2.

(I'm not an expert, by the way, but I've been able to run WP 2.2 under Ubuntu 18.04 with python2.7 + wx3.0)

François

Björn Johansson

unread,
Oct 15, 2018, 11:23:47 AM10/15/18
to wikidpa...@googlegroups.com
I agree with Francois. 

start python2 or python3 in the terminal and type "import wx" at the python prompt
to find out for which (if any) python you have a working wxpython installation.

I run wikidpad from Anaconda (free) which has many advantages. The most important one is that
you do not have to mess with the system python. 

Tyler Tolley

unread,
Oct 15, 2018, 11:31:20 AM10/15/18
to wikidpad-devel
I tried with python2 and was getting a similar error. However this time I'm getting the following:
python WikidPad.py
Traceback (most recent call last):
  File "WikidPad.py", line 3, in <module>
    import WikidPadStarter
  File "/home/tyler/personal-repo/WikidPad/WikidPadStarter.py", line 35, in <module>
    builtins._ = N_
NameError: name 'N_' is not defined

Francois Savard

unread,
Oct 15, 2018, 12:11:03 PM10/15/18
to wikidpa...@googlegroups.com

What version of WikidPad is this? I don't think you mentioned it.

Björn Johansson

unread,
Oct 15, 2018, 12:12:45 PM10/15/18
to wikidpa...@googlegroups.com
More like this: 
 
(WIKIDPAD36) bjorn@bjorn-ThinkPad-T450s:~$ python2
Python 2.7.12 (default, Dec  4 2017, 14:50:18) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named wx
>>> 
[3]+  Stopped                 python2
(WIKIDPAD36) bjorn@bjorn-ThinkPad-T450s:~$ python3
Python 3.6.5 | packaged by conda-forge | (default, Apr  6 2018, 13:39:56) 
[GCC 4.8.2 20140120 (Red Hat 4.8.2-15)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> wx.__version__
'4.0.3'
>>>

The session above indicate that I have python2 and 3 installed but only wx on python3.
I think the last version of wikidpad need python3.


Tyler Tolley

unread,
Oct 15, 2018, 12:21:45 PM10/15/18
to wikidpa...@googlegroups.com
Right now, I'm on master. I've tried a few different versions but haven't been able to get any working. What version of the code should I use? What version of python/wxpython? Thanks for all your help!

Tyler Tolley

unread,
Oct 15, 2018, 12:22:45 PM10/15/18
to wikidpad-devel
python2
Python 2.7.15rc1 (default, Apr 15 2018, 21:51:34) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
>>> 
python3
Python 3.6.6 (default, Sep 12 2018, 18:26:19) 
[GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import wx
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'wx'
>>> 


Tyler Tolley

unread,
Oct 15, 2018, 4:12:49 PM10/15/18
to wikidpad-devel
Thanks for everyone's help. I ended up finding an alternative that is working for me. Thanks again!

Tyler Tolley

unread,
Oct 16, 2018, 11:31:33 AM10/16/18
to wikidpad-devel
Someone asked privately about what I did. I ended up using a different wiki solution that I also had trouble getting working but figured that problem out. 

Christian Ziemski

unread,
Oct 16, 2018, 2:03:16 PM10/16/18
to wikidpa...@googlegroups.com
On 16.10.18 at 17:31 Tyler Tolley wrote:

> Someone asked privately about what I did.

That was me.
The personal email was my mistake, sorry.

> I ended up using a different wiki solution

Oh, what a pity! ;-)

> that I also had trouble getting working but figured that problem
> out.

BTW: I've running WikidPad 2.3rc01 on Ubuntu and Fedora. With Python2.


Cheers

Christian

Graham Harris

unread,
Apr 9, 2019, 7:34:35 PM4/9/19
to wikidpad-devel
Just my personal notes. I use Linux Mint 18 which is an Ubuntu 16.04 derivative.

First install WikidPad’s dependencies - wxPython.
* recent linux versions (Linux Mint starting with Mint 17) offer python-wxgtk3.0, WikidPad will use it if available but on some systems (karaka, tangaroa) that causes WikidPad not to start, giving errors like:
    * /usr/lib/python2.7/dist-packages/gi/module.py:178:
        * Warning: cannot register existing type 'GtkWidget'
        * Warning: cannot add class private field to invalid type '<invalid>'
        * and so on for several errors all from the same line
        * I suspect python-wxgtk3.0 is supposed only to work with Python3
* Open up a terminal and
    $ sudo echo "deb http://archive.ubuntu.com/ubuntu trusty main universe" >> /etc/apt/sources.list # python-wxgtk2.8 comes from here
    $ sudo apt update
    $    sudo apt install python-wxversion python-wxgtk2.8
    $    sudo apt remove python-wxgtk3.0 # wikidpad won't work if this is installed too
This may not be sustainable, something else will require python-wxgtk3.0; but since python-wxgtk is not installed by default, perhaps don't worry.

You MUST run Wikidpad from a shell script which does something like:
    cd ~/bin/WikidPad; taskset -c 1 /usr/bin/python -O WikidPad.py
where taskset restricts the cores (python GIL performance); -c 1 specifies the second core
the path/to/python is explicit to avoid another python version (eg Anaconda) being called.

WikidPad (actually, Python) needs environment variable LANG set to a real locale eg en_NZ.UTF-8, not (eg) xfce.desktop
Somewhere I saw a suggestion that the codepage might have a bearing on WikdPad performance somewhere through the chain python- wxpython- wxwidgets- wxgtk- GTK


Michael Butscher

unread,
Apr 10, 2019, 7:51:41 PM4/10/19
to wikidpa...@googlegroups.com
On 10.04.2019 01:34, Graham Harris wrote:

> You MUST run Wikidpad from a shell script which does something like:
> cd ~/bin/WikidPad; taskset -c 1 /usr/bin/python -O WikidPad.py
> where taskset restricts the cores (python GIL performance); -c 1 specifies
> the second core

taskset shouldn't be necessary anymore since 2.3beta16 because there is an
option on first options page "Advanced" to "Run on CPU no." for setting the core
affinity (works for Windows and Linux, but not Mac).


Michael

Reply all
Reply to author
Forward
0 new messages