You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tested: Turris Omnia, mvebu, OpenWrt {18.06,19.07,master}
When you install python3-simplejson on router, it will install following files: tree /usr/lib/python3.7/site-packages/simplejson*
/usr/lib/python3.7/site-packages/simplejson
├── init.pyc
├── _speedups.cpython-37.so
├── compat.pyc
├── decoder.pyc
├── encoder.pyc
├── errors.pyc
├── ordered_dict.pyc
├── raw_json.pyc
├── scanner.pyc
└── tool.pyc
/usr/lib/python3.7/site-packages/simplejson-3.16.0-py3.7.egg-info
├── PKG-INFO
├── SOURCES.txt
├── dependency_links.txt
└── top_level.txt
When you do opkg-remove python3-simplejson, it will not remove folder egg-info, but contents of that folder, it does.
When the folder is present, Python3 detects is as installed.
root@turris:~# python3
Python 3.7.4 (default, Oct 01 2019, 23:50:45)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import simplejson
simplejson.loads('{}')
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'simplejson' has no attribute 'loads'
When you remove the folders manually, which were not removed by opkg then the import of simplejson does not work as it should.
root@turris:~# python3
Python 3.7.4 (default, Oct 01 2019, 23:50:45)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
import simplejson
Traceback (most recent call last):
File "", line 1, in
ModuleNotFoundError: No module named 'simplejson'
Pepe:
Tested: Turris Omnia, mvebu, OpenWrt {18.06,19.07,master}
When you install python3-simplejson on router, it will install following files:
tree /usr/lib/python3.7/site-packages/simplejson*
/usr/lib/python3.7/site-packages/simplejson
├── init.pyc
├── _speedups.cpython-37.so
├── compat.pyc
├── decoder.pyc
├── encoder.pyc
├── errors.pyc
├── ordered_dict.pyc
├── raw_json.pyc
├── scanner.pyc
└── tool.pyc
/usr/lib/python3.7/site-packages/simplejson-3.16.0-py3.7.egg-info
├── PKG-INFO
├── SOURCES.txt
├── dependency_links.txt
└── top_level.txt
When you do opkg-remove python3-simplejson, it will not remove folder egg-info, but contents of that folder, it does.
When the folder is present, Python3 detects is as installed.
root@turris:~# python3
Python 3.7.4 (default, Oct 01 2019, 23:50:45)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
When you remove the folders manually, which were not removed by opkg then the import of simplejson does not work as it should.
root@turris:~# python3
Python 3.7.4 (default, Oct 01 2019, 23:50:45)
[GCC 7.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
Explained here: openwrt/packages#10136
The text was updated successfully, but these errors were encountered: