play framework error

扶醉桌前 提交于 2019-12-24 11:01:27

问题


I am getting this error when I am simply trying to run play command from command prompt in windows.

C:\Users\naveenreddy>play
 Traceback (most recent call last):   File "E:\andrew\structure\play-1.2\play", line 13, in <module>     from play.application import PlayApplication   File "E:\andrew\structure\play-1.2\framework\pym\play\application.py", line 5,  in <module>     import socket   File "C:\Python27\lib\socket.py", line 47, in <module>     import _socket ImportError: DLL load failed: %1 is not a valid Win32 application.  
C:\Users\naveenreddy>

I have set the play directory in path and have installed python already which I use to run django. What could cause this error?!


回答1:


It is most likely a conflict with python versions. Try taking python out of your path, so play can use the built in python.



来源:https://stackoverflow.com/questions/5892060/play-framework-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!