Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 436834 - [fm-overlay overlay] dev-util/ninja-ide fails to execute with QString error
Summary: [fm-overlay overlay] dev-util/ninja-ide fails to execute with QString error
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Julian Ospald
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-01 21:15 UTC by Aaron Burnett
Modified: 2012-10-09 21:29 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
ninja-ide-9999.ebuild from fm-overlay (ninja-ide-9999.ebuild,632 bytes, text/plain)
2012-10-01 21:15 UTC, Aaron Burnett
Details
ninja-ide-2.1.1.ebuild (ninja-ide-2.1.1.ebuild,824 bytes, text/plain)
2012-10-08 17:05 UTC, Aaron Burnett
Details
ninja-ide.desktop (ninja-ide.desktop,292 bytes, text/plain)
2012-10-08 17:05 UTC, Aaron Burnett
Details
ninja-ide-2.1.1.ebuild (ninja-ide-2.1.1.ebuild,938 bytes, text/plain)
2012-10-08 21:29 UTC, Aaron Burnett
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Aaron Burnett 2012-10-01 21:15:10 UTC
Created attachment 325496 [details]
ninja-ide-9999.ebuild from fm-overlay

The dev-util/ninja-ide ebuild (from the fm-overlay overlay) successfully builds, but fails upon program execution with the following error:

----

Traceback (most recent call last):
  File "/usr/bin/ninja-ide", line 9, in <module>
    load_entry_point('NINJA-IDE==2.1.1', 'gui_scripts', 'ninja-ide')()
  File "/usr/lib64/python2.7/site-packages/ninja_ide/__init__.py", line 51, in setup_and_run
    from ninja_ide import core
  File "/usr/lib64/python2.7/site-packages/ninja_ide/core/__init__.py", line 29, in <module>
    from ninja_ide.core.core import run_ninja
  File "/usr/lib64/python2.7/site-packages/ninja_ide/core/core.py", line 23, in <module>
    from ninja_ide import resources
  File "/usr/lib64/python2.7/site-packages/ninja_ide/resources.py", line 42, in <module>
    HOME_NINJA_PATH = os.path.join(HOME_PATH, ".ninja_ide")
  File "/usr/lib64/python2.7/posixpath.py", line 68, in join
    elif path == '' or path.endswith('/'):
AttributeError: 'QString' object has no attribute 'endswith'

----

Ninja-ide should be using the API2 of PyQT4, in which QString should not exist, as is my understanding.

Python: 2.7.3
PyQT4: 4.9.4
Comment 1 Aaron Burnett 2012-10-08 17:05:06 UTC
Created attachment 326024 [details]
ninja-ide-2.1.1.ebuild
Comment 2 Aaron Burnett 2012-10-08 17:05:28 UTC
Created attachment 326026 [details]
ninja-ide.desktop
Comment 3 Aaron Burnett 2012-10-08 17:06:59 UTC
I verified that the problem is upstream.  They also decided to port the program to python 3, which means a working version for the ninja-ide-9999.ebuild may take some time.  

I have attached an ebuild for 2.1.1, which should work correctly.  There was no PyQT4 API stuff in the 2.1.1 build.  I also included the ninja-ide.desktop file (which should be placed in the subfolder "files") that is mostly from the original author, with a few minor changes.  The 2.1.1 ebuild is also based on the original author's ebuild, with some changes.

I don't suppose there is any chance this could be added to the main portage tree?
Comment 4 Aaron Burnett 2012-10-08 21:29:55 UTC
Created attachment 326040 [details]
ninja-ide-2.1.1.ebuild

Attatched is a revised version of the ninja-ide-2.1.1.ebuild with lots of help from #gentoo-sunrise and #gentoo-dev-help.
Comment 5 Julian Ospald 2012-10-09 21:29:09 UTC
+*ninja-ide-2.1.1 (09 Oct 2012)
+
+  09 Oct 2012; Julian Ospald <hasufell@gentoo.org> +ninja-ide-2.1.1.ebuild,
+  +files/ninja-ide-2.1.1-lang.patch, +metadata.xml:
+  initial import with Aaron Burnett wrt #436834