Created
March 8, 2019 14:50
-
-
Save QGB/6de64b19b03e6c8cc9f336e467c4cb16 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/lib/python2.7/qgb/Win/__init__.py in SYSTEM_POWER_STATUS() | |
89 class SYSTEM_POWER_STATUS(ctypes.Structure): | |
90 _fields_ = [ | |
---> 91 ('ACLineStatus', wintypes.BYTE), | |
92 ('BatteryFlag', wintypes.BYTE), | |
93 ('BatteryLifePercent', wintypes.BYTE), | |
NameError: name 'wintypes' is not defined | |
In [2]: import os ,sys | |
In [3]: sys.path | |
Out[3]: | |
['', | |
'/usr/bin', | |
'/usr/lib/python27.zip', | |
'/usr/lib/python2.7', | |
'/usr/lib/python2.7/plat-cygwin', | |
'/usr/lib/python2.7/lib-tk', | |
'/usr/lib/python2.7/lib-old', | |
'/usr/lib/python2.7/lib-dynload', | |
'/usr/lib/python2.7/site-packages', | |
'/usr/lib/python2.7/site-packages/IPython/extensions', | |
'/home/qgb/.ipython'] | |
subprocess.Popen('%s %s %s' % ('vi', '+2716', '/home/qgb/qgb/U.py') ,shell=True )
BlockingIOError: [Errno 11] Resource temporarily unavailable #line. 1275
b 1269
![ args, executable_list, close_fds, tuple(sorted(map(int, fds_to_keep))), cwd, env_list, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite, errpipe_read, errpipe_write, restore_signals, start_new_session, preexec_fn ]
_posixsubprocess.fork_exec( ['/bin/sh', '-c', 'vi +2716 /home/qgb/qgb/U.py'], (b'/bin/sh',), True, (9,), None, None, -1, -1, -1, -1, -1, -1, 8, 9, True, False, None )
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
修改 update.bat
kernel.org
http://mirrors.sohu.com/cygwin/ # 不要使用htpps 比如aliyun ,否则错误