MycroftAI / snapcraft-mycroft-core

This project is for building mycroft-core snaps
MIT License
13 stars 11 forks source link

Pip failing to cleanup after installing any dependency in Snap Core #12

Open krisgesling opened 4 years ago

krisgesling commented 4 years ago

After modifying the build flags for the snapcraft-preload the following error is reported when installing any requirements with PIP.

This doesn't not block the installation of the packages.

mycroft/common/venv/lib/python3.6/site-packages/pip/_internal/utils/misc.py", line 136, in rmtree
            onerror=rmtree_errorhandler)
          File "/snap/mycroft/current/usr/lib/python3.6/shutil.py", line 486, in rmtree
            _rmtree_safe_fd(fd, path, onerror)
          File "/snap/mycroft/current/usr/lib/python3.6/shutil.py", line 424, in _rmtree_safe_fd
            _rmtree_safe_fd(dirfd, fullname, onerror)
          File "/snap/mycroft/current/usr/lib/python3.6/shutil.py", line 437, in _rmtree_safe_fd
            onerror(os.path.islink, fullname, sys.exc_info())
          File "/snap/mycroft/current/usr/lib/python3.6/shutil.py", line 434, in _rmtree_safe_fd
            raise OSError("Cannot call rmtree on a symbolic "
        OSError: Cannot call rmtree on a symbolic link
krisgesling commented 4 years ago

Possibly related to: https://github.com/MycroftAI/snapcraft-mycroft-core/blob/b514dc96d2ada17530a6269043a0ebd56464615c/scripts/mycroft-launch#L64