Skip to content
This repository has been archived by the owner on May 30, 2023. It is now read-only.

problem on win7x64 is not a valid win32 application #12616

Closed
arisAlexis opened this issue Sep 28, 2014 · 7 comments
Closed

problem on win7x64 is not a valid win32 application #12616

arisAlexis opened this issue Sep 28, 2014 · 7 comments

Comments

@arisAlexis
Copy link

12:32:55.383 ERROR - org.apache.commons.exec.ExecuteException: Execution failed (Exit value: -559038737. Caused by java.io.IOException: Cannot run program "C:\Users\aris\AppDa
ta\Roaming\npm\phantomjs" (in directory "."): CreateProcess error=193, %1 is not a valid Win32 application)

phantomjs installed without errrors and so is npm. running the standalone selenium server and connecting to it produces this error.

@vitallium
Copy link
Collaborator

I think you trying to launch Linux binary file. Please check that executable file is presented.

@arisAlexis
Copy link
Author

executable file is present and runnable through command prompt. if you google this bug it's all over the place but reported in different packages.

c:\Users\aris\AppData\Roaming\npm>phantomjs
phantomjs>

@ariya
Copy link
Owner

ariya commented Sep 30, 2014

@arisAlexis
Copy link
Author

no but solved. downloaded version for windows in the path works ok. npm install -g phantomjs and the resulting installation (that has permissions etc and is in the path) not working for win7x64 out of the box

@TonySergio
Copy link

Hi arisAlexis , can you give more explanation about resolving this problem on win7x64 (without admin permissions)?

@arisAlexis
Copy link
Author

I just downloaded the phantomjs package and installed it normally. Don't use the npm install, something is broken there.

@bdeschipper
Copy link

I was still having this problem when running webdriver-manager - It seems like it's trying to start the unix version instead of the windows .cmd version that is installed. I got around this by just deleting the non cmd version.

Please delete if this is not applicable here as it seems more like a webdriver-manager issue.

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

No branches or pull requests

5 participants