Specs:
Code:
# 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
#
Just using spot so inxi report does not throw a n/a for root on glx info readout.
I am running Puppy Linux Slack0 5.7 inside of Windows 7 on this laptop using the .exe installer.
I filled in the dependencies for installing acbf from Salix repos in Slack0 package manager first before running The below command in code tags.
https://launchpad.net/acbf
It is written in python and to show how and where installed.
Code:
/usr/bin/python install.py install --dir /opt
installed files
Code:
# 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
My error message when I run is
Code:
# /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'
Line 121 is
Code:
gtk.window_set_default_icon(gtk.gdk.pixbuf_new_from_file(os.path.join(constants.ICON_PATH,'acbfe.png')))
Line 132 is
Full text file is
Code:
#!/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()
I am just a Linux using biker with no programming language skillset.
I know my way around the file system and can edit files, (first making sure to make a backup of original 1st).
So I guess I need to know what I am missing, by the error message. A symlink or a file edit? IF Any more info is needed. I will supply it.
I hope I supplied enough info.
If worse comes to worse. I can uninstall if I have to
Code:
# /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.
Code:
# ls -l /usr/bin/python
lrwxrwxrwx 1 root root 9 Aug 6 2013 /usr/bin/python -> python2.7