Install Error

196 views
Skip to first unread message

Steve Choi

unread,
Jun 7, 2022, 10:21:15 PM6/7/22
to SleekXMPP Discussion
Hello, Today I tried to install SleekXMPP on Ubuntu 22.04, But Showed error message like this. Anybody sloved the problem?

Defaulting to user installation because normal site-packages is not writeable
Collecting sleekxmpp
  Using cached sleekxmpp-1.3.3.tar.gz (845 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
 
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [20 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-5jxrvhap/sleekxmpp_3f85babb325e4991bd55893bbaf9f0bf/setup.py", line 19, in <module>
          from sleekxmpp.version import __version__
        File "/tmp/pip-install-5jxrvhap/sleekxmpp_3f85babb325e4991bd55893bbaf9f0bf/sleekxmpp/__init__.py", line 20, in <module>
          from sleekxmpp.stanza import Message, Presence, Iq
        File "/tmp/pip-install-5jxrvhap/sleekxmpp_3f85babb325e4991bd55893bbaf9f0bf/sleekxmpp/stanza/__init__.py", line 10, in <module>
          from sleekxmpp.stanza.error import Error
        File "/tmp/pip-install-5jxrvhap/sleekxmpp_3f85babb325e4991bd55893bbaf9f0bf/sleekxmpp/stanza/error.py", line 9, in <module>
          from sleekxmpp.xmlstream import ElementBase, ET
        File "/tmp/pip-install-5jxrvhap/sleekxmpp_3f85babb325e4991bd55893bbaf9f0bf/sleekxmpp/xmlstream/__init__.py", line 9, in <module>
          from sleekxmpp.jid import JID
        File "/tmp/pip-install-5jxrvhap/sleekxmpp_3f85babb325e4991bd55893bbaf9f0bf/sleekxmpp/jid.py", line 25, in <module>
          from sleekxmpp.thirdparty import OrderedDict
        File "/tmp/pip-install-5jxrvhap/sleekxmpp_3f85babb325e4991bd55893bbaf9f0bf/sleekxmpp/thirdparty/__init__.py", line 13, in <module>
          from sleekxmpp.thirdparty.orderedset import OrderedSet
        File "/tmp/pip-install-5jxrvhap/sleekxmpp_3f85babb325e4991bd55893bbaf9f0bf/sleekxmpp/thirdparty/orderedset.py", line 25, in <module>
          class OrderedSet(collections.MutableSet):
      AttributeError: module 'collections' has no attribute 'MutableSet'
      [end of output]
 
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

Ricky Darius

unread,
Oct 4, 2022, 5:28:11 PM10/4/22
to SleekXMPP Discussion
Did you find a solution for this?

Sam Whited

unread,
Oct 4, 2022, 8:42:43 PM10/4/22
to sleekxmpp-...@googlegroups.com
SleekXMPP has been unmaintained for quite a long time; it's not likely you'll be able to install and use it with any modern version of Python. Try aioxmpp instead.

—Sam
> --
> You received this message because you are subscribed to the Google
> Groups "SleekXMPP Discussion" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to sleekxmpp-discus...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/sleekxmpp-discussion/853c7962-6de2-4ea2-82fa-5b653418c5a4n%40googlegroups.com.

--
Sam Whited

Dean Sauer

unread,
Mar 15, 2023, 5:44:42 PM3/15/23
to SleekXMPP Discussion

The issue for this is that in Python 3.10 or greater the collections library is deprecated and you have to change to: collections.abc,

A QUICK AND DIRTY HACK is:

Edit
/usr/lib/python3/dist-packages/sleekxmpp/thirdparty/orderedset.py

And CHANGE as follows:
# import collections
import  collections.abc
collections = collections.abc

This fixes the operation of a program I am using so... it gets to the point I get on 20.04/3.9 python or less...
Reply all
Reply to author
Forward
0 new messages