From: Michael K. <koe...@ho...> - 2013-08-06 17:24:31
|
Thanks, you got me on the right track. I didn't edit any files as you suggested but I did 'eselect python set 1' to activate python 2.7 on my system. After that i got this error when running fpdb: ImportError: No module named Tkinter 'emerge python' with the 'tk' USE flag set solved this problem. Now a GUI window showed up with this error message: File not found: wnck The solution was 'emerge libwnck-python'. In the end I edited the ebuild, so that portage would take care of those dependency problems: 1. add these 2 lines before 'inherit eutils games': PYTHON_DEPEND="2:2.6" PYTHON_USE_WITH="tk" 2. add this line to the RDEPEND section: dev-python/libwnck-python Im not an expert, this is the first time i edited an ebuild but so far it works :) On Mon, 5 Aug 2013 17:34:58 +0100 gimick <bb...@gm...> wrote: > hello, almost certainly the default python version on your distribution is > python3. fpdb needs python2.6 or 2.7. > > Probably easiest if you install python 2.7 and then edit the fpdb py files > to change the location of python. > > If you look in run_fpdb.py, just now, fpdb uses this: > #!/usr/bin/env python > > (which is "correct" for debian linux) > > My guess is you will need to edit this to say > #!/usr/bin/env python2 > > From memory, the following files will need to be changed on your local > system: > run_fprdb.py > pyfpdb/fpdb.pyw > pyfpdb/HUD_main.pyw > pyfpdb/DetectInstalledSites.py > > > Let me know if you still are having problems. > Steve~ > > > > > On Mon, Aug 5, 2013 at 10:43 AM, Michael Körner <koe...@ho... > > wrote: > > > Hello, > > > > I have installed fpdb on my gentoo system with the live ebuild found in > > the tarball. When i try to run it I get the following error: > > > > File "fpdb_prerun.py", line 95 > > print message > > ^ > > SyntaxError: invalid syntax > > > > Any idea how i can resolve this? > > > > > > ------------------------------------------------------------------------------ > > Get your SQL database under version control now! > > Version control is standard for application code, but databases havent > > caught up. So what steps can you take to put your SQL databases under > > version control? Why should you start doing it? Read more to find out. > > http://pubads.g.doubleclick.net/gampad/clk?id=49501711&iu=/4140/ostg.clktrk > > _______________________________________________ > > Fpdb-main mailing list > > Fpd...@li... > > https://lists.sourceforge.net/lists/listinfo/fpdb-main > > |