ImportError: cannot import name ‘etree’ on Python 3.6
Just in case anybody has similar issue. I also encountered this problem using Python3.6. Just by uninstalling lxml and installing it again with pip the issue is resolved.
Just in case anybody has similar issue. I also encountered this problem using Python3.6. Just by uninstalling lxml and installing it again with pip the issue is resolved.
You can just use copy.deepcopy() to make a copy of the element. (this will also work with lxml by the way).