No announcement yet.

Python - OpenStack - pickle dump and load

  • Filter
  • Time
  • Show
Clear All
new posts

    Python - OpenStack - pickle dump and load

    Hi all, hope you can help me. The problem is the following.

    I create an object in python, consisting of some lists. I save this object to a file using pickle.dump and load it using pickle.load. Everything works fine and i can still use it as the object i created (access the lists etc.)

    But it does not work, when i do the following
    1. create object
    2. pickle.dump locally
    3. upload the dumped file into an OpenStack Cloud
    4. download it again to local
    5. pickle.load the downloaded file

    After i load it i just get a string and not the object which means, i cannot access the lists for example.

    Any idea what to do? I don't understand why it should make a difference