Skip to content
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

Commit "Mask out private packages." broke library import #3

Closed
AdrienCorenflos opened this issue Aug 4, 2020 · 6 comments
Closed
Assignees

Comments

@AdrienCorenflos
Copy link

See this comment:

41fb567#r41181450

@lxuechen
Copy link
Collaborator

lxuechen commented Aug 4, 2020

Hi,

I just tried installing the library via ssh from master, and this doesn't appear to be a problem. Could you provide more context?

As a side note, I understand that it could be confusing when different things have the same name. Though, the point I want to make is that import torchsde._core.sdeint as sdeint_module imports the module file sdeint.py, whereas from torchsde._core import sdeint as sdeint_module actually imports the function sdeint in that file. Here, we'd like to import the module file to use its function integrate.

Thanks,
Chen

@AdrienCorenflos
Copy link
Author

AdrienCorenflos commented Aug 4, 2020 via email

@lxuechen
Copy link
Collaborator

lxuechen commented Aug 4, 2020

Does this error still occur when installing the master branch? Thanks.

@AdrienCorenflos
Copy link
Author

AdrienCorenflos commented Aug 4, 2020 via email

@lxuechen
Copy link
Collaborator

lxuechen commented Aug 4, 2020

I just reproduced this on colab. I think it might have something to do with colab, since I'm not seeing this issue on my local machine or remote vm.

I'll get this fixed ASAP. Thanks again for the report!

For the time being, I'd recommend installing a previous version if the plan is just to play with the code, e.g.

!pip install git+http://git@github.com/google-research/torchsde@v0.1.1

@lxuechen lxuechen self-assigned this Aug 4, 2020
@lxuechen
Copy link
Collaborator

lxuechen commented Aug 6, 2020

Just debugged this and found it to only be an issue for Python <= 3.6. Here's the related bug fix discussion https://bugs.python.org/issue30024

Will send in a commit soon to fix it so that it also works with Python>=3 <=3.6.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants