Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
fofix-4.0.0_alpha1 fail launch
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
barul
Guru
Guru


Joined: 28 May 2010
Posts: 429
Location: France

PostPosted: Sun Jul 03, 2011 7:05 am    Post subject: fofix-4.0.0_alpha1 fail launch Reply with quote

Hi.
I just emerged fofix-4.0.0_alpha1 using this ebuild:
Code:
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

MY_P="${P//_/}"

EAPI="2"
PYTHON_DEPEND="2:2.6:2.7"

inherit eutils python games

DESCRIPTION="A game of musical skill and fast fingers"
HOMEPAGE="http://code.google.com/p/fofix"
SRC_URI="http://fofix.googlecode.com/files/${MY_P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="dev-libs/glib:2
   dev-python/cython
   media-libs/libogg
   media-libs/libtheora
   media-video/ffmpeg
   virtual/opengl"

RDEPEND="${DEPEND}
   dev-python/pygame
   dev-python/pyopengl
   dev-python/numpy
   dev-python/imaging
   dev-python/pyogg
   dev-python/pyvorbis
   dev-python/pysqlite:2
   dev-python/pyxml"

S="${WORKDIR}/${MY_P}"

pkg_setup() {
   SRC_DIR="$(games_get_libdir)/${PN}"
   DATA_DIR="${GAMES_DATADIR}/${PN}"
}

src_prepare() {
   # Use our own data directory.
   sed -i "s:os\.path\.join(\"\.\.\", \"data\"):'${DATA_DIR//'/\\'}':g" src/Version.py || die
}

src_compile() {
   cd src || die
   python setup.py build_ext --inplace || die
}

src_install() {
   # We have to ignore .pyc files.
   insinto "${SRC_DIR}"
   doins src/*.py src/*.pot src/*.so || die
   insinto "${SRC_DIR}/midi"
   doins src/midi/*.py || die

   # We don't need setup.py any more.
   rm "${D}${SRC_DIR}/setup.py" || die

   # Make FoFiX.py executable so we can start via symlink.
   chmod a+x "${D}${SRC_DIR}/FoFiX.py" || die

   # Create that symlink.
   dodir "${GAMES_BINDIR}" || die
   ln -s "${SRC_DIR}/FoFiX.py" "${D}${GAMES_BINDIR}/${PN}" || die

   insinto "${DATA_DIR}"
   doins -r data/* || die

   newicon data/fofix_icon.png "${PN}.png" || die
   make_desktop_entry "${PN}" "Frets on Fire X" || die

   dodoc AUTHORS CREDITS README doc/{Features-Manual.txt,Notices.txt,RunningFromSource.mkd} \
      doc/{"FOF Help.chm","FoFiX Options.pdf"} || die

   prepgamesdirs
}

pkg_postinst() {
   python_mod_optimize "${SRC_DIR}"
   games_pkg_postinst
}

pkg_postrm() {
   python_mod_cleanup "${SRC_DIR}"
}


And when I want to launch it (via $ fofix) it says:
Code:
fofix
Traceback (most recent call last):
  File "/usr/games/bin/fofix", line 111, in <module>
    from GameEngine import GameEngine
  File "/usr/games/lib64/fofix/GameEngine.py", line 44, in <module>
    from Input import Input, KeyListener, SystemEventListener
  File "/usr/games/lib64/fofix/Input.py", line 56, in <module>
    import Player
  File "/usr/games/lib64/fofix/Player.py", line 29, in <module>
    import Song
  File "/usr/games/lib64/fofix/Song.py", line 43, in <module>
    import VFS
  File "/usr/games/lib64/fofix/VFS.py", line 52, in <module>
    import sqlite3
ImportError: No module named sqlite3


Does anyone know what I've to do? Thanks in advance!
_________________
Save the penguins, burn the flags!
Back to top
View user's profile Send private message
barul
Guru
Guru


Joined: 28 May 2010
Posts: 429
Location: France

PostPosted: Mon Jul 04, 2011 8:13 am    Post subject: Reply with quote

Ok, I think I've got the solution, simply add sqlite to use USE of dev-lang/python. I'm compiling, and I come back to say if it was that.


Edit : Well… no. It solve the sqlite issue, it also brought more issues :(

Here's the log :
Code:
barul@nevroz ~ $ fofix
Traceback (most recent call last):
  File "/usr/games/bin/fofix", line 111, in <module>
    from GameEngine import GameEngine
  File "/usr/games/lib64/fofix/GameEngine.py", line 44, in <module>
    from Input import Input, KeyListener, SystemEventListener
  File "/usr/games/lib64/fofix/Input.py", line 56, in <module>
    import Player
  File "/usr/games/lib64/fofix/Player.py", line 219, in <module>
    VFS.mount(VFS.resolveRead('/data/users'), 'users')
  File "/usr/games/lib64/fofix/VFS.py", line 175, in resolveRead
    return mount.resolveRead(frag)
  File "/usr/games/lib64/fofix/VFS.py", line 76, in resolveRead
    raise OSError(errno.ENOENT, os.strerror(errno.ENOENT))
OSError: [Errno 2] No such file or directory


I know it says no such file or directory, but where does this file can be??
_________________
Save the penguins, burn the flags!
Back to top
View user's profile Send private message
veal
n00b
n00b


Joined: 08 May 2003
Posts: 47

PostPosted: Tue Aug 30, 2011 6:03 pm    Post subject: Reply with quote

I'm getting the same error :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum