Vscode autocomplete do not working when i import my private package from git and shows this message error on code line: Unable to import 'elixir_tools' pylint(import-error)
my setup.py structure:
from setuptools import setup
setup(
name='elixir_tools',
url='***',
author='Elixir AI',
author_email='***',
packages=[
'elixir_tools',
'elixir_tools.executors',
'elixir_tools.models',
'elixir_tools.transforms',
'elixir_tools.utils'
],
install_requires=[
'pandas',
'numpy',
'datetime',
'xlrd',
'psycopg2-binary',
'flask_bcrypt',
'flake8',
'bayesian-optimization',
'scikit-learn',
'python-dateutil',
'xgboost',
'croston'
],
version='0.1',
license='MIT',
)
any suggestion?
Top comments (3)
Thanks for your response! I tried your first suggestion, but to no avail, the
pip show elixir_tools
command shows information about the package, including the path. Attaching the package path withsys.path.append
to the code is also unsuccessful. I installed elixir_tools from a gitlab repository withpip install
and the code works, but vscode does not autocomplete and shows this error message. Look:That worked, thank you very much!
what worked? I have the same problem with gsfpy_09
thanks!