-
Notifications
You must be signed in to change notification settings - Fork 146
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
Legion_python -m can not find the module #1331
Comments
@elliottslaughter Do we need to do something more general then just translate the nested module string into a directory structure? Does Python require that all submodules live in nested directories (I think it does)? |
What about Python Eggs? Maybe we don't care—and I'm fine with writing this off—but I'm pretty sure those break these assumptions. But otherwise yes, that is my understanding. |
As far as I understand it, eggs have been replaced by wheels. @bryevdv does that sound right for you? Can you think of any cases where we might need to support eggs for legate/cunumeric? |
I can't think of one. Here is a relevant observation in an issue that proposes deprecating egg uploads on warehouse
I haven't personally run into an egg in 10+ years, but if there was any group that might land in that 1% tail I guess it wouldn't surprise me to learn it was HPC users somehow. |
@eddy16112 Try with this patch and see if it works:
|
@lightsighter No, it does not work for me. Here is my fix, let me know if there is any issue with my fix
|
It looks fine to me. Can you put that in a branch and let it run through CI while we wait for @elliottslaughter to comment? |
A couple comments: Isn't I know it's not technically part of what's being modified here, but the use of Beyond that the change looks fine to me and I think we can take it as long as it passes CI. |
|
I'm still confused. Suppose If there happens be be a Am I missing something? |
I thought |
Go ahead and take the new solution as long as it passes all our tests and can still run the cuNumeric test suite. I think I was using |
Here is the fix, will wait for the CI results. |
I ran a test to confirm this is Python's expected behavior:
So yes, this looks like the correct fix to me. |
The CI is passed, and I have updated the fixes into the master. |
@eddy16112 Did you test with the cuNumeric test suite? |
Yes, but I do not think cuNumeric tests -m. |
Ok, wasn't sure if we used it for any of the test suite execution. I think some of the test suite might use the |
We do not seem to have any Python tests for |
We can test pygion tests as |
I have tests for this in the test suite now. I will close once CI passes. |
Tests broke, so I pulled the commit back out and put it in a branch until I figure out what's wrong. Hopefully just missing a path or something. |
@elliottslaughter I pushed a fix for your tests. https://gitlab.com/StanfordLegion/legion/-/commit/3dd3170e768c968b8fc88299cf88349e5228876a |
Nice, thanks! It passed CI so I merged to |
CI looks good on I think that's it from my end. |
Close it as the CI is passed. |
I have a sub-module
jupyter
underlegate
module, so the file directory islegate/jupyter/__main__.py
.If I run
then legion_python can not find the module.
If I run
then it works.
I think the issue comes from here, it tries to find the file named
legate.jupyter/__main__.py
https://github.com/StanfordLegion/legion/blob/master/bindings/python/legion_top.py#L378-L382
The text was updated successfully, but these errors were encountered: