osmo-python-tests py3 fail

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Neels Hofmeyr nhofmeyr at sysmocom.de
Mon Jan 8 11:25:09 UTC 2018


Interesting, I notice that now the python scripts are no longer installed in a
way where you can find or grep them.

In /usr/local/bin, I get "EASY-INSTALL" shims like

  #!/usr/bin/python2
  # EASY-INSTALL-SCRIPT: 'osmopython==0.0.6','osmotestvty.py'
  __requires__ = 'osmopython==0.0.6'
  __import__('pkg_resources').run_script('osmopython==0.0.6', 'osmotestvty.py')

and in /usr/local/lib/py*, all I get is "egg" files which appear to be zip
balls of the actual python scripts.

Actual error messages refer to the file inside the zip egg:

>   File "/usr/local/lib/python3.6/dist-packages/osmopython-0.0.6-py3.6.egg/osmopy/obscvty.py", line 179, in _common_command
>     self.socket.send("%s\r" % request)
> TypeError: a bytes-like object is required, not 'str'

I liked to have the scripts in plain sight, I doubt that zipping some py script
has any benefits that outweigh unzipping cost ... but I guess it's bearable when
aware of this.

~N
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.osmocom.org/pipermail/openbsc/attachments/20180108/af176bc1/attachment.bin>


More information about the OpenBSC mailing list