SWAPY icon indicating copy to clipboard operation
SWAPY copied to clipboard

Failed os.path.normpath(process_cmdline)

Open moden-py opened this issue 9 years ago • 3 comments

By user @changhyuk91from issue78

os.path.normpath(process_cmdline) AttributeError: 'NoneType' object has no attribute 'startswith'

Hi guys I just started programming(5days), so I really need help getting this problem fixed. I am getting the same error as aristotll and more.

"Traceback error:file:"C:\projects\swapy-pwvh2\build\swapy\out00-PYZ.pyz_mainframe",line 407, in _update Attribute error: 'list' object has no attribute 'encode'"

Additional errors when I press application.start and application.connect respectively: image

image

I am using the korean language so I think I am getting the same problem. It seems like you guys found the remedy so I re-downloaded and installed SWAPY32bit.exe from the Github, but the error persists. I dont know how Aristotll got his work.

Thanks so much in advance, you guys are awesome.

I am currently using Python 3.5

moden-py avatar Mar 09 '16 07:03 moden-py

@changhyuk91 , could you run SWAPY with Admin rights and try to reproduce the problem? I suppose pywinauto failed to get the process command line because it has elevated privileges.

moden-py avatar Mar 09 '16 07:03 moden-py

I still get the same Errors

Error #1 sometimes I get this image

and sometimes i get this

Error#2 image

I opened SWAPY with admin rights

changhyuk91 avatar Mar 10 '16 00:03 changhyuk91

@changhyuk91, Could you try to reproduce this two problems on the develop builds: 32bit 64bit You probably use public release (master branch), but fix for problem #78 only in dev now. So, I expect encode problem is already fixed. Unfortunately I not sure what is wrong with startswith problem. Hope more debug info would help. Please run debug versions swapy*bit-debug.exe of the both architecture 32/64. And make the debug console screenshots if fails. Thanks for your help.

moden-py avatar Mar 10 '16 21:03 moden-py