infinispan / infinispan/python-client

Writing python object to remote cache

Open
#9 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
17
Forks
12
PR merge metrics
No merged PRs in 30d

Description

I have a SampleObject in python which i am trying to write to remoteCache using:

objtemp1 = SampleObject()
cache.put("sampleObject" + str(x) , objtemp1)

But, it gives me this error:

File "/python-client-master/infinispan/**init**.py", line 62, in
to_varint(len(v)) + v
TypeError: cannot concatenate 'str' and 'SampleObject' objects

I think it is something related to serialization of python object. Can someone help with the error and possible solution.

Thanks,
Sonal

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with python-client/__init__.py at line 62 and trace the cache.put("sampleObject" + str(x), objtemp1) path. Reproduce the TypeError with SampleObject and determine the project's supported serialization behavior. Done should be a documented or implemented resolution for writing Python objects to the remote cache, with a test or example showing the result.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.