Closed VioletRaven closed 6 months ago
There's another issue where this has been reported before (#898).
The workaround is to use Python 3.10 or higher.
On Fri, Dec 15, 2023, 16:40 Andrea Serrano @.***> wrote:
After doing:
Run gpte
with a relative path to your folder For example: gpte projects/my-new-project from the gpt-engineer directory root with your new folder in projects/ I should be using the correct relative path and I get
Traceback (most recent call last): File "C:\Users\a.serrano\AppData\Local\pypoetry\Cache\virtualenvs\gpt-engineer-elTYTC0x-py3.9\Scripts\gpte", line 3, in
from gpt_engineer.applications.cli.main import app File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\applications\cli\main.py", line 38, in from gpt_engineer.applications.cli.cli_agent import CliAgent File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\applications\cli\cli_agent.py", line 6, in from gpt_engineer.core.base_execution_env import BaseExecutionEnv File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\core\base_execution_env.py", line 7, in class BaseExecutionEnv(ABC): File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\core\base_execution_env.py", line 22, in BaseExecutionEnv def run(self, command: str, timeout: int | None = None) -> tuple[str, str, int]: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' (gpt-engineer-py3.9) C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer>gpte projects/fashion_creator Traceback (most recent call last): File "C:\Users\a.serrano\AppData\Local\pypoetry\Cache\virtualenvs\gpt-engineer-elTYTC0x-py3.9\Scripts\gpte", line 3, in from gpt_engineer.applications.cli.main import app File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\applications\cli\main.py", line 38, in from gpt_engineer.applications.cli.cli_agent import CliAgent File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\applications\cli\cli_agent.py", line 6, in from gpt_engineer.core.base_execution_env import BaseExecutionEnv File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\core\base_execution_env.py", line 7, in class BaseExecutionEnv(ABC): File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\core\base_execution_env.py", line 22, in BaseExecutionEnv def run(self, command: str, timeout: int | None = None) -> tuple[str, str, int]: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' What should I do?
— Reply to this email directly, view it on GitHub https://github.com/AntonOsika/gpt-engineer/issues/906, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAKXDOW6XQUFBSCLDCDKDXLYJRVP7AVCNFSM6AAAAABAWUDSKCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGA2DGOJUGQZDQMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
@VioletRaven Greetings! Just a quick update: the project has now been enhanced to support Python 3.9. For those interested in using Python 3.9, you can simply fetch the latest updates from the repository, and the project should function smoothly with this version.
as @similato87 says, this should now be fixed
After doing: _Run gpte with a relative path to your folder
For example: gpte projects/my-new-project from the gpt-engineer directory root with your new folder in projects/_
I should be using the correct relative path and I get
Traceback (most recent call last): File "C:\Users\a.serrano\AppData\Local\pypoetry\Cache\virtualenvs\gpt-engineer-elTYTC0x-py3.9\Scripts\gpte", line 3, in <module> from gpt_engineer.applications.cli.main import app File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\applications\cli\main.py", line 38, in <module> from gpt_engineer.applications.cli.cli_agent import CliAgent File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\applications\cli\cli_agent.py", line 6, in <module> from gpt_engineer.core.base_execution_env import BaseExecutionEnv File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\core\base_execution_env.py", line 7, in <module> class BaseExecutionEnv(ABC): File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\core\base_execution_env.py", line 22, in BaseExecutionEnv def run(self, command: str, timeout: int | None = None) -> tuple[str, str, int]: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType' (gpt-engineer-py3.9) C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer>gpte projects/fashion_creator Traceback (most recent call last): File "C:\Users\a.serrano\AppData\Local\pypoetry\Cache\virtualenvs\gpt-engineer-elTYTC0x-py3.9\Scripts\gpte", line 3, in <module> from gpt_engineer.applications.cli.main import app File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\applications\cli\main.py", line 38, in <module> from gpt_engineer.applications.cli.cli_agent import CliAgent File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\applications\cli\cli_agent.py", line 6, in <module> from gpt_engineer.core.base_execution_env import BaseExecutionEnv File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\core\base_execution_env.py", line 7, in <module> class BaseExecutionEnv(ABC): File "C:\Users\a.serrano\Desktop\Projects\fashion_creator\gpt-engineer\gpt_engineer\core\base_execution_env.py", line 22, in BaseExecutionEnv def run(self, command: str, timeout: int | None = None) -> tuple[str, str, int]: TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'
What should I do?