Closed derpadoo closed 7 years ago
I may have been too hasty to get the Python 3 support out. 😞
Regarding the make_dlnexpose_importable()
thing, this is leftover from before I re-arranged the package layout. I think there is still work to be done to properly handle imports across the whole library, as it's not straightforward compared to some other libraries (like Requests as you pointed out). Unfortunately I'm not an expert on packaging Python libraries so any tips on that would be appreciated.
I will take a look at this later today. Sorry about the broken release! Wonder if it's easy enough to revoke it from pypi...
No worries, just glad this repo has some momentum and you respond to tickets. I've never dealt with building Python packages before either, but I can take a look and see if anything may help.
I released version 0.1.4 which reverts the changes, and should be available on pypi now.
I need to spend more time working out my changes that seem to fix the issue otherwise, but broke tests (due to import issues). Seems like a good time to really clean up the import mess that was caused by this library not originally being package-ready, and my newbie attempt at packaging it up.
I've started a branch fix_imports_py2_py3 if anyone wants to keep an eye on it or help out (target PRs to that branch instead of master in this case).
Have not been able to get the version 0.1.3 working.
Expected Behavior
Establish session with Nexpose console.
Current Behavior
It's happening in both a 3.5 virtualenv and a system-wide install of both Python2 'pip install nexpose' and Python3 'pip3 install nexpose'. Reverted to the 0.1.2 tag and not having any issues with the Python2 working. Another observation is that after importing the nexpose module in ipython, tab completion of
nexpose.
does not provide any hints of the module's attributes. That may be an ipython thing, but I don't have the issue with other libraries likerequests
. The run_demo.py code that calls make_dlnexpose_importable() seems redundant and unnecessary.Possible Solution
Version 0.1.3 broke something.
Steps to Reproduce (for bugs)
To set up the environment
Python code that reproduces the issue:
Copy/pasted from run_demo.py
Context
nexpose module isn't working.
Your Environment