Giter Club home page Giter Club logo

Comments (7)

noes14155 avatar noes14155 commented on June 8, 2024

Yes imaginepy API is down. I am looking for an alternative

from telegrambot-with-gpt.

noes14155 avatar noes14155 commented on June 8, 2024

Fixed

from telegrambot-with-gpt.

vasmarfas avatar vasmarfas commented on June 8, 2024

If i try to generate img, i get this error in terminal
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-68' coro=<Dispatcher._process_polling_updates() done, defined at /usr/local/lib/python3.10/dist-packages/aiogram/dispatcher/dispatcher.py:407> exception=TypeError('AsyncImagine.init() takes 1 positional argument but 2 were given')>
Traceback (most recent call last):
File "/usr/local/lib/python3.10/dist-packages/aiogram/dispatcher/dispatcher.py", line 415, in _process_polling_updates
for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
File "/usr/local/lib/python3.10/dist-packages/aiogram/dispatcher/dispatcher.py", line 235, in process_updates
return await asyncio.gather(*tasks)
File "/usr/local/lib/python3.10/dist-packages/aiogram/dispatcher/handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "/usr/local/lib/python3.10/dist-packages/aiogram/dispatcher/dispatcher.py", line 256, in process_update
return await self.message_handlers.notify(update.message)
File "/usr/local/lib/python3.10/dist-packages/aiogram/dispatcher/handler.py", line 117, in notify
response = await handler_obj.handler(*args, **partial_data)
File "/home/ubuntu/Telegrambot-with-GPT4free/main.py", line 200, in generate_image
filename = await text_task
File "/home/ubuntu/Telegrambot-with-GPT4free/bot/botmedia.py", line 43, in generate_image
imagine = AsyncImagine(style_enum)
TypeError: AsyncImagine.init() takes 1 positional argument but 2 were given

from telegrambot-with-gpt.

noes14155 avatar noes14155 commented on June 8, 2024

update imaginepy from github https://github.com/ItsCEED/Imaginepy. I already updated the requirements.txt

from telegrambot-with-gpt.

vasmarfas avatar vasmarfas commented on June 8, 2024

I have latest (1.1.0) imaginepy, tried to pip3 install -r requirements.txt, but problem is still here

from telegrambot-with-gpt.

noes14155 avatar noes14155 commented on June 8, 2024

pip install won't work as imaginepy pypi package is not updated.
pip uninstall imaginepy
git clone https://github.com/ItsCEED/Imaginepy
cd Imaginepy
python setup.py install

from telegrambot-with-gpt.

vasmarfas avatar vasmarfas commented on June 8, 2024

Got imaginepy from github
Got this error in console

ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-23' coro=<Dispatcher._process_polling_updates() done, defined at /usr/local/lib/python3.1                            0/dist-packages/aiogram/dispatcher/dispatcher.py:407> exception=ConnectionError("An error occurred while making the request                            : 404, message='Not Found', url=URL('https://inferenceengine.vyro.ai/sdprem')")>
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/imaginepy-1.1.0-py3.10.egg/imaginepy/async_imagine.py", line 78, in sdprem
    async with self.session.post(
  File "/usr/local/lib/python3.10/dist-packages/aiohttp/client.py", line 1141, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.10/dist-packages/aiohttp/client.py", line 643, in _request
    resp.raise_for_status()
  File "/usr/local/lib/python3.10/dist-packages/aiohttp/client_reqrep.py", line 1005, in raise_for_status
    raise ClientResponseError(
aiohttp.client_exceptions.ClientResponseError: 404, message='Not Found', url=URL('https://inferenceengine.vyro.ai/sdprem')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.10/dist-packages/aiogram/dispatcher/dispatcher.py", line 415, in _process_polling_updates
    for responses in itertools.chain.from_iterable(await self.process_updates(updates, fast)):
  File "/usr/local/lib/python3.10/dist-packages/aiogram/dispatcher/dispatcher.py", line 235, in process_updates
    return await asyncio.gather(*tasks)
  File "/usr/local/lib/python3.10/dist-packages/aiogram/dispatcher/handler.py", line 117, in notify
    response = await handler_obj.handler(*args, **partial_data)
  File "/usr/local/lib/python3.10/dist-packages/aiogram/dispatcher/dispatcher.py", line 256, in process_update
    return await self.message_handlers.notify(update.message)
  File "/usr/local/lib/python3.10/dist-packages/aiogram/dispatcher/handler.py", line 117, in notify
    response = await handler_obj.handler(*args, **partial_data)
  File "/home/ubuntu/Telegrambot-with-GPT4free/main.py", line 184, in generate_image
    filename = await text_task
  File "/home/ubuntu/Telegrambot-with-GPT4free/bot/botmedia.py", line 46, in generate_image
    img_data = await imagine.sdprem(
  File "/usr/local/lib/python3.10/dist-packages/imaginepy-1.1.0-py3.10.egg/imaginepy/async_imagine.py", line 95, in sdprem
    raise ConnectionError(f"An error occurred while making the request: {e}")
ConnectionError: An error occurred while making the request: 404, message='Not Found', url=URL('https://inferenceengine.vyr                            o.ai/sdprem')

from telegrambot-with-gpt.

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.