Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import issues? #85

Open
4 tasks done
mikeask23 opened this issue Feb 22, 2025 · 0 comments
Open
4 tasks done

import issues? #85

mikeask23 opened this issue Feb 22, 2025 · 0 comments
Assignees

Comments

@mikeask23
Copy link

Question

Hello, somehow the lib kept crashing and had to debug it in cursor until it launched the GUI but then trying to do anything led to these errors:

(venv) PS C:\Users\new\projects\gpt-computer-agent\gpt-computer-agent> computeragent
C:\Users\new\projects\gpt-computer-agent\gpt-computer-agent\venv\Lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg,
but may not work warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
Imported all libraries
Profile: None
API Enabled: False
Loading font
c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\utils\media\SF-Pro-Text-Bold.otf
QWidget::setLayout: Attempting to set QLayout "" on MainWindow "", which already has a layout
300 210
QCssParser::parseColorValue: Specified color without alpha value but alpha given: 'rgb 0,0,0,0'
Error playing click sound: The 'opentelemetry-semantic-conventions==0.51b0' distribution was not found and is required by opentelemetry-sdk
State updated: thinking
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 349, in keyPressEvent
return_key_event()
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
Error playing click sound: partially initialized module 'pygame' has no attribute 'color' (most likely due to a circular import)
State updated: thinking
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 349, in keyPressEvent
return_key_event()
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 1222, in input_box_send
self.button_handler.input_text(input_box.toPlainText())
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gui\button.py", line 142, in input_text
self.main_window.update_state("thinking")
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 1469, in update_state
the_main_window.update_from_thread("Thinking...")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'update_from_thread'
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
[08:11:59] Database folder created kot.py:95
CHAT []
SETTING CHAT
SYSTEM {'type': 'text', 'text': 'Hi, you are an platform for vertical AI. You need to understant the user aspect and then trying to do these things and give valuation.'}
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gui\settings.py", line 45, in clear_chat_history_
the_main_window.update_from_thread("Cleared Chat History")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'update_from_thread'
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gui\settings.py", line 84, in activate_just_text_model_
the_main_window.update_from_thread("Enabled Just Text Model")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'update_from_thread'
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gui\llmsettings.py", line 252, in on_model_change
the_main_window.add_screenshot_button()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'add_screenshot_button'
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gui\llmsettings.py", line 252, in on_model_change
the_main_window.add_screenshot_button()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'add_screenshot_button'
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gui\llmsettings.py", line 47, in
save_button.clicked.connect(lambda: save_api_key_(api_key_input.text()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gui\llmsettings.py", line 43, in save_api_key_
the_main_window.update_from_thread("Saved API Key")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'update_from_thread'
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gui\llmsettings.py", line 47, in
save_button.clicked.connect(lambda: save_api_key_(api_key_input.text()))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gui\llmsettings.py", line 43, in save_api_key_
the_main_window.update_from_thread("Saved API Key")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'update_from_thread'
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
Traceback (most recent call last):
File "c:\users\new\projects\gpt-computer-agent\gpt-computer-agent\gpt_computer_agent\gpt_computer_agent.py", line 565, in paintEvent
1 + math.sin(self.main_.pulse_frame * math.pi / 100)
^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'MainWindow' object has no attribute 'pulse_frame'. Did you mean: 'pulse_circle'?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QBackingStore::endPaint() called with active painter; did you forget to destroy it or call QPainter::end() on it?
QPainter::begin: A paint device can only be painted by one painter at a time.
QPainter::setCompositionMode: Painter not active

Category

Setup and Deployment

Please tick the boxes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

2 participants