upgradering til 12,10
-
- Indlæg: 461
- Tilmeldt: 5. dec 2010, 20:23
- IRC nickname: samarit
- Geografisk sted: Præstø
Re: upgradering til 12,10
er udført, ville så uploade odt fil men den er heller ikke tilladt selvom den kun hedder 1.odt. ser lige om det virker senere
-
- Indlæg: 461
- Tilmeldt: 5. dec 2010, 20:23
- IRC nickname: samarit
- Geografisk sted: Præstø
Re: upgradering til 12,10
Kode: Vælg alt
torben@torben-H61M-D2H-USB3:~$ import sys
Programmet "import" kan findes i de følgende pakker:
* imagemagick
* graphicsmagick-imagemagick-compat
Prøv: sudo apt-get install <valgt pakke>
torben@torben-H61M-D2H-USB3:~$ import os
Programmet "import" kan findes i de følgende pakker:
* imagemagick
* graphicsmagick-imagemagick-compat
Prøv: sudo apt-get install <valgt pakke>
torben@torben-H61M-D2H-USB3:~$ import os.path
Programmet "import" kan findes i de følgende pakker:
* imagemagick
* graphicsmagick-imagemagick-compat
Prøv: sudo apt-get install <valgt pakke>
torben@torben-H61M-D2H-USB3:~$ import getopt
Programmet "import" kan findes i de følgende pakker:
* imagemagick
* graphicsmagick-imagemagick-compat
Prøv: sudo apt-get install <valgt pakke>
torben@torben-H61M-D2H-USB3:~$ import signal
Programmet "import" kan findes i de følgende pakker:
* imagemagick
* graphicsmagick-imagemagick-compat
Prøv: sudo apt-get install <valgt pakke>
torben@torben-H61M-D2H-USB3:~$ import operator
Programmet "import" kan findes i de følgende pakker:
* imagemagick
* graphicsmagick-imagemagick-compat
Prøv: sudo apt-get install <valgt pakke>
torben@torben-H61M-D2H-USB3:~$ import time
Programmet "import" kan findes i de følgende pakker:
* imagemagick
* graphicsmagick-imagemagick-compat
Prøv: sudo apt-get install <valgt pakke>
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ # Local
torben@torben-H61M-D2H-USB3:~$ from base.g import *
from: can't read /var/mail/base.g
torben@torben-H61M-D2H-USB3:~$ from base import utils, device, tui, module, pkit, services
from: can't read /var/mail/base
torben@torben-H61M-D2H-USB3:~$ from installer import pluginhandler
from: can't read /var/mail/installer
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ # Temp values for testing; May not be needed
torben@torben-H61M-D2H-USB3:~$ username = ""
username: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ device_uri = ""
device_uri: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ printer_name = ""
printer_name: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ LOG_FILE = "/var/log/hp/hplip_ac.log"
LOG_FILE: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ DBUS_SERVICE='com.hplip.StatusService'
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ ##### METHODS #####
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ # Send dbus event to hpssd on dbus system bus
torben@torben-H61M-D2H-USB3:~$ def send_message(device_uri, printer_name, event_code, username, job_id, title, pipe_name=''):
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ log.debug("send_message() entered")
bash: syntax error near unexpected token `"send_message() entered"'
torben@torben-H61M-D2H-USB3:~$ args = [device_uri, printer_name, event_code, username, job_id, title, pipe_name]
Programmet "args" er ikke installeret lige nu. Du kan installere det ved at taste:
sudo apt-get install ucommon-utils
torben@torben-H61M-D2H-USB3:~$ msg = lowlevel.SignalMessage('/', DBUS_SERVICE, 'Event')
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ msg.append(signature='ssisiss', *args)
bash: syntax error near unexpected token `signature='ssisiss','
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ SystemBus().send_message(msg)
bash: syntax error near unexpected token `.send_message'
torben@torben-H61M-D2H-USB3:~$ log.debug("send_message() returning")
bash: syntax error near unexpected token `"send_message() returning"'
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ # Plugin installation
torben@torben-H61M-D2H-USB3:~$ def install_Plugin(systray_running_status, run_directly=False):
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ if run_directly:
> if not utils.canEnterGUIMode4():
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ log.error("%s requires GUI support . Is Qt4 installed?" % __mod__)
bash: syntax error near unexpected token `"%s requires GUI support . Is Qt4 installed?"'
torben@torben-H61M-D2H-USB3:~$ sys.exit(1)
bash: syntax error near unexpected token `1'
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ try:
try:: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ from PyQt4.QtGui import QApplication, QMessageBox
from: can't read /var/mail/PyQt4.QtGui
torben@torben-H61M-D2H-USB3:~$ from ui4.plugindiagnose import PluginDiagnose
from: can't read /var/mail/ui4.plugindiagnose
torben@torben-H61M-D2H-USB3:~$ from installer import core_install
from: can't read /var/mail/installer
torben@torben-H61M-D2H-USB3:~$ except ImportError:
Programmet "except" er ikke installeret lige nu. Du kan installere det ved at taste:
sudo apt-get install qmail
torben@torben-H61M-D2H-USB3:~$ log.error("Unable to load Qt4 support. Is it installed?")
bash: syntax error near unexpected token `"Unable to load Qt4 support. Is it installed?"'
torben@torben-H61M-D2H-USB3:~$ sys.exit(1)
bash: syntax error near unexpected token `1'
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ app = QApplication(sys.argv)
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ plugin = PLUGIN_REQUIRED
plugin: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ plugin_reason = PLUGIN_REASON_NONE
plugin_reason: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ ok, sudo_ok = pkit.run_plugin_command(plugin == PLUGIN_REQUIRED, plugin_reason)
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ if not ok or not sudo_ok:
> log.error("Failed to install plug-in.")
bash: syntax error near unexpected token `"Failed to install plug-in."'
torben@torben-H61M-D2H-USB3:~$ elif systray_running_status:
bash: syntax error near unexpected token `elif'
torben@torben-H61M-D2H-USB3:~$ send_message( device_uri, "", EVENT_AUTO_CONFIGURE, username, 0, "AutoConfig")
bash: syntax error near unexpected token `device_uri,'
torben@torben-H61M-D2H-USB3:~$ log.debug("Event EVENT_AUTO_CONFIGURE sent to hp-systray to invoke hp-plugin")
bash: syntax error near unexpected token `"Event EVENT_AUTO_CONFIGURE sent to hp-systray to invoke hp-plugin"'
torben@torben-H61M-D2H-USB3:~$ else:
else:: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ log.error("Run hp-systray manually and re-plugin printer")
bash: syntax error near unexpected token `"Run hp-systray manually and re-plugin printer"'
torben@torben-H61M-D2H-USB3:~$ #TBD: needs to run hp-plugin in silent mode. or needs to show error UI to user.
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ #Installs/Uploads the firmware to device once plugin installation is completed.
torben@torben-H61M-D2H-USB3:~$ def install_firmware(pluginObj,Plugin_Installation_Completed, USB_param):
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ #timeout check for plugin installation
torben@torben-H61M-D2H-USB3:~$ sleep_timeout = 6000# 10 mins time out
sleep_timeout: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ while Plugin_Installation_Completed is False and sleep_timeout != 0:
> time.sleep(0.3)#0.3 sec delay
bash: syntax error near unexpected token `0.3'
torben@torben-H61M-D2H-USB3:~$ sleep_timeout = sleep_timeout -3
sleep_timeout: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ ps_plugin,output = utils.Is_Process_Running('hp-plugin')
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ ps_diagnose_plugin,output = utils.Is_Process_Running('hp-diagnose_plugin')
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ if ps_plugin is False and ps_diagnose_plugin is False:
> Plugin_Installation_Completed = True
> if pluginObj.getStatus() == PLUGIN_INSTALLED:
bash: syntax error near unexpected token `=='
torben@torben-H61M-D2H-USB3:~$ break
bash: break: only meaningful in a `for', `while', or `until' loop
torben@torben-H61M-D2H-USB3:~$ else:
else:: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ log.error("Failed to download firmware required files. manually run hp-plugin command in terminal fisrt")
bash: syntax error near unexpected token `"Failed to download firmware required files. manually run hp-plugin command in terminal fisrt"'
torben@torben-H61M-D2H-USB3:~$ sys.exit(1)
bash: syntax error near unexpected token `1'
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ execmd="hp-firmware"
torben@torben-H61M-D2H-USB3:~$ options=""
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ options += "
> if log_level is 'de
>
>
> cmd= execmd + options
> log.info("Starting Firmware installa
options: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ Status, out=utils.run(cmd)
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ # if Status == 0:
torben@torben-H61M-D2H-USB3:~$ # log.info
torben@torben-H61M-D2H-USB3:~$ # else:
torben@torben-H61M-D2H-USB3:~$ # log.error("Failed to install firmware = %s" %Statu
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ #Usage details
torben@torben-H61M-D2H-USB3:~$ USAGE = [(__doc__, "", "name", True),
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ ("U
> utils.USAGE_OPTIONS,
>
>
> ("Download firmware into the device:", "-f", "option", F
> utils.USAGE_HELP,
> utils.USAGE_LOGGING1, utils.
> utils.USAGE_EXAMPLES,
> ("Install plugin:", "$
> ("Install plugin and firmware:", "$%
>
> ("-m and -p options can't be used together. ","","note",Fa
> ]
>
>
> def usage(typ='text'):
> if typ == 'text':
>
>
> utils.format_text(USAGE, typ, __title__, __mod__, __version__)
> sy
>
>
>
>
> try:
> import dbus
> from dbus import
> e
>
>
> try:
> mod = modu
> opts, device_uri, printer_name, mode, ui_toolkit, loc
> mod.parseStdOpts('
>
> except getopt.GetoptError, e:
> log.error(e.msg)
bash: syntax error near unexpected token `e.msg'
torben@torben-H61M-D2H-USB3:~$ usage()
> sys.exit(1)
bash: syntax error near unexpected token `sys.exit'
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ if os.getenv("HPL
> lo
>
> log_level
> Systray_M
> Plugin_option_
> Firmware_Opti
> GUI_Mode = Tr
> Is_Plugin_Alrea
>
> for o, a i
> if o
> usage()
>
>
> usage('rest')
>
> elif o == '--help-man':
>
>
> elif o in ('-u', '-U','--gui')
>
>
>
> # elif o in ('-i', '-I', '--interactive'
> # #thi
> # GUI_Mo
>
> elif o == '-
> print __doc__,
> sys.ex
>
> elif o in ('-l', '--logging'):
>
>
> elif o in('-g',
>
>
> elif o in ('-m', '-M'):
> Systray_
>
> elif o in ('-p', '-P'):
> Plugin_option_Enabled = True
>
> elif o in ('-F','-f'):
>
>
> if not log.set_level (log_level):
>
>
> try:
> param = mod.args[0]
> except IndexError:
> param = ''
>
> LOG_FILE = os.path.n
> log.info(log.bold("Saving output in log file: %s" % LOG_FILE
bash: syntax error near unexpected token `$'"HPL\n lo\n\nlog_level\nSystray_M\nPlugin_option_\nFirmware_Opti\nGUI_Mode = Tr\nIs_Plugin_Alrea\n\nfor o, a i\n if o\n usage()\n\n \n usage(\'rest\')\n\n elif o == \'--help-man\':\n \n\n elif o in (\'-u\', \'-U\',\'--gui\')\n\n\n\n# elif o in (\'-i\', \'-I\', \'--interactive\'\n# #thi\n# GUI_Mo\n\n elif o == \'-\n print __doc__,\n sys.ex\n\n elif o in (\'-l\', \'--logging\'):\n \n\n elif o in(\'-g\',\n\n\n elif o in (\'-m\', \'-M\'):\n Systray_\n\n elif o in (\'-p\', \'-P\'):\n Plugin_option_Enabled = True\n\n elif o in (\'-F\',\'-f\'):\n\n\nif not log.set_level (log_level):\n \n\ntry:\n param = mod.args[0]\nexcept IndexError:\n param = \'\'\n\nLOG_FILE = os.path.n\nlog.info(log.bold("Saving''
torben@torben-H61M-D2H-USB3:~$ if os.path.exists(LOG_FILE):
bash: syntax error near unexpected token `LOG_FILE'
torben@torben-H61M-D2H-USB3:~$ os.remove
os.remove: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ log.set_logfile(LOG_FILE)
bash: syntax error near unexpected token `LOG_FILE'
torben@torben-H61M-D2H-USB3:~$ log.set
log.set: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ cmd="chmod 664 "+LOG_FILE
torben@torben-H61M-D2H-USB3:~$ sts,output = ut
sts,output: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ log.warn("Failed
>
> cmd="chgrp lp "+LOG_FILE
bash: syntax error near unexpected token `$'"Failed \n\ncmd="chgrp''
torben@torben-H61M-D2H-USB3:~$ sts,output = utils.run(cmd)
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ if sts !=
> log.warn("Failed
>
> log.debug(" hp-check-plugin started")
bash: syntax error near unexpected token `$'"Failed\n\nlog.debug("''
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ log.error("Both -m and -p options can't be used together.")
bash: syntax error near unexpected token `"Both -m and -p options can't be used together."'
torben@torben-H61M-D2H-USB3:~$ usage()
>
>
> log.debug("param=%s" %
bash: syntax error near unexpected token `log.debug'
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ usage()
>
>
> if param:
> device_uri, sane_uri, fax_uri = device.makeURI
> if not device_uri:
> log.error("This is not a valid dev
> sys.exit(0)
>
> log.debug("\nSetting up devic
bash: syntax error near unexpected token `$'"This is not a valid dev\n sys.exit(0)\n\nlog.debug("\\nSetting''
torben@torben-H61M-D2H-USB3:~$ #Query model and checks Plu
torben@torben-H61M-D2H-USB3:~$ mq = device.queryModelByURI(device_uri)
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ if not mq or mq.get('support-
bash: syntax error near unexpected token `('
torben@torben-H61M-D2H-USB3:~$ log.error("Unsuppor
>
>
> plugin = mq.get('plugin', PLUGIN_NO
> if plugin == PLUGIN_NONE:
> lo
> sys.exit()
>
> if not Plugin_option_Enabl
> Systray_Msg_Enabled = True
>
> # checking whether HP-systray is running or not. Invoke
> Systray_Is_Running=False
> status,o
> if status is False:
> if os.getuid() == 0:
>
> else:
> log.info("Star
bash: syntax error near unexpected token `$'"Unsuppor\n\n\nplugin = mq.get(\'plugin\', PLUGIN_NO\nif plugin == PLUGIN_NONE:\n lo\n sys.exit()\n\nif not Plugin_option_Enabl\n Systray_Msg_Enabled = True\n\n# checking whether HP-systray is running or not. Invoke\nSystray_Is_Running=False\nstatus,o\nif status is False:\n if os.getuid() == 0:\n \n else:\n log.info("Star''
torben@torben-H61M-D2H-USB3:~$ services.run_systray()
> status,output = utils.Is_Process_Running('hp-sys
bash: syntax error near unexpected token `status,output'
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ if status == True:
> Systray_Is_Running=True
> log.debug("hp-systray service is r
>
> pluginOb
> plugin_sts = pluginObj.getStatus()
> if plugin_sts == pluginhandler.
> log.info("Device Plugin is already installed")
bash: syntax error near unexpected token `$'"hp-systray service is r\n\npluginOb\nplugin_sts = pluginObj.getStatus()\nif plugin_sts == pluginhandler.\n log.info("Device''
torben@torben-H61M-D2H-USB3:~$ Is_Plugin_Already_Installed = Tr
Is_Plugin_Already_Installed: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$
torben@torben-H61M-D2H-USB3:~$ log.info("HP Device Plug-in is not found")
bash: syntax error near unexpected token `"HP Device Plug-in is not found"'
torben@torben-H61M-D2H-USB3:~$ else:
else:: kommando ikke fundet
torben@torben-H61M-D2H-USB3:~$ log.info("HP Device Pl
>
> if Systray_Msg_Enabled:
> if not Is_Plugin_Already_Installed:
>
>
> elif Plugin_option_Enabled:
så kom log på denne måde der mangler tilsyneladende noget plug in
-
- Admin
- Indlæg: 20878
- Tilmeldt: 15. nov 2009, 15:04
- IRC nickname: AJenbo
- Geografisk sted: Vanløse, København
Re: upgradering til 12,10
ODT filer er ikke tilladt. Du kan eventuelt kompirere dem i en .zip og ægge den op i stedet.
Jeg har pakket din kode ind i Code-tag så det er mere overskugeligt. Jeg forstår dog ikke hvad det skulle være fra eller hvad det er du vil vise?
Edit:
Det virker som om du er komme til at kopiere indholdt af filen ind i din terminal. Jeg kan ikke regne ud hvad det er du ville opnå ved det, men det vil ikke fungere. Du skulle bare slette indholdet af den så den er tom.
Jeg har pakket din kode ind i Code-tag så det er mere overskugeligt. Jeg forstår dog ikke hvad det skulle være fra eller hvad det er du vil vise?
Edit:
Det virker som om du er komme til at kopiere indholdt af filen ind i din terminal. Jeg kan ikke regne ud hvad det er du ville opnå ved det, men det vil ikke fungere. Du skulle bare slette indholdet af den så den er tom.
-
- Admin
- Indlæg: 20878
- Tilmeldt: 15. nov 2009, 15:04
- IRC nickname: AJenbo
- Geografisk sted: Vanløse, København
Re: upgradering til 12,10
Måske vil det være lettere for dig at køre det som en kommando:
Kode: Vælg alt
sudo echo '' > /usr/share/hplip/check-plugin.py
-
- Indlæg: 461
- Tilmeldt: 5. dec 2010, 20:23
- IRC nickname: samarit
- Geografisk sted: Præstø
Re: upgradering til 12,10
Ja jeg kan godt se nu at jeg ikke har forstået hvad du mente, men du kommer til at tilgive en gammel win mand der virkelig gerne vil dette her. Af og til kan jeg ikke helt forstå hvad der menes. Når du beder mig om at slette filen hvor er det så du mener det skal gøres? I det lille vindu der kommer frem ved siden af terminalen eller den fil der ligger i hentede filer.eller noget helt tredie.
-
- Admin
- Indlæg: 20878
- Tilmeldt: 15. nov 2009, 15:04
- IRC nickname: AJenbo
- Geografisk sted: Vanløse, København
Re: upgradering til 12,10
De vindu der kommer frem, men du kan bare gøre det direkte med den kommando jeg lige har skrevet.
FIlen du har downloadet er til det andet løsning forslag (opgrader hplip).
FIlen du har downloadet er til det andet løsning forslag (opgrader hplip).
-
- Indlæg: 461
- Tilmeldt: 5. dec 2010, 20:23
- IRC nickname: samarit
- Geografisk sted: Præstø
Re: upgradering til 12,10
nix du den gik ikke sudo echo '' > /usr/share/hplip/check-plugin.py .syntes det er lidt håbløst lige for tiden, overvejer alvorligt en reinstalation.
-
- Admin
- Indlæg: 20878
- Tilmeldt: 15. nov 2009, 15:04
- IRC nickname: AJenbo
- Geografisk sted: Vanløse, København
Re: upgradering til 12,10
Er filen tom nu?
-
- Indlæg: 461
- Tilmeldt: 5. dec 2010, 20:23
- IRC nickname: samarit
- Geografisk sted: Præstø
-
- Admin
- Indlæg: 20878
- Tilmeldt: 15. nov 2009, 15:04
- IRC nickname: AJenbo
- Geografisk sted: Vanløse, København
Re: upgradering til 12,10
Og kan du så ik' sende et par billeder hvis fjelen opstår igen.
-
- Indlæg: 461
- Tilmeldt: 5. dec 2010, 20:23
- IRC nickname: samarit
- Geografisk sted: Præstø
Re: upgradering til 12,10
ja men så kommer de her. den crashede med det samme jeg bestilte udskrift fra HP printeren.
- Vedhæftede filer
-
- 3.png (78.39 KiB) Vist 188 gange
-
- 2.png (78 KiB) Vist 188 gange
-
- 1.png (77.2 KiB) Vist 188 gange
-
- Admin
- Indlæg: 20878
- Tilmeldt: 15. nov 2009, 15:04
- IRC nickname: AJenbo
- Geografisk sted: Vanløse, København
Re: upgradering til 12,10
Sæt hak ud for Ignorere fremtidig fejl af denne type.
-
- Indlæg: 461
- Tilmeldt: 5. dec 2010, 20:23
- IRC nickname: samarit
- Geografisk sted: Præstø