質問編集履歴
5
ミス訂正
title
CHANGED
File without changes
|
body
CHANGED
@@ -53,8 +53,8 @@
|
|
53
53
|
追記です
|
54
54
|
|
55
55
|
今度はiex> Pyex.predict()で以下のようなエラーが出てしまいました。
|
56
|
-
** (ErlangError) Erlang error: {:python, :"exceptions.ImportError", 'No module named keras.models', [{"/Users/tmsmac/pyex/lib/
|
56
|
+
** (ErlangError) Erlang error: {:python, :"exceptions.ImportError", 'No module named keras.models', [{"/Users/tmsmac/pyex/lib/py_predict_sin.py", 2, "<module>", "from keras.models import Sequential"}, {"/Users/tmsmac/pyex/_build/dev/lib/erlport/priv/python2/erlport/erlang.py", 226, "_incoming_call", "f = __import__(module, {}, {}, [objects[0]])"}, {"/Users/tmsmac/pyex/_build/dev/lib/erlport/priv/python2/erlport/erlang.py", 234, "_call_with_error_handler", "function(*args)"}]}
|
57
57
|
(erlport) /Users/tmsmac/pyex/deps/erlport/src/erlport.erl:234: :erlport.call/3
|
58
|
-
(pyex) lib/pyex.ex:
|
58
|
+
(pyex) lib/pyex.ex:27: Pyex.predict/0
|
59
59
|
|
60
60
|
keras単品では動いています。また、pyex.exのコンパイルも通っています。これも上記で修正していただいたようにファイルにpy_をつけたりstopの部分を変えたりしましたがそれでもダメだったので何か他の原因でしょうか?
|
4
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -47,4 +47,14 @@
|
|
47
47
|
|
48
48
|
* stop/1
|
49
49
|
|
50
|
-
(erlport) :python.stop()
|
50
|
+
(erlport) :python.stop()
|
51
|
+
|
52
|
+
ーーーーーーーーーーーーーーーーーーーーーーーーーーー
|
53
|
+
追記です
|
54
|
+
|
55
|
+
今度はiex> Pyex.predict()で以下のようなエラーが出てしまいました。
|
56
|
+
** (ErlangError) Erlang error: {:python, :"exceptions.ImportError", 'No module named keras.models', [{"/Users/tmsmac/pyex/lib/predict_sin.py", 2, "<module>", :undefined}, {"/Users/tmsmac/pyex/_build/dev/lib/erlport/priv/python2/erlport/erlang.py", 226, "_incoming_call", "f = __import__(module, {}, {}, [objects[0]])"}, {"/Users/tmsmac/pyex/_build/dev/lib/erlport/priv/python2/erlport/erlang.py", 234, "_call_with_error_handler", "function(*args)"}]}
|
57
|
+
(erlport) /Users/tmsmac/pyex/deps/erlport/src/erlport.erl:234: :erlport.call/3
|
58
|
+
(pyex) lib/pyex.ex:11: Pyex.predict/0
|
59
|
+
|
60
|
+
keras単品では動いています。また、pyex.exのコンパイルも通っています。これも上記で修正していただいたようにファイルにpy_をつけたりstopの部分を変えたりしましたがそれでもダメだったので何か他の原因でしょうか?
|
3
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -41,10 +41,10 @@
|
|
41
41
|
確かにGoogleドライブから出たところに作り直したらこのエラーがなくなりました。。。ディレクトリの名前なんかでエラーが出ることがあるんですね、、、これは日本語のディレクトリ内からは実行できないものなんでしょうか?結構不便ですね。
|
42
42
|
また、さらにそこで実行したところ関数名を入力するところまで行ったのですが、ここで今度は以下の様なエラーが出ました。今度はどうすればいいのでしょうか??
|
43
43
|
|
44
|
+
I'm Python...receive 3
|
45
|
+
received from python: 30
|
44
|
-
|
46
|
+
** (UndefinedFunctionError) function :python.stop/0 is undefined or private. Did you mean one of:
|
45
47
|
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
(erlport) /Users/tmsmac/pyex/deps/erlport/src/erlport.erl:234: :erlport.call/3
|
50
|
-
(pyex) lib/pyex.ex:4: Pyex.value_receive/1
|
48
|
+
* stop/1
|
49
|
+
|
50
|
+
(erlport) :python.stop()
|
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -32,4 +32,19 @@
|
|
32
32
|
|
33
33
|
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
|
34
34
|
===> When submitting a bug report, please include the output of `rebar3 report "your command"`
|
35
|
-
** (Mix) Could not compile dependency :erlport, "/Users/tmsmac/.mix/rebar3 bare compile --paths "/Users/tmsmac/Google ドライブ/Elixir/pyex/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile erlport", update it with "mix deps.update erlport" or clean it with "mix deps.clean erlport"
|
35
|
+
** (Mix) Could not compile dependency :erlport, "/Users/tmsmac/.mix/rebar3 bare compile --paths "/Users/tmsmac/Google ドライブ/Elixir/pyex/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile erlport", update it with "mix deps.update erlport" or clean it with "mix deps.clean erlport"
|
36
|
+
|
37
|
+
------------------------------------------------
|
38
|
+
さらに追記です
|
39
|
+
|
40
|
+
早速の返信ありがとうございます!!
|
41
|
+
確かにGoogleドライブから出たところに作り直したらこのエラーがなくなりました。。。ディレクトリの名前なんかでエラーが出ることがあるんですね、、、これは日本語のディレクトリ内からは実行できないものなんでしょうか?結構不便ですね。
|
42
|
+
また、さらにそこで実行したところ関数名を入力するところまで行ったのですが、ここで今度は以下の様なエラーが出ました。今度はどうすればいいのでしょうか??
|
43
|
+
|
44
|
+
Erlang/OTP 20 [erts-9.2.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
|
45
|
+
|
46
|
+
Interactive Elixir (1.6.1) - press Ctrl+C to exit (type h() ENTER for help)
|
47
|
+
iex(1)> Pyex.value_receive( 3 )
|
48
|
+
** (ErlangError) Erlang error: {:python, :"exceptions.ImportError", 'No module named py_sample', [{"/Users/tmsmac/pyex/_build/dev/lib/erlport/priv/python2/erlport/erlang.py", 226, "_incoming_call", "f = __import__(module, {}, {}, [objects[0]])"}, {"/Users/tmsmac/pyex/_build/dev/lib/erlport/priv/python2/erlport/erlang.py", 234, "_call_with_error_handler", "function(*args)"}]}
|
49
|
+
(erlport) /Users/tmsmac/pyex/deps/erlport/src/erlport.erl:234: :erlport.call/3
|
50
|
+
(pyex) lib/pyex.ex:4: Pyex.value_receive/1
|
1
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -19,4 +19,17 @@
|
|
19
19
|
|
20
20
|
The --help and --version flags can be given instead of a task for usage and versioning information.
|
21
21
|
|
22
|
-
この様なエラーが出ます。これはどういうことでしょうか?
|
22
|
+
この様なエラーが出ます。これはどういうことでしょうか?
|
23
|
+
|
24
|
+
_____________________________
|
25
|
+
|
26
|
+
追記です
|
27
|
+
|
28
|
+
回答ありがとうございます!!
|
29
|
+
|
30
|
+
確かにディレクトリの位置を間違えてはいた様です。pyex.exを作ったディレクトリではなくその上のlibやmix.exsがあるディレクトリで実行するべきだったという事ですね?そこで今回そこのディレクトリで行ったのですが、次の様なエラーが出ました・・・これはどういう事でしょうか?
|
31
|
+
Erlang/OTP 20 [erts-9.2.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
|
32
|
+
|
33
|
+
===> Uncaught error in rebar_core. Run with DEBUG=1 to see stacktrace or consult rebar3.crashdump
|
34
|
+
===> When submitting a bug report, please include the output of `rebar3 report "your command"`
|
35
|
+
** (Mix) Could not compile dependency :erlport, "/Users/tmsmac/.mix/rebar3 bare compile --paths "/Users/tmsmac/Google ドライブ/Elixir/pyex/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile erlport", update it with "mix deps.update erlport" or clean it with "mix deps.clean erlport"
|