SHARE
TWEET

Untitled

a guest Jun 25th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Traceback (most recent call last):
  2.   File "run.py", line 2, in <module>
  3.   File "C:Python27Libsite-packagesPyInstallerloaderpyimod03_importers.py", line 395, in load_module
  4.     exec(bytecode, module.__dict__)
  5.   File "site-packagesPySimpleGUI27__init__.py", line 2, in <module>
  6.   File "C:Python27Libsite-packagesPyInstallerloaderpyimod03_importers.py", line 395, in load_module
  7.     exec(bytecode, module.__dict__)
  8.   File "site-packagesPySimpleGUI27PySimpleGUI27.py", line 14, in <module>
  9.   File "site-packagesfuturestandard_library__init__.py", line 459, in install_aliases
  10. ImportError: No module named UserList
  11. [16016] Failed to execute script run
  12.      
  13. import PySimpleGUI27 as sg
  14. import parse
  15.  
  16. layout = [              
  17.     [sg.Text('A2L File', size=(15, 1), auto_size_text=False, justification='right'),      
  18.      sg.InputText('',key='_a2l_'), sg.FileBrowse(file_types=(("A2L File", "*.a2l"),))],
  19.     [sg.Text('Signals Lexicon', size=(15, 1), auto_size_text=False, justification='right'),      
  20.      sg.InputText('',key='_sigLex_'), sg.FileBrowse(file_types=(("Excel File", "*.xlsx"),))],
  21.     [sg.Text('Parameters Lexicon', size=(15, 1), auto_size_text=False, justification='right'),      
  22.      sg.InputText('',key='_parLex_'), sg.FileBrowse(file_types=(("Excel File", "*.xlsx"),))],
  23.     [sg.Text('Module Name', size=(15, 1), auto_size_text=False, justification='right'),      
  24.      sg.InputText('X',key='_module_'), sg.FolderBrowse()],          
  25.     [sg.Submit(), sg.Cancel()],
  26.     [sg.Output(size=(60, 20))]  
  27. ]
  28. window = sg.Window('A2L Parser', default_element_size=(40, 1)).Layout(layout)
  29.  
  30. values_dict={}
  31. while True:
  32.     button, values_dict = window.Read()
  33.     if button=="Cancel" or button is None:
  34.         break
  35.     elif button=='Submit' and (not any(value == '' for value in values_dict.values())):  
  36.         parse.parser(values_dict['_a2l_'], values_dict['_sigLex_'], values_dict['_parLex_'],window)
  37.  
  38.     else:
  39.         sg.Popup("Please select files")  
  40.  
  41. window.Close()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top