Comments (7)
Yes imaginepy API is down. I am looking for an alternative
from telegrambot-with-gpt.
Fixed
from telegrambot-with-gpt.
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.
update imaginepy from github https://github.com/ItsCEED/Imaginepy. I already updated the requirements.txt
from telegrambot-with-gpt.
I have latest (1.1.0) imaginepy, tried to pip3 install -r requirements.txt, but problem is still here
from telegrambot-with-gpt.
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.
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)
- Stuck on language HOT 2
- My issues about images is still actual HOT 1
- Hi HOT 3
- IndexError: list index out of range HOT 1
- base URLs failed HOT 1
- persona missing in db HOT 3
- Captcha HOT 1
- ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE HOT 1
- Select from the models or providers HOT 1
- bot token error HOT 1
- Not available HOT 2
- https://chimeragpt.adventblocks.cc/api/v1 not working HOT 9
- 404 via dalle generation HOT 4
- how to get key HOT 10
- Many connect errors HOT 1
- Some code is not displayed correctly in telegram HOT 4
- TTS and image is not working HOT 7
- Tts not working
- Commands /changeprovider or /changebot doesn't working HOT 1
- Image processing does't working HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegrambot-with-gpt.