MoseleyBioinformaticsLab / icikt

Other
1 stars 0 forks source link

python3 -m icikt error #4

Closed rmflight closed 2 years ago

rmflight commented 2 years ago

Traceback (most recent call last): File "/usr/lib/python3.9/runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.9/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/rmflight/.local/share/virtualenvs/checkPythonICIKendallTau-PCeVsa1u/lib/python3.9/site-packages/icikt/main.py", line 20, in from . import icikt File "/home/rmflight/.local/share/virtualenvs/checkPythonICIKendallTau-PCeVsa1u/lib/python3.9/site-packages/icikt/icikt.py", line 20, in from kendall_dis import _kendall_dis ModuleNotFoundError: No module named 'kendall_dis' ((checkPythonICIKendallTau) )

hunter-moseley commented 2 years ago

I think kendall_dis.pyx is not being compiled and put into the proper place with pip install. Actually kendall_dis.pyx was renamed to _kendall_dis.pyx and the import was not updated correctly. Statement should be: "from _kendall_dis import kendall_dis" Better yet is to use: "import _kendall_dis" and then call _kendall_dis.kendall_dis(...)

psbhatt commented 2 years ago

dr.moseley why is that second version of the import statement better than the first?

hunter-moseley commented 2 years ago

Have a moment to discuss? Will be back at computer in 5 min.

On Sat, Nov 13, 2021, 2:12 PM Praneeth Bhatt @.***> wrote:

dr.moseley why is that second version of the import statement better than the first?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/MoseleyBioinformaticsLab/icikt/issues/4#issuecomment-968120504, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADEP7BY3U2J2ZG3ILSVOPKLUL22BTANCNFSM5HZKVDFA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.