Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Port closed on erlport.cli, again #32

Closed
Mazyod opened this issue May 8, 2016 · 2 comments
Closed

Port closed on erlport.cli, again #32

Mazyod opened this issue May 8, 2016 · 2 comments

Comments

@Mazyod
Copy link

Mazyod commented May 8, 2016

Running Erlport through Elixir, I was getting this error, and it was driving me nuts:

/usr/bin/python: No module named erlport.cli

** (ErlangError) erlang error: {:port_closed, {:code, 1}}

17:46:26.849 [error] GenServer #PID<0.128.0> terminating
** (stop) {:port_closed, {:code, 1}}
Last message: {#Port<0.5453>, {:exit_status, 1}}
State: {:state, :infinity, 0, #Port<0.5453>, [{1, {{#PID<0.126.0>, #Reference<0.0.5.24>}, :undefined}}], []}
    src/erlport.erl:234: :erlport.call/3

The way I resolved the issue was through:

pip uninstall erlport

Indeed, it seems that the erlport python module used internally is called "erlport", and so is the module used by external scripts, which caused this issue.

Perhaps consider renaming the internal python module?

NOTE: an issue about this seems to have been raised before here #6

@Mazyod
Copy link
Author

Mazyod commented May 8, 2016

nvm, just remove erlport from pip, and rely on erlport loading the python module at runtime works fine.

@ghost
Copy link

ghost commented Oct 11, 2017

Getting this error too, apparently cli.py has been removed from the python3 module: https://github.com/hdima/erlport/tree/master/priv/python3/erlport

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

No branches or pull requests

1 participant