Refefer / fastxml

FastXML / PFastXML / PFastreXML - Implementation of Extreme Multi-label Classification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

relative import

yishairasowsky opened this issue · comments

@mlaprise @Refefer @codingsparse @siddu9501
what an awesome proudct you have produced!
do you know how can solve this error... thanks!

root@yishai-remotedocker-0:/persistent/Sefaria-Project/ML# cd /persistent/Sefaria-Project/ML ; env /usr/local/bin/python /root/.vscode-server/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/debugpy/launcher 35679 -- /usr/local/lib/python3.7/site-packages/fastxml/trainer.py
Traceback (most recent call last):
File "/usr/local/lib/python3.7/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/root/.vscode-server/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/debugpy/main.py", line 45, in
cli.main()
File "/root/.vscode-server/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 430, in main
run()
File "/root/.vscode-server/extensions/ms-python.python-2020.6.91350/pythonFiles/lib/python/debugpy/../debugpy/server/cli.py", line 267, in run_file
runpy.run_path(options.target, run_name=compat.force_str("main"))
File "/usr/local/lib/python3.7/runpy.py", line 263, in run_path
pkg_name=pkg_name, script_name=fname)
File "/usr/local/lib/python3.7/runpy.py", line 96, in _run_module_code
mod_name, mod_spec, pkg_name, script_name)
File "/usr/local/lib/python3.7/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/local/lib/python3.7/site-packages/fastxml/trainer.py", line 20, in
from .splitter import Splitter, sparsify, sparse_mean_64, radius
ImportError: attempted relative import with no known parent package
root@yishai-remotedocker-0:/persistent/Sefaria-Project/ML#

Marking closed. Let me know if this didn't help :)