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
How to import module from .so file inside egg file without using an absolute file path? #63
Comments
@janfan why do you use an Egg? eggs are over and were never tested here. You should use a wheel IMHO |
That said, could you give a try to add Line 73 in 547b535 and respin your egg build? |
Ok, I will try to figure out how wheel can fit into my job. I will return here soon. Thank for your advice. |
@janfan FWIW, it would be best to have a self standing ticket rather than something mostly on SO and a ticket here ;) for sanity |
@pombredanne Hi there, I am sorry to say that |
@pombredanne I'm back. Now I review the knowledge about wheel, and it's just a distribution instead of a portable runtime, that is, you can't import from a wheel, which is what I need when I use this package on Spark cluster. |
eggs are on the way out and supporting them is likely problematic, especially eggs with native code like here. |
@pombredanne If it is like what you said, I am going to turn to other ways. Thanks for your help. |
@janfan I would be happy to help, but Sparks doc seem to mention that eggs with native are not something that works with their way of importing. And they are working on supporting wheels. |
@janfan note that you could also just unzip a wheel (or an egg) and put the .so in your path or PYTHONPATH. Then doing |
because all of it is just a single .so ;) |
@janfan did using the .so worked for you? |
@pombredanne No. I modified the env I use it for PySpark tasks, and it is difficult to figure the underlying problems. It has something to do with the Spark cluster. At last I pushed my operator to |
Excellent! so you can close this ticket then? |
I posted the details on SO.
Thanks all.
http://stackoverflow.com/questions/43274153/python-how-to-import-module-from-so-file-from-egg-file-without-using-an-absol
The text was updated successfully, but these errors were encountered: