Edit: I keep saying acbfe instead of acbf because I am not totally awake yet so sorry for the mistakes. It should be acbf.
Code: Select all
# su spot
# whoami
spot
# inxi -Fxz
System: Host: biker Kernel: 3.10.32 i686 (32 bit, gcc: 4.7.1)
Desktop: JWM git-905 Distro: Slacko Puppy Linux Linux 3.10.32 [ arch]
Machine: System: Hewlett-Packard (portable) product: Presario CQ57 Notebook PC version: 068C110003204910000620100
Mobo: Hewlett-Packard model: 3577 version: 24.48
Bios: Hewlett-Packard version: F.42 date: 11/07/2011
CPU: Dual core AMD C-50 (-MCP-) cache: 1024 KB
flags: (lm nx pae sse sse2 sse3 sse4a ssse3 svm) bmips: 3993.66
Clock Speeds: 1: 1000.00 MHz 2: 1000.00 MHz
Graphics: Card: ATI Device 9804 bus-ID: 00:01.0
Display Server: X.Org 1.12.4 drivers: ati,radeon (unloaded: vesa) Resolution: 1366x768@60.0hz
GLX Renderer: Gallium 0.4 on AMD PALM GLX Version: 2.1 Mesa 8.0.4 Direct Rendering: Yes
Audio: Card: ATI SBx00 Azalia (Intel HDA)
driver: snd_hda_intel bus-ID: 00:14.2
Sound: Advanced Linux Sound Architecture ver: k3.10.32
Network: Card: Ralink Device 5390
driver: rt2800pci ver: 2.3.0 bus-ID: 07:00.0 chip-ID: -1
IF: wlan0 state: up speed: N/A duplex: N/A mac: <filter>
Card: Realtek RTL8101E/RTL8102E PCI Express Fast Ethernet controller
driver: r8169 ver: 2.3LK-NAPI port: 2000 bus-ID: 06:00.0 chip-ID: -2
IF: eth0 state: down mac: <filter>
Drives: HDD Total Size: 250.1GB (-) 1: id: /dev/sda model: WDC_WD2500BEVT size: 250.1GB
Partition:
RAID: No RAID devices detected - /proc/mdstat and md_mod kernel raid module present
Sensors: System Temperatures: cpu: 57.0C mobo: N/A gpu: 57.0
Fan Speeds (in rpm): cpu: N/A
Info: Processes: 94 Uptime: 2:35 Memory: 286.9/1623.5MB Init: SysVinit runlevel: 5
Gcc sys: 4.7.1 Client: Shell (sh) inxi: 2.1.1
#
I am running Slack0 5.7 inside of Windows 7 on this laptop using the .exe installer.
I pretty pretty much filled in the dependencies for installing acbfe which is
https://launchpad.net/acbf
Code: Select all
# ls
audacious-3.3.1.files Packages-puppy-slacko-official
audacious-plugins-3.3.1.files Packages-slackware-14.0-official
builtin_files Packages-slackware-14.0-patches
conky-1.9.0-i486.files Packages-slackware-14.0-salix
devx-only-installed-packages Packages-slackware-14.0-slacky
DISTRO_COMPAT_REPOS pil-1.1.7.files
DISTRO_PET_REPOS PKGS_HOMEPAGES
DISTRO_PKGS_SPECS PKGS_MANAGEMENT
flashplayer11-11.2.202.346.files PupClockset-2.2.1.files
gkrellm-2.3.5.files pycairo-1.8.10.files
gtk+3-3.4.4.files pygobject-2.28.6.files
imlib2-1.4.5.files pygtk-2.24.0.files
imlib2-1.4.5-i486.files python-lxml-2.3.4.files
layers-installed-packages sakura-2.4.2.files
lm_sensors-3.3.4.files searchmonkey-0.8.1-notabs.files
lua-5.1.5.files sfslist
lua-5.1.5-i486.files slocate-3.1.files
luvcview-0.2.6-1-Lucid.files tempiconsvg-0.21-i486.files
moc-2.5.0_alpha4.files tolua++-1.0.93.files
mpg123-1.14.4.files tolua++-1.0.93-i486.files
net-snmp-5.6.1.files UExtract-3.0.files
Packages-puppy-2-official UExtract-3.0.remove
Packages-puppy-3-official user-installed-packages
Packages-puppy-4-official v4l-utils-0.8.8.files
Packages-puppy-5-official wavpack-4.60.1.files
Packages-puppy-common-official woof-installed-packages
Packages-puppy-noarch-official xinvaders3d-1.31-i486.files
Packages-puppy-quirky-official Yweather-0.1a-Lucid.files
Packages-puppy-slacko14-official
Code: Select all
# cd /opt
# ls
bin share skype
# cd bin
# ls
acbfe
# cd /opt
# ls
bin share skype
# cd share
# ls
acbfe applications icons
# cd acbfe
# ls
images src
# cd src
# ls
acbfdocument.py constants.pyc fileprepare.pyc portability.pyc
acbfdocument.pyc filechooser.py main.py toolbar.py
acbfe.py filechooser.pyc main.pyc toolbar.pyc
constants.py fileprepare.py portability.py
Here is where this biker stumbles in Slack0 5.7 after trying to run acbfe
Code: Select all
# /opt/bin/acbfe
Traceback (most recent call last):
File "/opt/bin/acbfe", line 132, in <module>
run()
File "/opt/bin/acbfe", line 121, in run
gtk.window_set_default_icon(gtk.gdk.pixbuf_new_from_file(os.path.join(constants.ICON_PATH,'acbfe.png')))
AttributeError: 'module' object has no attribute 'ICON_PATH'
Well, I thought I could try this as it was lighter in dependencies. If worse comes to worse. I can
Code: Select all
# /usr/bin/python install.py
This script installs or uninstalls ACBF Editor on your system.
-------------------------------------------------------------------------------
Usage: install.py [OPTIONS] COMMAND
Commands:
install Install to /usr/
uninstall Uninstall from /usr/
Options:
--dir <directory> Install or uninstall in <directory>
instead of /usr/local
--no-mime Do not install the file manager thumbnailer
or register new mime type for x-acbf.
I used
Code: Select all
/usr/bin/python install.py install --dir /opt
If I get this working. Making a launcher should be pretty easy.
Just more info
Code: Select all
# slocate acbfe
/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/src/acbfe.py
/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/acbfe.desktop
/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/acbfe.svg
/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/48x48/acbfe.png
/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/32x32/acbfe.png
/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/acbfe.png
/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/16x16/acbfe.png
/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/22x22/acbfe.png
/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/acbfe.ico
/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/24x24/acbfe.png
/root/.config/acbfe
/initrd/pup_rw/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/src/acbfe.py
/initrd/pup_rw/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/acbfe.desktop
/initrd/pup_rw/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/acbfe.svg
/initrd/pup_rw/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/48x48/acbfe.png
/initrd/pup_rw/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/32x32/acbfe.png
/initrd/pup_rw/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/acbfe.png
/initrd/pup_rw/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/16x16/acbfe.png
/initrd/pup_rw/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/22x22/acbfe.png
/initrd/pup_rw/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/acbfe.ico
/initrd/pup_rw/root/my-documents/Comics/ACBFEditor/ACBFEditor-0.1_linux.tar.gz_extracted/images/24x24/acbfe.png
/initrd/pup_rw/root/.config/acbfe
/initrd/pup_rw/opt/share/acbfe
/initrd/pup_rw/opt/share/acbfe/src
/initrd/pup_rw/opt/share/acbfe/src/filechooser.py
/initrd/pup_rw/opt/share/acbfe/src/constants.py
/initrd/pup_rw/opt/share/acbfe/src/portability.py
/initrd/pup_rw/opt/share/acbfe/src/fileprepare.py
/initrd/pup_rw/opt/share/acbfe/src/toolbar.pyc
/initrd/pup_rw/opt/share/acbfe/src/constants.pyc
/initrd/pup_rw/opt/share/acbfe/src/fileprepare.pyc
/initrd/pup_rw/opt/share/acbfe/src/main.pyc
/initrd/pup_rw/opt/share/acbfe/src/portability.pyc
/initrd/pup_rw/opt/share/acbfe/src/acbfe.py
/initrd/pup_rw/opt/share/acbfe/src/acbfdocument.py
/initrd/pup_rw/opt/share/acbfe/src/acbfdocument.pyc
/initrd/pup_rw/opt/share/acbfe/src/toolbar.py
/initrd/pup_rw/opt/share/acbfe/src/main.py
/initrd/pup_rw/opt/share/acbfe/src/filechooser.pyc
/initrd/pup_rw/opt/share/acbfe/images
/initrd/pup_rw/opt/share/acbfe/images/acbfe.png
/initrd/pup_rw/opt/share/acbfe/images/acbf.svg
/initrd/pup_rw/opt/share/icons/hicolor/48x48/apps/acbfe.png
/initrd/pup_rw/opt/share/icons/hicolor/32x32/apps/acbfe.png
/initrd/pup_rw/opt/share/icons/hicolor/16x16/apps/acbfe.png
/initrd/pup_rw/opt/share/icons/hicolor/22x22/apps/acbfe.png
/initrd/pup_rw/opt/share/icons/hicolor/24x24/apps/acbfe.png
/initrd/pup_rw/opt/share/icons/hicolor/scalable/apps/acbfe.svg
/initrd/pup_rw/opt/share/applications/acbfe.desktop
/initrd/pup_rw/opt/bin/acbfe
/opt/share/acbfe
/opt/share/acbfe/src
/opt/share/acbfe/src/filechooser.py
/opt/share/acbfe/src/constants.py
/opt/share/acbfe/src/portability.py
/opt/share/acbfe/src/fileprepare.py
/opt/share/acbfe/src/toolbar.pyc
/opt/share/acbfe/src/constants.pyc
/opt/share/acbfe/src/fileprepare.pyc
/opt/share/acbfe/src/main.pyc
/opt/share/acbfe/src/portability.pyc
/opt/share/acbfe/src/acbfe.py
/opt/share/acbfe/src/acbfdocument.py
/opt/share/acbfe/src/acbfdocument.pyc
/opt/share/acbfe/src/toolbar.py
/opt/share/acbfe/src/main.py
/opt/share/acbfe/src/filechooser.pyc
/opt/share/acbfe/images
/opt/share/acbfe/images/acbfe.png
/opt/share/acbfe/images/acbf.svg
/opt/share/icons/hicolor/48x48/apps/acbfe.png
/opt/share/icons/hicolor/32x32/apps/acbfe.png
/opt/share/icons/hicolor/16x16/apps/acbfe.png
/opt/share/icons/hicolor/22x22/apps/acbfe.png
/opt/share/icons/hicolor/24x24/apps/acbfe.png
/opt/share/icons/hicolor/scalable/apps/acbfe.svg
/opt/share/applications/acbfe.desktop
/opt/bin/acbfe
Anyhows. Here is what the file says.
Code: Select all
#!/usr/bin/env python
"""ACBF Editor - Editor for ACBF documents
Copyright (C) 2011-2013 Robert Pastierovic
https://launchpad.net/~just-me
"""
# -------------------------------------------------------------------------
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 3 as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# -------------------------------------------------------------------------
import os
import sys
import gettext
import getopt
#Check for PyGTK and PIL dependencies.
try:
import pygtk
pygtk.require('2.0')
import gtk
assert gtk.gtk_version >= (2, 12, 0)
assert gtk.pygtk_version >= (2, 12, 0)
except AssertionError:
print "You don't have the required versions of GTK+ and/or PyGTK",
print 'installed.'
print 'Installed GTK+ version is: %s' % (
'.'.join([str(n) for n in gtk.gtk_version]))
print 'Required GTK+ version is: 2.12.0 or higher\n'
print 'Installed PyGTK version is: %s' % (
'.'.join([str(n) for n in gtk.pygtk_version]))
print 'Required PyGTK version is: 2.12.0 or higher'
sys.exit(1)
except ImportError:
print 'PyGTK version 2.12.0 or higher is required to run Comix.'
print 'No version of PyGTK was found on your system.'
sys.exit(1)
try:
import Image
assert Image.VERSION >= '1.1.5'
except AssertionError:
print "You don't have the required version of the Python Imaging",
print 'Library (PIL) installed.'
print 'Installed PIL version is: %s' % Image.VERSION
print 'Required PIL version is: 1.1.5 or higher'
sys.exit(1)
except ImportError:
print 'Python Imaging Library (PIL) 1.1.5 or higher is required.'
print 'No version of the Python Imaging Library was found on your',
print 'system.'
sys.exit(1)
import constants
import main
def print_help():
print 'Usage:'
print ' acbfe [OPTION...] [PATH_TO_FILENAME]'
print '\nView acbf comic book documents.\n'
print 'Options:'
print ' -h, --help Show this help and exit.'
print ' -f, --fullscreen Start the application in fullscreen mode.'
sys.exit(1)
def run():
"""Run the program."""
# Use gettext translations as found in the source dir, otherwise based on
# the install path.
"""print exec_path
print constants.DATA_DIR
print constants.CONFIG_DIR
print constants.HOME_DIR"""
if os.path.isdir(os.path.join(constants.BASE_DIR, 'messages')):
gettext.install('acbfe', os.path.join(constants.BASE_DIR, 'messages'),
unicode=True)
else:
gettext.install('acbfe', os.path.join(constants.BASE_DIR, 'share/locale'),
unicode=True)
fullscreen = False
show_library = False
open_path = None
open_page = 1
try:
opts, args = getopt.gnu_getopt(sys.argv[1:], 'fh',
['fullscreen', 'help'])
except getopt.GetoptError:
print_help()
for opt, value in opts:
if opt in ('-h', '--help'):
print_help()
elif opt in ('-f', '--fullscreen'):
fullscreen = True
# Create data (.local/share/acbfe) and config (.config/acbfe) directories
if not os.path.exists(constants.DATA_DIR):
os.makedirs(constants.DATA_DIR, 0700)
if not os.path.exists(constants.CONFIG_DIR):
os.makedirs(constants.CONFIG_DIR, 0700)
if len(args) >= 1:
open_path = os.path.abspath(args[0])
# set main window icon
gtk.window_set_default_icon(gtk.gdk.pixbuf_new_from_file(os.path.join(constants.ICON_PATH,'acbfe.png')))
# draw main window
window = main.MainWindow(fullscreen=fullscreen, open_path=open_path, open_page=open_page)
try:
gtk.main()
except KeyboardInterrupt:
window.terminate_program()
if __name__ == '__main__':
run()
Line 132 error isgtk.window_set_default_icon(gtk.gdk.pixbuf_new_from_file(os.path.join(constants.ICON_PATH,'acbfe.png')))
run()
I hope I supplied enough info.