<!-- If you are an Enterprise customer, you might want to head over to our [Customer Support Portal](https://support.neo4j.com/). --> <!-- If you are unsure about the usage of the driver, this issue tracker is not the right place to ask. Please use one of the following channels instead: - Neo4j Online Community: https://community.neo4j.com/ - StackOverflow: https://stackoverflow.com/questions/tagged/neo4j+python - Discord: https://discord.gg/neo4j - Neo4j Support Portal if you are an enterprise customer: https://support.neo4j.com/ or check the documentation: - API documentation: https://neo4j.com/docs/api/python-driver/current/ - Driver manual: https://neo4j.com/docs/python-manual/current/ --> <!-- Make sure you've searched the issue tracker for similar issues first. --> # Bug Report `Graph` objects as returned by the driver can't be pickled. They obviously should be. ```python query = "match (n)-[r]-(m) return n,r,m limit 10 with driver.session() as session: g = session.run(query).graph() pickle.dumps(g) ``` ```_pickle.PicklingError: Can't pickle <class 'abc.total'>: attribute lookup total on abc failed``` total is a node property (a float) # My Environment Python Version: Python 3.10.13 (main, Aug 25 2023, 13:20:03) [GCC 9.4.0] Driver Version: neo4j==5.23.1 Server Version and Edition: 4.4.29 and 5.23.0 (both enterprise) Operating System: WSL2 ubuntu 22.04