Coder Social home page Coder Social logo

Compatibility with Python 3.9? about biophi HOT 4 CLOSED

merck avatar merck commented on June 8, 2024
Compatibility with Python 3.9?

from biophi.

Comments (4)

prihoda avatar prihoda commented on June 8, 2024

Hi @JPereira-FJB good news, we recently updated Sapiens to use latest fairseq version which enables us to use latest torch version which enables us to use python 3.9 😄

So I just merged #37 and submitted the changes to BioConda bioconda/bioconda-recipes#41010. Once that is merged, the package should appear on bioconda and you can update using conda activate your_env; conda install biophi==1.0.9.

Updating the python version in a conda env is sometimes tricky, so if that fails, it might be easiest to remove the environment and create it again from scratch.

from biophi.

JPereira-FJB avatar JPereira-FJB commented on June 8, 2024

Thanks, @prihoda !

I'll try it out once it merges.

Another unrelated question: from the docker-compose.yml, I can change the port of both the web service and the redis cache the celery workers are connected to. I'm using this to connect to my Redis cache running locally, outside the container. It works great if they subscribe to database 0. It fails (error bellow) if I change the database number to 1 or 2 (or even 1 for task queue and 2 for results cache). Is it possible to change this somehow?

worker_1  | [2023-05-17 09:55:19,967: CRITICAL/MainProcess] Can't decode message body: ContentDisallowed('Refusing to deserialize untrusted content of type json (application/json)') [type:'application/json' encoding:'utf-8' headers:{'clock': 279, 'expires': 1684317320.9657383}]
worker_1  | 
worker_1  | body: b'{"method": "enable_events", "arguments": {}, "destination": null, "pattern": null, "matcher": null}' (99b)
worker_1  | Traceback (most recent call last):
worker_1  |   File "/opt/conda/lib/python3.8/site-packages/kombu/messaging.py", line 620, in _receive_callback
worker_1  |     decoded = None if on_m else message.decode()
worker_1  |   File "/opt/conda/lib/python3.8/site-packages/kombu/message.py", line 194, in decode
worker_1  |     self._decoded_cache = self._decode()
worker_1  |   File "/opt/conda/lib/python3.8/site-packages/kombu/message.py", line 198, in _decode
worker_1  |     return loads(self.body, self.content_type,
worker_1  |   File "/opt/conda/lib/python3.8/site-packages/kombu/serialization.py", line 242, in loads
worker_1  |     raise self._for_untrusted_content(content_type, 'untrusted')
worker_1  | kombu.exceptions.ContentDisallowed: Refusing to deserialize untrusted content of type json (application/json)

from biophi.

prihoda avatar prihoda commented on June 8, 2024

I must say that's the first time I see that error message so I can't guess what could have gone wrong. It should be possible to use a different DB number.

Perhaps that DB contained some entries serialized previously by another celery application - we use pickle for serialization, not json.

from biophi.

JPereira-FJB avatar JPereira-FJB commented on June 8, 2024

That might be the case, I think I may have some other tool adding json entries, now that you mention it.
Thanks!

from biophi.

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.