Using custom cython modules in colab

Viewed 1275

I'm trying to run some code python code in Google colab. This code uses some custom modules I wrote, some of which were written in cython. On my local machine, I'd normally compile the cython code first before running my main python script. What is the correct way of doing this on colab, if there is one? Right now, the script throws an error when it tries to import my cython modules. Specifically, I get the error

ImportError: model/cython_library/core.so: invalid ELF header

which makes sense, since the core.so file was compiled on my local machine instead of gcloud.

0 Answers
Related