Code Monkey home page Code Monkey logo

Comments (12)

Timothy102 avatar Timothy102 commented on June 12, 2024 1

Please refer to the entire code here: https://github.com/Timothy102/soniox/blob/main/main.py.

I have no idea what an EnhancedModule is. I'm running the code above and nothing else.

from ray.

hongchaodeng avatar hongchaodeng commented on June 12, 2024

Can you reformat the above description? It seemed that the repro steps are mis-formatted.

Can you also paste the error message?

from ray.

Timothy102 avatar Timothy102 commented on June 12, 2024

Here's the error I receieve.

TypeError: Could not serialize the function main.store_all_videos_and_captions_from_urls:
================================================================================
Checking Serializability of <function store_all_videos_and_captions_from_urls at 0x7f7e44fb8b80>
================================================================================
!!! FAIL serialization: cannot pickle 'EnhancedModule' object
Detected 3 global variables. Checking serializability...
    Serializing 'Channels' <class '__main__.Channels'>...
    Serializing 'Channel' <class '__main__.Channel'>...
    Serializing 'preprocessing_video' <ray.remote_function.RemoteFunction object at 0x7f7e44faab80>...
    !!! FAIL serialization: cannot pickle 'EnhancedModule' object
        Serializing '_function' <function preprocessing_video at 0x7f7e49233dc0>...
        !!! FAIL serialization: cannot pickle 'EnhancedModule' object
        Detected 1 global variables. Checking serializability...
            Serializing 'Video' <__main__.ActorClass(Video) object at 0x7f7e44faaa90>...
            !!! FAIL serialization: cannot pickle 'EnhancedModule' object
        Serializing '__generator_backpressure_num_objects' None...
================================================================================
Variable: 

        FailTuple(Video [obj=<__main__.ActorClass(Video) object at 0x7f7e44faaa90>, parent=<function preprocessing_video at 0x7f7e49233dc0>])

from ray.

hongchaodeng avatar hongchaodeng commented on June 12, 2024

What's the main.py? Can you provide a repro script? Without it, it's very difficult for us to dig down further and do anything.

from ray.

hongchaodeng avatar hongchaodeng commented on June 12, 2024

FAIL serialization: cannot pickle 'EnhancedModule' object

What's this EnhancedModule specifically?

from ray.

anyscalesam avatar anyscalesam commented on June 12, 2024

tag @hongchaodeng

from ray.

hongchaodeng avatar hongchaodeng commented on June 12, 2024

Thanks for providing it! Added it to our support backlogs. Will debug it.

from ray.

hongchaodeng avatar hongchaodeng commented on June 12, 2024

OK I looked at the code and figured out the root cause here.

The EnhancedModule comes form the yt-dlp library that your code is using:

https://github.com/yt-dlp/yt-dlp/blob/ac817bc83efd939dca3e40c4b527d0ccfc77172b/yt_dlp/compat/compat_utils.py#L30

This one is not serializable. There might be more though.

You have to do customized serialization as documented here: https://github.com/yt-dlp/yt-dlp/blob/ac817bc83efd939dca3e40c4b527d0ccfc77172b/yt_dlp/compat/compat_utils.py#L30

from ray.

Timothy102 avatar Timothy102 commented on June 12, 2024

Hey, thank you, but you pasted the same link twice and that still doesn't tell me how I can fix this issue.

Your prompt attention would be greatly appreciated.

from ray.

hongchaodeng avatar hongchaodeng commented on June 12, 2024

Sorry.
It is this doc: https://docs.ray.io/en/latest/ray-core/objects/serialization.html#customized-serialization

from ray.

Timothy102 avatar Timothy102 commented on June 12, 2024

So, how exactly should this class of mine look like?

class Channel: """Each Channel is a class of its own. """ def __init__(self, channel_id, url=None, args=None): self.url = url self.channel_id = channel_id self.output_folder = args.output_folder

from ray.

Timothy102 avatar Timothy102 commented on June 12, 2024

https://github.com/Timothy102/soniox -- please check do.py again. This code is not coming through. I'm dying here.

from ray.

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.