question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TypeError: b2a_hex() argument 1 must be string or buffer, not None

See original GitHub issue
usbrply --packet-numbers --no-setup --device-hi  -j 2019-12-26_07_snap.pcapng 

Traceback (most recent call last):
  File "/home/mcmaster/bin/usbrply", line 1172, in <module>
    gen.run()
  File "/home/mcmaster/bin/usbrply", line 613, in run
    p.loop(-1, self.loop_cb)
  File "/usr/lib/python2.7/dist-packages/pcap.py", line 115, in loop
    def loop(self, *args): return _pcap.pcapObject_loop(self, *args)
  File "/home/mcmaster/bin/usbrply", line 768, in loop_cb
    self.process_complete(dat_cur)
  File "/home/mcmaster/bin/usbrply", line 823, in process_complete
    self.processBulkComplete(dat_cur)
  File "/home/mcmaster/bin/usbrply", line 1113, in processBulkComplete
    self.processBulkCompleteOut(dat_cur)
  File "/home/mcmaster/bin/usbrply", line 1096, in processBulkCompleteOut
    'data': bytes2AnonArray(self.submit.m_data_out),
  File "/home/mcmaster/bin/usbrply", line 290, in bytes2AnonArray
    return binascii.hexlify(bytes)
TypeError: b2a_hex() argument 1 must be string or buffer, not None

https://drive.google.com/file/d/135_c2xcOkmGNMkW_2O4TxbmhdThg_k4Q/view?usp=sharing

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
JohnDMcMastercommented, Jul 7, 2020

No, but sounds like its affecting people so I’ll look into it

1reaction
JohnDMcMastercommented, Jul 12, 2020

Fixed in 22489bf559ab8fae335adf5cda39c5873062afe9

Looks like it was caused by incorrectly handling recycled URBs which are partially received (ie we get the complete but not the submit at the beginning of the capture). Linux based captures should have primarily been affected although Windows possibly was as well.

Please let me know if you still have issues!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: argument 1 must be string or buffer, not instance
Here is a simple code to perform a download from a list. import requests import shutil namelist = [...] addresslist = [.
Read more >
TypeError: argument 1 must be string or read-only buffer, not ...
Calling depgraph first time I've got the following error. Refresh ticket page everything works fine. (BUT: Got graphivz image without links, description or ......
Read more >
b2a_base64() argument 1 must be string or read-only buffer ...
TypeError : b2a_base64() argument 1 must be string or read-only buffer, not None. The connection shows up as successful, but no applications or...
Read more >
TypeError: type() argument 1 must be string, not None - Odoo
I've created a few simple modules, and never had this problem before. This is the first time I've tried adding a new class/table...
Read more >
解决python使用images2gif模块时候报错 - CSDN博客
Type error Argument 1 must be string or buffer not none. 这个真的是搞不明白是怎么回事,查了很多资料也没有办法解决,后来请教师傅的时候,得到 ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found