ossia / ossia/libossia

[ossia-python] python2 throw TypeError: unicode argument without an encoding on __init__.py

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

Nobody has claimed this yet.

bug crash need help
Dominant language
C++
Stars
231
Forks
35
Avg merge
8h 55m
Merged PRs (30d)
14

Description

$ python2 test.py 
[warning] Could not set TCP nodelay option
Traceback (most recent call last):
  File "test.py", line 29, in <module>
    class TestAll(unittest.TestCase):
  File "test.py", line 51, in TestAll
    my_device.root_node.init()
  File "/home/antoine/.local/lib/python2.7/site-packages/pyossia/__init__.py", line 187, in init
    for param in self.get_parameters():
TypeError: unicode argument without an encoding

Contributor guide

Open the contributing guide

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

The traceback points to pyossia/init.py line 187, and the reproduction uses test.py with Python 2. Start by running that example and tracing the parameter handling in init(); done means initialization no longer raises the reported unicode TypeError under Python 2.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.