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
[ERROR] Runtime.ImportModuleError: Unable to import module 'app': No module named 'sascorer' Traceback (most recent call last): #83
Comments
Closing here. For the record, the issue was due to the relocation of a conda env using There is no real good solution for this on the rdkit side currently since using relative paths might also causes issues on non-standard systems. |
Hello @MichelML @hadim, did it work for you to just import RDKit before datamol? Did not for me.. Any recommended workaround? Should we go back to an older RDKit? With datamol 0.7.3 and rdkit 2022.03.2, I'm getting:
Thank you! |
What OS are you using? |
Mac 11.5.1
Thanks for helping with this!
…On Fri, 13 May 2022, 12:30 Hadrien Mary, ***@***.***> wrote:
What OS are you using?
—
Reply to this email directly, view it on GitHub
<#83 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGBKIPKTFDOSSVTTGSKNWWTVJYVMLANCNFSM5OY4JBPQ>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I can't reproduce on Linux. I'll check if I can get access to an OSX machine. |
@adelenelai anyway we can see your conda env file? do you use pypi or conda to install rdkit and datamol? @mercuryseries @maclandrol I think you guys have a Mac if you want to test this quickly. |
For rdkit and datamol I used conda. Thanks a lot.
|
Will test this morning, but my first guess is rdkit pypi not packaging the Can you print
Then check whether you see ls /Users/manu/.miniconda/envs/testenv/share/RDKit/Contrib |
@adelenelai I see you have two versions of rdkit in your env:
I would try to remove rdkit-pypi from your env as a first attempt (and try what @maclandrol suggested) |
@adelenelai Confirmed. The rdkit from In your case, the interpreter is picking up the I am not sure a simple
As a side note, remember that if you install @hadim , we should remove anything that links to |
Hello @MichelML and @maclandrol I did But...things started to break and I couldn't even do So...I did a fresh install of rdkit in a new env, then After that, importing Thanks a lot for your speedy help |
Yes, we should catch the error and make it silent (or simply a warning). |
Thank you @adelenelai for the report! |
Fixed in >=0.7.4 now on pypi and soon on conda (a few hours). |
Posting so it's logged somewhere.
Is this a new dependency for datamol? Disclaimer, I didn't update datamol in my project (lambdomics) since a couple months (I was at 0.5 before upgrading).
sascorer
seems to have appear in commit 8576d4b with the descriptors module, and this module is imported by default when usingimport datamol as dm
.sascorer seems to be a module coming from RDKit but I'm not sure. Is it just a matter of making sure to import RDKit before datamol if you use both in your project?
The text was updated successfully, but these errors were encountered: