Skip to content
This repository has been archived by the owner on Jul 31, 2018. It is now read-only.

Failed os.path.normpath(process_cmdline) #84

Open
moden-py opened this issue Mar 9, 2016 · 3 comments
Open

Failed os.path.normpath(process_cmdline) #84

moden-py opened this issue Mar 9, 2016 · 3 comments
Assignees
Labels

Comments

@moden-py
Copy link
Contributor

moden-py commented Mar 9, 2016

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
Copy link
Contributor Author

moden-py commented Mar 9, 2016

@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.

@changhyuk91
Copy link

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

@moden-py
Copy link
Contributor Author

@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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants