Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

Rename get_node for PyTables 3.x dependency#7

Open
daviddao wants to merge 1 commit into
openai:masterfrom
daviddao:patch-1
Open

Rename get_node for PyTables 3.x dependency#7
daviddao wants to merge 1 commit into
openai:masterfrom
daviddao:patch-1

Conversation

@daviddao
Copy link
Copy Markdown

@daviddao daviddao commented May 16, 2017

Running the script in train phase will give me following error:

File "[localpath]/imitation/policyopt/nn.py", line 393, in write_snapshot
self.f.getNode(snapshot_root)._v_attrs.hash = model.savehash()
AttributeError: 'File' object has no attribute 'getNode'

That's because PyTables changed some of its API for 3.x

Renaming File.getNode into File.get_node will fix the issue.

PyTable 3.x renamed `File.getNode` into `File.get_node`
Copy link
Copy Markdown

@rexionmars rexionmars left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants