Coder Social home page Coder Social logo

Incompatible HTTP factory about laravel-printing HOT 10 OPEN

rawilk avatar rawilk commented on September 28, 2024
Incompatible HTTP factory

from laravel-printing.

Comments (10)

jelleroorda avatar jelleroorda commented on September 28, 2024 2

After researching, I've worked around it by installing the legacy interface, as well as locking psr/http-message to 1.*:

In the composer.json:

"psr/http-message": "1.*",

from laravel-printing.

ok200paul avatar ok200paul commented on September 28, 2024 1

Ah - found out what it was. I added the following to composer.json:

        "php-http/message-factory": "^1.1",
        "psr/http-message": "1.*",

.. and my printing began to work again.

I'll mount the package and see if I can get its dependencies updated into a PR so that we don't need to perform this legacy package fiddling 👍

from laravel-printing.

jelleroorda avatar jelleroorda commented on September 28, 2024 1

Yes, so basically I now have both installed, as well as pinned the psr/http-message to 1.* like you have. I've also had a quick look, but it looks like it will be quite some work to fix this issue, mostly because the smalot/cups-ipp package is 6 years old and basically deprecated. We should probably upgrade that one first, to use the current modern client.

from laravel-printing.

rawilk avatar rawilk commented on September 28, 2024 1

I mentioned on #81 that I would like to just write my own implementation for CUPS at some point so we could just eliminate the smalot/cups-ipp dependency completely, since they haven't updated their PSR implementation for some time. Since I don't use CUPS myself, I don't really have any real incentive besides making my automated tests run easier for the package, so I don't know when or if I'll get a chance to do that. If anyone is able to come up with a good solution in the meantime, I'd definitely appreciate PR's on this.

from laravel-printing.

ok200paul avatar ok200paul commented on September 28, 2024

Thanks for this @jelleroorda - trying to overcome this issue myself. I'm still seeing this issue after popping the following into our composer.json and updating:

"psr/http-message": "1.*",

Could you please elaborate on what you mean by "installing the legacy interface"? Doe you mean installing "php-http/message-factory" here, alongside psr/http-message?

Thanks again for raising this issue, hopefully I can assist with a PR of some kind

from laravel-printing.

github-actions avatar github-actions commented on September 28, 2024

This issue is stale because it has been open 21 days with no activity. Remove stale label or comment or this will be closed in 7 days.

from laravel-printing.

jelleroorda avatar jelleroorda commented on September 28, 2024

@rawilk Perhaps it’s an idea to remove this stale bot? You don’t seem to actively maintain this package currently (which is okay!).

Closing all these “actual issues” through the bot makes it seem like this package is actively maintained (keeps the issue count low). This is not very helpful for people who find this package and don’t immediately see this package is not actively maintained. It also has the effect that the same issue gets opened multiple times, because you’re unlikely to search for closed issues when you encounter an issue. For example, this issue is related to #70 which is found after opening this issue.

from laravel-printing.

rawilk avatar rawilk commented on September 28, 2024

@jelleroorda I can definitely remove the stale bot - seemed like a good idea at the time to add it.
I do maintain the package still, just not as frequently as I'd like to. I have email notifications turned off unless someone tags me, so I often forget to check all of my open source packages for new issues and PR's.

from laravel-printing.

DmNick avatar DmNick commented on September 28, 2024

@rawilk josh-gaby/cups-ipp fixed smalot's repo and its working well

from laravel-printing.

rawilk avatar rawilk commented on September 28, 2024

@DmNick Thanks for the info. I'll look into it when I get a chance.

from laravel-printing.

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.