Coder Social home page Coder Social logo

Comments (8)

horazont avatar horazont commented on May 18, 2024

This looks like maybe a version mismatch between pyasn1_modules and pyasn1. Make sure to install both the same way.

from jabbercat.

cknoll avatar cknoll commented on May 18, 2024

pip install --upgrade pyasn1 (inside the venv) fixed that. It installed version 0.4.2

IMHO The problem was that pyasn1_modules was installed automatically in the venv but pyasn1 was used from the site-packages (version 0.1.9) where it lies around from debian package python3-pyasn1 (installed due to unrelated reasons).

While this is easy to fix I still think this should be handled via install_requires= ... in setup.py of aioxmpp.

from jabbercat.

horazont avatar horazont commented on May 18, 2024

I’m not sure what an install_requires can do here? We would have to pin to a specific version of pyasn1 or pyasn1_modules, which I don’t want to.

from jabbercat.

cknoll avatar cknoll commented on May 18, 2024

What about pyasn1>=0.4like in the case of aiosasl>=0.3?

from jabbercat.

horazont avatar horazont commented on May 18, 2024

But we don’t strictly require pyasn1>=0.4. This is a dependency problem with pyasn1_modules, not aioxmpp, if I understand the situation correctly.

FWIW, the other alternative should be to install python3-pyasn1-modules outside the venv.

from jabbercat.

cknoll avatar cknoll commented on May 18, 2024

Hmm. You are right. Someone should open an issue there.

Nevertheless there is the pragmatic view: fixing that dependency might prevent problems for other testers leaving more time and motivation for actual testing of jabbercat.

from jabbercat.

horazont avatar horazont commented on May 18, 2024

I’ll leave a note in the testing guide.

I also think that this might be due to pip not ensuring that dependencies w.r.t. --system-site-packages are actually fulfilled, instead of a missing dependency declaration at pyasn1_modules.

At which point the question is whether:

  1. simplify the testing process by removing --system-site-packages, with the downside that people will install things like PyOpenSSL into a venv, or
  2. add another note to guide people on what to do…

from jabbercat.

cknoll avatar cknoll commented on May 18, 2024

I think the cleanest way is what you mentioned above:

install python3-pyasn1-modules outside the venv.

I tried it:

  1. uninstalled pyasn1 and pyasn1_modules via pip in the venv,
  2. installed python3-pyasn1-modules via apt)

→ jabbercat does start.

This would mean to add some additional dependencies to the guide but no extra prosa notes which are tedious to process.

from jabbercat.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.