FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2016
    Location
    Norway
    Posts
    2

    Problem with Trelby on Fedora 23 - inavlid wxWidgets installed

    Hello,

    I have just installed a fresh install of Fedora 23 and I am trying to install Trelby (http://www.trelby.org/).

    I have installed the repo from this site: https://copr.fedoraproject.org/coprs...cks510/Trelby/
    Here is a dump of my terminal during the installation:

    Code:
    [root@Elyssa charlie]# dnf copr enable barracks510/Trelby
    
    You are about to enable a Copr repository. Please note that this
    repository is not part of the main Fedora distribution, and quality
    may vary.
    
    The Fedora Project does not exercise any power over the contents of
    this repository beyond the rules outlined in the Copr FAQ at
    <https://fedorahosted.org/copr/wiki/UserDocs#WhatIcanbuildinCopr>, and
    packages are not held to any quality or security level.
    
    Please do not file bug reports about these packages in Fedora
    Bugzilla. In case of problems, contact the owner of this repository.
    
    Do you want to continue? [y/N]: y
    Repository successfully enabled.
    [root@Elyssa charlie]# dnf install trelby
    Last metadata expiration check performed 0:08:27 ago on Sat Jan  2 22:06:33 2016.
    Dependencies resolved.
    ================================================================================
     Package                  Arch     Version           Repository            Size
    ================================================================================
    Installing:
     gstreamer                x86_64   0.10.36-13.fc23   fedora               989 k
     gstreamer-plugins-base   x86_64   0.10.36-13.fc23   fedora               1.3 M
     gstreamer-tools          x86_64   0.10.36-13.fc23   fedora                32 k
     libtomcrypt              x86_64   1.17-25.fc23      fedora               229 k
     libtommath               x86_64   0.42.0-6.fc23     fedora                39 k
     python-crypto            x86_64   2.6.1-7.fc23      fedora               468 k
     python-cssselect         noarch   0.9.1-6.fc23      fedora                62 k
     python-lxml              x86_64   3.4.4-1.fc23      fedora               903 k
     trelby                   noarch   2.2-3.1           barracks510-Trelby   1.4 M
     wxGTK3-gl                x86_64   3.0.2-11.fc23     updates               36 k
     wxGTK3-media             x86_64   3.0.2-11.fc23     updates               57 k
     wxPython                 x86_64   3.0.2.0-7.fc23    updates              8.3 M
    
    Transaction Summary
    ================================================================================
    Install  12 Packages
    
    Total download size: 14 M
    Installed size: 58 M
    Is this ok [y/N]: y
    Downloading Packages:
    (1/12): python-crypto-2.6.1-7.fc23.x86_64.rpm   1.2 MB/s | 468 kB     00:00    
    (2/12): python-lxml-3.4.4-1.fc23.x86_64.rpm     1.3 MB/s | 903 kB     00:00    
    (3/12): python-cssselect-0.9.1-6.fc23.noarch.rp 477 kB/s |  62 kB     00:00    
    (4/12): libtomcrypt-1.17-25.fc23.x86_64.rpm     519 kB/s | 229 kB     00:00    
    (5/12): libtommath-0.42.0-6.fc23.x86_64.rpm     532 kB/s |  39 kB     00:00    
    (6/12): wxGTK3-gl-3.0.2-11.fc23.x86_64.rpm      290 kB/s |  36 kB     00:00    
    (7/12): wxGTK3-media-3.0.2-11.fc23.x86_64.rpm    50 kB/s |  57 kB     00:01    
    (8/12): wxPython-3.0.2.0-7.fc23.x86_64.rpm      2.1 MB/s | 8.3 MB     00:03    
    (9/12): gstreamer-plugins-base-0.10.36-13.fc23. 1.9 MB/s | 1.3 MB     00:00    
    (10/12): gstreamer-tools-0.10.36-13.fc23.x86_64 406 kB/s |  32 kB     00:00    
    (11/12): gstreamer-0.10.36-13.fc23.x86_64.rpm   236 kB/s | 989 kB     00:04    
    (12/12): trelby-2.2-3.1.noarch.rpm              150 kB/s | 1.4 MB     00:09    
    --------------------------------------------------------------------------------
    Total                                           1.1 MB/s |  14 MB     00:12     
    Running transaction check
    Transaction check succeeded.
    Running transaction test
    Transaction test succeeded.
    Running transaction
      Installing  : gstreamer-tools-0.10.36-13.fc23.x86_64                     1/12 
      Installing  : gstreamer-0.10.36-13.fc23.x86_64                           2/12 
      Installing  : gstreamer-plugins-base-0.10.36-13.fc23.x86_64              3/12 
      Installing  : wxGTK3-media-3.0.2-11.fc23.x86_64                          4/12 
      Installing  : wxGTK3-gl-3.0.2-11.fc23.x86_64                             5/12 
      Installing  : wxPython-3.0.2.0-7.fc23.x86_64                             6/12 
      Installing  : libtommath-0.42.0-6.fc23.x86_64                            7/12 
      Installing  : libtomcrypt-1.17-25.fc23.x86_64                            8/12 
      Installing  : python-crypto-2.6.1-7.fc23.x86_64                          9/12 
      Installing  : python-cssselect-0.9.1-6.fc23.noarch                      10/12 
      Installing  : python-lxml-3.4.4-1.fc23.x86_64                           11/12 
      Installing  : trelby-2.2-3.1.noarch                                     12/12 
      Verifying   : trelby-2.2-3.1.noarch                                      1/12 
      Verifying   : python-crypto-2.6.1-7.fc23.x86_64                          2/12 
      Verifying   : python-lxml-3.4.4-1.fc23.x86_64                            3/12 
      Verifying   : libtomcrypt-1.17-25.fc23.x86_64                            4/12 
      Verifying   : python-cssselect-0.9.1-6.fc23.noarch                       5/12 
      Verifying   : libtommath-0.42.0-6.fc23.x86_64                            6/12 
      Verifying   : wxPython-3.0.2.0-7.fc23.x86_64                             7/12 
      Verifying   : wxGTK3-gl-3.0.2-11.fc23.x86_64                             8/12 
      Verifying   : wxGTK3-media-3.0.2-11.fc23.x86_64                          9/12 
      Verifying   : gstreamer-0.10.36-13.fc23.x86_64                          10/12 
      Verifying   : gstreamer-plugins-base-0.10.36-13.fc23.x86_64             11/12 
      Verifying   : gstreamer-tools-0.10.36-13.fc23.x86_64                    12/12 
    
    Installed:
      gstreamer.x86_64 0.10.36-13.fc23                                              
      gstreamer-plugins-base.x86_64 0.10.36-13.fc23                                 
      gstreamer-tools.x86_64 0.10.36-13.fc23                                        
      libtomcrypt.x86_64 1.17-25.fc23                                               
      libtommath.x86_64 0.42.0-6.fc23                                               
      python-crypto.x86_64 2.6.1-7.fc23                                             
      python-cssselect.noarch 0.9.1-6.fc23                                          
      python-lxml.x86_64 3.4.4-1.fc23                                               
      trelby.noarch 2.2-3.1                                                         
      wxGTK3-gl.x86_64 3.0.2-11.fc23                                                
      wxGTK3-media.x86_64 3.0.2-11.fc23                                             
      wxPython.x86_64 3.0.2.0-7.fc23                                                
    
    Complete!
    [root@Elyssa charlie]#
    After install I click on the Trelby icon and get the following error:
    Code:
    You seem to have an invalid version
    (3.0.2.0) of wxWidgets installed. This
    program needs version 2.8.
    It is strange because on the https://copr.fedoraproject.org/coprs...cks510/Trelby/ it says it is supported for Fedora 23 ?

    Any help on this would be much appreciated. Thank you.

  2. #2
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,570

    Re: Problem with Trelby on Fedora 23 - inavlid wxWidgets installed

    This is the kind of thing that can happen when someone successfully builds andrpm package from somewhat old source code and doesn't bother to actually text the software his/her self. I found the trelby-2.2-3.1.src.rpm package and built an rpm from it myself on F23. Compiled just fine and the rpm package installed just fine.

    But I hit the same warning box as you when I tried to run the program. I searched into the source code (python) to find where the required version of wxWidgets is defined and found in it trelby.py.
    Code:
    $ grep -B10 -A10 "program needs version" trelby.py
            event.Skip()
    
    class MyApp(wx.App):
    
        def OnInit(self):
            global cfgGl, mainFrame, gd
    
            if (wx.MAJOR_VERSION != 2) or (wx.MINOR_VERSION != 8):
                wx.MessageBox("You seem to have an invalid version\n"
                              "(%s) of wxWidgets installed. This\n"
                              "program needs version 2.8." %
                              wx.VERSION_STRING, "Error", wx.OK)
                sys.exit()
    
            misc.init()
            util.init()
    
            gd = GlobalData()
    
            if misc.isWindows:
                major = sys.getwindowsversion()[0]
    In other words, it demands version 2.8 and 2.8 explicitly. Modifying the version number in the code above might possibly solve the issue. I may play with doing that, and if I do I'll let you know the results here.
    Last edited by PabloTwo; 3rd January 2016 at 04:53 AM.

  3. #3
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,570

    Re: Problem with Trelby on Fedora 23 - inavlid wxWidgets installed

    Well, I jiggered the spec file to change the 2.8 version to 3.0 and recompiled into a new rpm. Installed it and that got rid of the 2.8 version warning box, but it still wouldn't run. Launching from the command line, with most of the initial "GTK-Warning:" lines removed, I got:
    Code:
    (trelby.py:8585): Gtk-WARNING **: Theme parsing error: gnome-applications.css:72:60: 'px' is not a valid unit.
    
    (trelby.py:8585): Gtk-WARNING **: Theme parsing error: gnome-applications.css:88:66: 'px' is not a valid unit.
    
    (trelby.py:8585): Gtk-WARNING **: Theme parsing error: gnome-applications.css:97:60: 'px' is not a valid unit.
    
    (trelby.py:8585): Gtk-WARNING **: Theme parsing error: gnome-applications.css:104:60: 'px' is not a valid unit.
    Traceback (most recent call last):
      File "trelby.py", line 2697, in <module>
        main()
      File "trelby.py", line 2694, in main
        myApp = MyApp(0)
      File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py", line 8628, in __init__
        self._BootstrapApp()
      File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_core.py", line 8196, in _BootstrapApp
        return _core_.PyApp__BootstrapApp(*args, **kwargs)
      File "trelby.py", line 2646, in OnInit
        refreshGuiConfig()
      File "trelby.py", line 66, in refreshGuiConfig
        cfgGui = config.ConfigGui(cfgGl)
      File "/usr/share/trelby/src/config.py", line 1349, in __init__
        nfi.SetEncoding(wx.FONTENCODING_ISO8859_1)
      File "/usr/lib64/python2.7/site-packages/wx-3.0-gtk3/wx/_gdi.py", line 1947, in SetEncoding
        return _gdi_.NativeFontInfo_SetEncoding(*args, **kwargs)
    wx._core.PyAssertionError: C++ assertion "Assert failure" failed at ./src/unix/fontutil.cpp(374) in SetEncoding(): not implemented: Pango encoding is always UTF8

  4. #4
    Join Date
    Jan 2016
    Location
    Norway
    Posts
    2

    Re: Problem with Trelby on Fedora 23 - inavlid wxWidgets installed

    Thank you for trying, I appreciate it.

    I found this Github thread: https://github.com/oskusalerma/trelby/issues/354 where Trelby is supposed to be updated to work with wxPython 3.0 ? Although they are talking about Debian.

    I also had a friend over to try to install wxWidgets 2.8 on this computer but it seems it is not supported in either Fedora 22 or Fedora 23.

  5. #5
    PabloTwo's Avatar
    PabloTwo is offline "Registered User" T-Shirt Winner
    Join Date
    Mar 2007
    Location
    Seville, FL
    Posts
    7,570

    Re: Problem with Trelby on Fedora 23 - inavlid wxWidgets installed

    I read the link you posted, then pulled down the newest source code (Dec 4 2015), unzipped it and had a look. Should work fine on F23 now, though I haven't tested it yet. You could install it from the source code using the instructions in the INSTALL file, which still makes reference to requiring wxWidgets 2.8, but checking some of the code, I see:
    Code:
    $ grep -B5 -A5 "program needs version" trelby.py
            global cfgGl, mainFrame, gd
    
            if (wx.MAJOR_VERSION != 3) or (wx.MINOR_VERSION != 0):
                wx.MessageBox("You seem to have an invalid version\n"
                              "(%s) of wxWidgets installed. This\n"
                              "program needs version 3.0." %
                              wx.VERSION_STRING, "Error", wx.OK)
                sys.exit()
    
            misc.init()
            util.init()
    Just click on the "Download ZIP" button to get the source code here.

    Edit: Just tested the install from source code (no rpm package) and it works. Using the defaults, everything installs to /opt/trelby/. Doing it this way doesn't get you a menu item, but you can easily manually fix that by copying the trelby.desktop file from the source code to /usr/share/applications/ and modifying the Exec and Icon entries in that file to point to the actual locations (/opt/trelby/bin/trelby and /opt/trelby/resources/icon256.png repectively).
    Last edited by PabloTwo; 3rd January 2016 at 05:29 PM.

Similar Threads

  1. wxWidgets 2.8 to wxWidgets 3.0: wxLocale problems
    By TheBigRed in forum Programming & Packaging
    Replies: 1
    Last Post: 29th December 2015, 09:15 PM
  2. fedora 20, which version of wxWidgets to choose?
    By matiz in forum Using Fedora
    Replies: 0
    Last Post: 27th April 2014, 08:21 AM
  3. installing Trelby (Fedora 15)
    By Panipal2005 in forum EOL (End Of Life) Versions
    Replies: 1
    Last Post: 10th March 2014, 03:24 PM
  4. I need some help with wxWidgets....?!?!?
    By Stephengp in forum Using Fedora
    Replies: 3
    Last Post: 9th May 2009, 08:38 AM
  5. wxwidgets
    By skalaholic in forum Using Fedora
    Replies: 1
    Last Post: 8th November 2005, 08:15 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •