Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#2725 - opkg remove does not remove empty folders #7519

Open
openwrt-bot opened this issue Jan 11, 2020 · 0 comments · May be fixed by #10061
Open

FS#2725 - opkg remove does not remove empty folders #7519

openwrt-bot opened this issue Jan 11, 2020 · 0 comments · May be fixed by #10061
Labels

Comments

@openwrt-bot
Copy link

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.

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'

Explained here: openwrt/packages#10136

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant