[erlang-questions] WX Failed loading "wxe_driver"
Steve Davis
steven.charles.davis@REDACTED
Tue Aug 7 01:22:14 CEST 2012
Pretty sure this a crazy "Program Files" path thing. Windows still isn't
too smart.
Your easiest bet is to reinstall erlang in a path without spaces in the
name. When I was on windows I would choose to install to e.g.:
"C:\Erlang-R15B02"
...rather than into "C:\Program Files\...".
I ran multiple versions like this and I strongly suspect that the space in
the path is the issue for the failed driver load (yes, even though it says
"PROGRA~1").
HTH
/s
On Monday, August 6, 2012 1:36:28 PM UTC-5, micern wrote:
>
> Hello!
>
> I'm trying to learn Erlang, so I apologize if this is a trivial problem I
> should have solved myself.
>
> I'm failing when using WX, trying to open a window for my application.
>
> Yep, Windows 7 seams to be an odd choice of OS, but that is what I've got.
>
> Doing this in the monitor fails:
> --------------------------------
> 1> Wx = wx:new().
>
> =ERROR REPORT==== 6-Aug-2012::19:42:42 ===
> WX Failed loading "wxe_driver"@"c:/PROGRA~1/ERL59~1.1/lib/wx-0.99.2/priv"
> ** exception error: {load_driver,"Det går inte att hitta den angivna
> modulen."}
> in function wxe_server:start/0 (wxe_server.erl, line 64)
> in call from wx:new/1 (wx.erl, line 107)
>
> 2> Wx.
> * 1: variable 'Wx' is unbound
>
>
> The corresponding code in an .erl file fails too:
> -----------------------------------------------
> -module(minimal).
>
> -include_lib("wx/include/wx.hrl").
>
> -export([start/0]).
> -compile(export_all).
>
> start() ->
> Wx = wx:new(),
> Frame = wx:batch(fun() -> create_window(Wx) end),
> wxWindow:show(Frame),
> loop(Frame),
> wx:destroy(),
> ok.
>
> (more code, loop, create_window, etc).
>
> ...
>
> 7> c(minimal).
> {ok,minimal}
> 8> minimal:start().
>
> =ERROR REPORT==== 6-Aug-2012::19:49:23 ===
> WX Failed loading "wxe_driver"@"c:/PROGRA~1/ERL59~1.1/lib/wx-0.99.2/priv"
> ** exception error: {load_driver,"Det går inte att hitta den angivna
> modulen."}
> in function wxe_server:start/0 (wxe_server.erl, line 64)
> in call from wx:new/1 (wx.erl, line 107)
> in call from minimal:start/0 (minimal.erl, line 16)
>
> yep, it bombs @ Wx = wx:new(), ...
>
>
> Starting the debugger get a similar warning, even if the window actually
> opens.
> ------------------------------------------------
> 2> debugger:start().
>
> =ERROR REPORT==== 6-Aug-2012::19:47:08 ===
> WX Failed loading "wxe_driver"@"c:/PROGRA~1/ERL59~1.1/lib/wx-0.99.2/priv"
> {ok,<0.40.0>}
>
>
> Digging in Erlang library files on my computer...
> -------------------------------------------------
> Directory .../erl5.9.1/lib/wx-0.99.2 exists.
> wxe_driver@REDACTED:/PROGRA~1/ERL59~1.1/lib/wx-0.99.2/priv exists.
>
>
> Swedish...
> ----------
> "Det går inte att hitta den angivna modulen" = "Not possible to find the
> module"
>
>
> WHY?!?!?! AND WHAT TO DO?!?!?!
>
> /micael
>
> --
> View this message in context:
> http://erlang.2086793.n4.nabble.com/WX-Failed-loading-wxe-driver-tp4655138.html
> Sent from the Erlang Questions mailing list archive at Nabble.com.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120806/7cdc422d/attachment.htm>
More information about the erlang-questions
mailing list