VSCode autocomplete on private package import do not working
Fred Reck

Fred Reck @freddsr

Location:
Brazil
Joined:
Sep 5, 2019

VSCode autocomplete on private package import do not working

Publish Date: Mar 27 '20
7 5

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',
)

Enter fullscreen mode Exit fullscreen mode

any suggestion?

Comments 5 total

  • Fred Reck
    Fred ReckMar 27, 2020

    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 with sys.path.append to the code is also unsuccessful. I installed elixir_tools from a gitlab repository with pip install and the code works, but vscode does not autocomplete and shows this error message. Look:

  • Fred Reck
    Fred ReckMar 27, 2020

    That worked, thank you very much!

    • christophergaudig
      christophergaudigSep 9, 2022

      what worked? I have the same problem with gsfpy_09

      thanks!

Add comment