-
Notifications
You must be signed in to change notification settings - Fork 169
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
Not possible to pickle objects #329
Comments
This is my attempted fix in
(and it makes but
@raddessi or @zachmoody, is there something specific we should know nowadays when contributing? I've seen you developing the testing setup lately. |
We're currently testing adding an integration suite to the project but unfortunately I think my first commit was not very stable and broke not long after netbox-docker was updated to 1.0.. I apologize. I think I have those issues sorted in #327 but it still needs a look over. As far as I know integration tests aren't needed yet but Zach will have to weigh in on path forward for now. I'm pretty sure this project should still support python2 but I'm not 100% sure to what extent. |
@berahtlv What version of python are you running? You should be able to run the unit tests using python 3 without error, but the integration tests will fail right now I think. Try running |
I am running python 3.6.8 and Netbox v2.9.3. Issue is related to App instance pickling. |
@raddessi @zachmoody Note that the master branch is still broken:
AFAIK |
Oh my apologies, for some reason I thought yaml was builtin in python 3.x now. We should probably add a requirements-dev.txt with yaml and the rest of the dev requirements listed in there in that case right? |
The PR (#331) is currently passing the checks (in GitHub), so let's see if @zachmoody will accept it. |
Add __getstate__ and __setstate__ methods in PluginsApp to fix #329
Yeah, for sure, just merged it. Been trying to get things together for the 6.0 release. Wanted to put this one in the last 5.x release, but I'd already merged some of the breaking changes before I remembered this one was still outstanding 😬 |
On pynetbox version higher than 5.0.8 it is not possible to pickle objects. Used for testing purposes in absence of Netbox.
pynetbox-5.3.1/pynetbox-5.1.1:
pynetbox-5.0.8:
The text was updated successfully, but these errors were encountered: