I'm trying to import a module using the reticulate library
in R
, however the library fails to import because it has a hyphen in it. In specific, it is the bitmex-ws
module. py_install("bitmex-ws")
works no problem, but the error is when trying to import, I receive a module not found error
.
Asked
Active
Viewed 39 times
0
-
1How are you trying to import the module? Python identifiers can’t have hyphens, so I doubt this is related to reticulate. Did you mean to import `bitmex_websocket`? – Konrad Rudolph Mar 05 '19 at 17:59
1 Answers
1
You may want import bitmex_websocket
.
See example usage here: https://pypi.org/project/bitmex-ws/

RolandASc
- 3,863
- 1
- 11
- 30