portablelinux icon indicating copy to clipboard operation
portablelinux copied to clipboard

local variable 'stages' referenced before assignment

Open fedya opened this issue 12 years ago • 2 comments

As image i set ubuntun13.04 as portable dtive /dev/sdc - 7560 mib sd card Reserver 256 mib

And i always got an error

./portablelinux Running command: ['which', 'gksu'] ./portablelinux:294: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated gtk.glade.XML.init(self,os.path.join(get_shared_path(),'portablelinux.glade')) ./portablelinux:374: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated self.get("persistent_size").set_adjustment(adj) Exception in thread MakePortableLinux: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 808, in __bootstrap_inner self.run() File "./portablelinux", line 171, in run for stage in stages.split(): UnboundLocalError: local variable 'stages' referenced before assignment

Exception in thread MakePortableLinux: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 808, in __bootstrap_inner self.run() File "./portablelinux", line 171, in run for stage in stages.split(): UnboundLocalError: local variable 'stages' referenced before assignment

Exception in thread MakePortableLinux: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 808, in __bootstrap_inner self.run() File "./portablelinux", line 171, in run for stage in stages.split(): UnboundLocalError: local variable 'stages' referenced before assignment

Exception in thread MakePortableLinux: Traceback (most recent call last): File "/usr/lib64/python2.7/threading.py", line 808, in __bootstrap_inner self.run() File "./portablelinux", line 171, in run for stage in stages.split(): UnboundLocalError: local variable 'stages' referenced before assignment

fedya avatar Jun 19 '13 09:06 fedya

had the same error, in line 170, change else: "unmountfs ... to else: stages = "unmountfs ...

luisrayas3 avatar Aug 06 '13 15:08 luisrayas3

I am getting the same, using python 2.7, already changed line 170 as suggested but still nuttin':

root@tacubronxsrvr:/home/ivansabik/Downloads/portablelinux-master# portablelinux 
Running command: ['which', 'gksu']
/usr/local/bin/portablelinux:294: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  gtk.glade.XML.__init__(self,os.path.join(get_shared_path(),'portablelinux.glade'))
/usr/local/bin/portablelinux:374: GtkWarning: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
  self.get("persistent_size").set_adjustment(adj)
Exception in thread MakePortableLinux:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/local/bin/portablelinux", line 171, in run
    for stage in stages.split():
UnboundLocalError: local variable 'stages' referenced before assignment

ivansabik avatar Dec 30 '13 23:12 ivansabik