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
Installing junos-eznc using pip lacks __init__.py file #653
Comments
Hi @SandMouse PyEZ declares It also includes a Unfortunately, there seems to be an issue with pip and/or setuptools which causes this I understand that pip/setuptools doesn't install the I've tried a few unsuccessful ways of working around this issue, and if anyone else has suggestions on how to fix it, I'm definitely interested in hearing. In general, this is a very minor issue. It really only causes issues in a few unusual circumstances. One of those is obviously the issue you have with intellisense. The issue where I have seen before is when both a The workaround is to manually copy the contents of https://github.com/Juniper/py-junos-eznc/blob/master/lib/jnpr/__init__.py into I hope this helps you understand the problem, and I'll leave this issue open to see if anyone can come up with a real fix for the problem. |
@SandMouse I'm going to close this issue for now. We can re-examine if someone can provide a possible fix or workaround to this pip/setuptools issue. |
When I install junos-eznc using pip my intellisense does not recognize it's corresponding folders as a package.
from jnpr.junos.factory.factory_loader import FactoryLoader
This line of code will run and the package loads just fine. Browsing through the files of the package it seems as if the folder 'jnpr' lacks the init.py file. When I add an empty file named init.py manually this issue is solved.
Python: 2.7.12 (via Homebrew)
OS: macOS Sierra 10.12.3
IDE: Visual Studio Code 1.8.1
VSC extention: Python 0.5.6 (donjayamanne.python)
pylint 1.6.4,
astroid 1.4.8
The text was updated successfully, but these errors were encountered: