Coder Social home page Coder Social logo

Comments (3)

Descent098 avatar Descent098 commented on September 27, 2024 1

So this issue is being caused by the way the error class is created, I assume compatibility was broken along the way.

I rewrote the exception class which worked for my use case but I don't have C++ buildtools installed to run tests so your milage may vary. I rewrote

hyde/hyde/exceptions.py

Lines 4 to 10 in 7f41540

class HydeException(Exception):
"""Base class for exceptions from hyde."""
@staticmethod
def reraise(message, exc_info):
_, _, tb = exc_info
reraise(HydeException, HydeException(message), tb)

to

class HydeException(Exception):
    """Base class for exceptions from hyde."""

    def __init__(self, *args):
        if args:
            self.message = args[0]
        else:
            self.message = None
    def __repr__(self):
        """What is printed if something goes wrong"""
        if self.message:
            return "Exception raised: {}".format(self.message)
        else:
            return "Unlucky there bud"

and now can use it, but I created the PR #327 for this but the test are failing due to a dependency installation error which I don't know enough about the framework to fix. Use at own risk.

from hyde.

navilan avatar navilan commented on September 27, 2024

@Descent098 - Thanks for the report and the fix.

from hyde.

Descent098 avatar Descent098 commented on September 27, 2024

I am going to close this ticket as I am going to continue the fixes as part of the resolution of #270 for the 1.0.0 release

from hyde.

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.