I install Electrum in Ubuntu.
sudo apt-get install python-qt4 python-pip
sudo pip install https://download.electrum.org/2.6.4/Electrum-2.6.4.tar.gz
Then I start RPC on port 7777 and run daemon:
electrum setconfig rpcport 7777
electrum daemon start
I try RPC by curl:
curl --data-binary '{"id":"curltext","method":"wallet.create_new_address()","params":[]}' http://127.0.0.1:7777
I got error output:
{"error": {"message": "Method wallet.create_new_address() not supported.", "code": -32601}, "jsonrpc": "2.0", "id": "curltext"}
I tried the command 'wallet.create_new_address()' which can be executed in GUI console but RPC gives error.