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

[Bug]: Can't run on Windows 11 due to "np.Inf" error #1960

Closed
ctavolazzi opened this issue Mar 12, 2024 · 8 comments
Closed

[Bug]: Can't run on Windows 11 due to "np.Inf" error #1960

ctavolazzi opened this issue Mar 12, 2024 · 8 comments

Comments

@ctavolazzi
Copy link

Describe the bug

When trying to install Autogen Studio on my Windows machine, I am unable to run the program due to an error in the >ib\site-packages\numpy_init_.py file on line 411

Steps to reproduce

(base) C:\Users\ctavo>conda activate autogenstudio

(autogenstudio) C:\Users\ctavo>export OPENAI_API_KEY=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
'export' is not recognized as an internal or external command,
operable program or batch file.

(autogenstudio) C:\Users\ctavo>conda env config vars set OPENAI_API_KEY=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
To make your changes take effect please reactivate your environment

(autogenstudio) C:\Users\ctavo>conda deactivate

(base) C:\Users\ctavo>conda activate autogenstudio

(autogenstudio) C:\Users\ctavo>pip install autogenstudio
Collecting autogenstudio
Using cached autogenstudio-0.0.48-py3-none-any.whl.metadata (11 kB)
Collecting pydantic (from autogenstudio)
Using cached pydantic-2.6.3-py3-none-any.whl.metadata (84 kB)
Collecting fastapi (from autogenstudio)
Using cached fastapi-0.110.0-py3-none-any.whl.metadata (25 kB)
Collecting typer (from autogenstudio)
Using cached typer-0.9.0-py3-none-any.whl.metadata (14 kB)
Collecting uvicorn (from autogenstudio)
Using cached uvicorn-0.28.0-py3-none-any.whl.metadata (6.3 kB)
Collecting arxiv (from autogenstudio)
Using cached arxiv-2.1.0-py3-none-any.whl.metadata (6.1 kB)
Collecting pyautogen>=0.2.0 (from autogenstudio)
Using cached pyautogen-0.2.18-py3-none-any.whl.metadata (18 kB)
Collecting websockets (from autogenstudio)
Using cached websockets-12.0-cp311-cp311-win_amd64.whl.metadata (6.8 kB)
Collecting diskcache (from pyautogen>=0.2.0->autogenstudio)
Using cached diskcache-5.6.3-py3-none-any.whl.metadata (20 kB)
Collecting docker (from pyautogen>=0.2.0->autogenstudio)
Using cached docker-7.0.0-py3-none-any.whl.metadata (3.5 kB)
Collecting flaml (from pyautogen>=0.2.0->autogenstudio)
Using cached FLAML-2.1.1-py3-none-any.whl.metadata (15 kB)
Collecting openai>=1.3 (from pyautogen>=0.2.0->autogenstudio)
Using cached openai-1.13.3-py3-none-any.whl.metadata (18 kB)
Collecting python-dotenv (from pyautogen>=0.2.0->autogenstudio)
Using cached python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)
Collecting termcolor (from pyautogen>=0.2.0->autogenstudio)
Using cached termcolor-2.4.0-py3-none-any.whl.metadata (6.1 kB)
Collecting tiktoken (from pyautogen>=0.2.0->autogenstudio)
Using cached tiktoken-0.6.0-cp311-cp311-win_amd64.whl.metadata (6.8 kB)
Collecting annotated-types>=0.4.0 (from pydantic->autogenstudio)
Using cached annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
Collecting pydantic-core==2.16.3 (from pydantic->autogenstudio)
Using cached pydantic_core-2.16.3-cp311-none-win_amd64.whl.metadata (6.6 kB)
Collecting typing-extensions>=4.6.1 (from pydantic->autogenstudio)
Using cached typing_extensions-4.10.0-py3-none-any.whl.metadata (3.0 kB)
Collecting feedparser==6.0.10 (from arxiv->autogenstudio)
Using cached feedparser-6.0.10-py3-none-any.whl.metadata (2.3 kB)
Collecting requests==2.31.0 (from arxiv->autogenstudio)
Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting sgmllib3k (from feedparser==6.0.10->arxiv->autogenstudio)
Using cached sgmllib3k-1.0.0-py3-none-any.whl
Collecting charset-normalizer<4,>=2 (from requests==2.31.0->arxiv->autogenstudio)
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests==2.31.0->arxiv->autogenstudio)
Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests==2.31.0->arxiv->autogenstudio)
Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests==2.31.0->arxiv->autogenstudio)
Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
Collecting starlette<0.37.0,>=0.36.3 (from fastapi->autogenstudio)
Using cached starlette-0.36.3-py3-none-any.whl.metadata (5.9 kB)
Collecting click<9.0.0,>=7.1.1 (from typer->autogenstudio)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting h11>=0.8 (from uvicorn->autogenstudio)
Using cached h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)
Collecting colorama (from click<9.0.0,>=7.1.1->typer->autogenstudio)
Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting anyio<5,>=3.5.0 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached anyio-4.3.0-py3-none-any.whl.metadata (4.6 kB)
Collecting distro<2,>=1.7.0 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached distro-1.9.0-py3-none-any.whl.metadata (6.8 kB)
Collecting httpx<1,>=0.23.0 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached httpx-0.27.0-py3-none-any.whl.metadata (7.2 kB)
Collecting sniffio (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached sniffio-1.3.1-py3-none-any.whl.metadata (3.9 kB)
Collecting tqdm>4 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached tqdm-4.66.2-py3-none-any.whl.metadata (57 kB)
Collecting packaging>=14.0 (from docker->pyautogen>=0.2.0->autogenstudio)
Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting pywin32>=304 (from docker->pyautogen>=0.2.0->autogenstudio)
Using cached pywin32-306-cp311-cp311-win_amd64.whl.metadata (6.5 kB)
Collecting NumPy>=1.17.0rc1 (from flaml->pyautogen>=0.2.0->autogenstudio)
Using cached numpy-2.0.0b1-cp311-cp311-win_amd64.whl.metadata (60 kB)
Collecting regex>=2022.1.18 (from tiktoken->pyautogen>=0.2.0->autogenstudio)
Using cached regex-2023.12.25-cp311-cp311-win_amd64.whl.metadata (41 kB)
Collecting httpcore==1.* (from httpx<1,>=0.23.0->openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached httpcore-1.0.4-py3-none-any.whl.metadata (20 kB)
Using cached autogenstudio-0.0.48-py3-none-any.whl (2.7 MB)
Using cached pyautogen-0.2.18-py3-none-any.whl (214 kB)
Using cached pydantic-2.6.3-py3-none-any.whl (395 kB)
Using cached pydantic_core-2.16.3-cp311-none-win_amd64.whl (1.9 MB)
Using cached arxiv-2.1.0-py3-none-any.whl (11 kB)
Using cached feedparser-6.0.10-py3-none-any.whl (81 kB)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Using cached fastapi-0.110.0-py3-none-any.whl (92 kB)
Using cached typer-0.9.0-py3-none-any.whl (45 kB)
Using cached uvicorn-0.28.0-py3-none-any.whl (60 kB)
Using cached websockets-12.0-cp311-cp311-win_amd64.whl (124 kB)
Using cached annotated_types-0.6.0-py3-none-any.whl (12 kB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Using cached openai-1.13.3-py3-none-any.whl (227 kB)
Using cached starlette-0.36.3-py3-none-any.whl (71 kB)
Using cached typing_extensions-4.10.0-py3-none-any.whl (33 kB)
Using cached diskcache-5.6.3-py3-none-any.whl (45 kB)
Using cached docker-7.0.0-py3-none-any.whl (147 kB)
Using cached FLAML-2.1.1-py3-none-any.whl (295 kB)
Using cached python_dotenv-1.0.1-py3-none-any.whl (19 kB)
Using cached termcolor-2.4.0-py3-none-any.whl (7.7 kB)
Using cached tiktoken-0.6.0-cp311-cp311-win_amd64.whl (798 kB)
Using cached anyio-4.3.0-py3-none-any.whl (85 kB)
Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl (99 kB)
Using cached distro-1.9.0-py3-none-any.whl (20 kB)
Using cached httpx-0.27.0-py3-none-any.whl (75 kB)
Using cached httpcore-1.0.4-py3-none-any.whl (77 kB)
Using cached idna-3.6-py3-none-any.whl (61 kB)
Using cached numpy-2.0.0b1-cp311-cp311-win_amd64.whl (16.5 MB)
Using cached packaging-24.0-py3-none-any.whl (53 kB)
Using cached pywin32-306-cp311-cp311-win_amd64.whl (9.2 MB)
Using cached regex-2023.12.25-cp311-cp311-win_amd64.whl (269 kB)
Using cached sniffio-1.3.1-py3-none-any.whl (10 kB)
Using cached tqdm-4.66.2-py3-none-any.whl (78 kB)
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Installing collected packages: sgmllib3k, pywin32, websockets, urllib3, typing-extensions, termcolor, sniffio, regex, python-dotenv, packaging, NumPy, idna, h11, feedparser, distro, diskcache, colorama, charset-normalizer, certifi, annotated-types, tqdm, requests, pydantic-core, httpcore, flaml, click, anyio, uvicorn, typer, tiktoken, starlette, pydantic, httpx, docker, arxiv, openai, fastapi, pyautogen, autogenstudio
Successfully installed NumPy-2.0.0b1 annotated-types-0.6.0 anyio-4.3.0 arxiv-2.1.0 autogenstudio-0.0.48 certifi-2024.2.2 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 diskcache-5.6.3 distro-1.9.0 docker-7.0.0 fastapi-0.110.0 feedparser-6.0.10 flaml-2.1.1 h11-0.14.0 httpcore-1.0.4 httpx-0.27.0 idna-3.6 openai-1.13.3 packaging-24.0 pyautogen-0.2.18 pydantic-2.6.3 pydantic-core-2.16.3 python-dotenv-1.0.1 pywin32-306 regex-2023.12.25 requests-2.31.0 sgmllib3k-1.0.0 sniffio-1.3.1 starlette-0.36.3 termcolor-2.4.0 tiktoken-0.6.0 tqdm-4.66.2 typer-0.9.0 typing-extensions-4.10.0 urllib3-2.2.1 uvicorn-0.28.0 websockets-12.0

(autogenstudio) C:\Users\ctavo>autogenstudio ui
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Scripts\autogenstudio.exe_main
.py", line 4, in
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio_init
.py", line 1, in
from .chatmanager import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\chatmanager.py", line 11, in
from .utils import extract_successful_code_blocks, get_modified_files, summarize_chat_history
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils_init_.py", line 2, in
from .utils import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils\utils.py", line 8, in
import autogen
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen_init_.py", line 3, in
from .oai import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai_init_.py", line 1, in
from autogen.oai.client import OpenAIWrapper, ModelClient
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai\client.py", line 8, in
from flaml.automl.logger import logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml_init_.py", line 2, in
from flaml.automl import AutoML, logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl_init_.py", line 1, in
from flaml.automl.automl import AutoML, size
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\automl.py", line 15, in
from flaml.automl.state import SearchState, AutoMLState
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\state.py", line 8, in
from flaml.automl.ml import compute_estimator, train_estimator
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\ml.py", line 326, in
best_val_loss=np.Inf,
^^^^^^
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\numpy_init_.py", line 411, in getattr
raise AttributeError(
AttributeError: np.Inf was removed in the NumPy 2.0 release. Use np.inf instead.. Did you mean: 'inf'?

(autogenstudio) C:\Users\ctavo>autogenstudio ui --port 8081
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Scripts\autogenstudio.exe_main
.py", line 4, in
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio_init
.py", line 1, in
from .chatmanager import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\chatmanager.py", line 11, in
from .utils import extract_successful_code_blocks, get_modified_files, summarize_chat_history
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils_init_.py", line 2, in
from .utils import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils\utils.py", line 8, in
import autogen
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen_init_.py", line 3, in
from .oai import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai_init_.py", line 1, in
from autogen.oai.client import OpenAIWrapper, ModelClient
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai\client.py", line 8, in
from flaml.automl.logger import logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml_init_.py", line 2, in
from flaml.automl import AutoML, logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl_init_.py", line 1, in
from flaml.automl.automl import AutoML, size
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\automl.py", line 15, in
from flaml.automl.state import SearchState, AutoMLState
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\state.py", line 8, in
from flaml.automl.ml import compute_estimator, train_estimator
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\ml.py", line 326, in
best_val_loss=np.Inf,
^^^^^^
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\numpy_init_.py", line 411, in getattr
raise AttributeError(
AttributeError: np.Inf was removed in the NumPy 2.0 release. Use np.inf instead.. Did you mean: 'inf'?

(autogenstudio) C:\Users\ctavo>

Model Used

None

Expected Behavior

Install and use the app

Screenshots and logs

(base) C:\Users\ctavo>conda activate autogenstudio

(autogenstudio) C:\Users\ctavo>export OPENAI_API_KEY=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
'export' is not recognized as an internal or external command,
operable program or batch file.

(autogenstudio) C:\Users\ctavo>conda env config vars set OPENAI_API_KEY=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
To make your changes take effect please reactivate your environment

(autogenstudio) C:\Users\ctavo>conda deactivate

(base) C:\Users\ctavo>conda activate autogenstudio

(autogenstudio) C:\Users\ctavo>pip install autogenstudio
Collecting autogenstudio
Using cached autogenstudio-0.0.48-py3-none-any.whl.metadata (11 kB)
Collecting pydantic (from autogenstudio)
Using cached pydantic-2.6.3-py3-none-any.whl.metadata (84 kB)
Collecting fastapi (from autogenstudio)
Using cached fastapi-0.110.0-py3-none-any.whl.metadata (25 kB)
Collecting typer (from autogenstudio)
Using cached typer-0.9.0-py3-none-any.whl.metadata (14 kB)
Collecting uvicorn (from autogenstudio)
Using cached uvicorn-0.28.0-py3-none-any.whl.metadata (6.3 kB)
Collecting arxiv (from autogenstudio)
Using cached arxiv-2.1.0-py3-none-any.whl.metadata (6.1 kB)
Collecting pyautogen>=0.2.0 (from autogenstudio)
Using cached pyautogen-0.2.18-py3-none-any.whl.metadata (18 kB)
Collecting websockets (from autogenstudio)
Using cached websockets-12.0-cp311-cp311-win_amd64.whl.metadata (6.8 kB)
Collecting diskcache (from pyautogen>=0.2.0->autogenstudio)
Using cached diskcache-5.6.3-py3-none-any.whl.metadata (20 kB)
Collecting docker (from pyautogen>=0.2.0->autogenstudio)
Using cached docker-7.0.0-py3-none-any.whl.metadata (3.5 kB)
Collecting flaml (from pyautogen>=0.2.0->autogenstudio)
Using cached FLAML-2.1.1-py3-none-any.whl.metadata (15 kB)
Collecting openai>=1.3 (from pyautogen>=0.2.0->autogenstudio)
Using cached openai-1.13.3-py3-none-any.whl.metadata (18 kB)
Collecting python-dotenv (from pyautogen>=0.2.0->autogenstudio)
Using cached python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)
Collecting termcolor (from pyautogen>=0.2.0->autogenstudio)
Using cached termcolor-2.4.0-py3-none-any.whl.metadata (6.1 kB)
Collecting tiktoken (from pyautogen>=0.2.0->autogenstudio)
Using cached tiktoken-0.6.0-cp311-cp311-win_amd64.whl.metadata (6.8 kB)
Collecting annotated-types>=0.4.0 (from pydantic->autogenstudio)
Using cached annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
Collecting pydantic-core==2.16.3 (from pydantic->autogenstudio)
Using cached pydantic_core-2.16.3-cp311-none-win_amd64.whl.metadata (6.6 kB)
Collecting typing-extensions>=4.6.1 (from pydantic->autogenstudio)
Using cached typing_extensions-4.10.0-py3-none-any.whl.metadata (3.0 kB)
Collecting feedparser==6.0.10 (from arxiv->autogenstudio)
Using cached feedparser-6.0.10-py3-none-any.whl.metadata (2.3 kB)
Collecting requests==2.31.0 (from arxiv->autogenstudio)
Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting sgmllib3k (from feedparser==6.0.10->arxiv->autogenstudio)
Using cached sgmllib3k-1.0.0-py3-none-any.whl
Collecting charset-normalizer<4,>=2 (from requests==2.31.0->arxiv->autogenstudio)
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests==2.31.0->arxiv->autogenstudio)
Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests==2.31.0->arxiv->autogenstudio)
Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests==2.31.0->arxiv->autogenstudio)
Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
Collecting starlette<0.37.0,>=0.36.3 (from fastapi->autogenstudio)
Using cached starlette-0.36.3-py3-none-any.whl.metadata (5.9 kB)
Collecting click<9.0.0,>=7.1.1 (from typer->autogenstudio)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting h11>=0.8 (from uvicorn->autogenstudio)
Using cached h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)
Collecting colorama (from click<9.0.0,>=7.1.1->typer->autogenstudio)
Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting anyio<5,>=3.5.0 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached anyio-4.3.0-py3-none-any.whl.metadata (4.6 kB)
Collecting distro<2,>=1.7.0 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached distro-1.9.0-py3-none-any.whl.metadata (6.8 kB)
Collecting httpx<1,>=0.23.0 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached httpx-0.27.0-py3-none-any.whl.metadata (7.2 kB)
Collecting sniffio (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached sniffio-1.3.1-py3-none-any.whl.metadata (3.9 kB)
Collecting tqdm>4 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached tqdm-4.66.2-py3-none-any.whl.metadata (57 kB)
Collecting packaging>=14.0 (from docker->pyautogen>=0.2.0->autogenstudio)
Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting pywin32>=304 (from docker->pyautogen>=0.2.0->autogenstudio)
Using cached pywin32-306-cp311-cp311-win_amd64.whl.metadata (6.5 kB)
Collecting NumPy>=1.17.0rc1 (from flaml->pyautogen>=0.2.0->autogenstudio)
Using cached numpy-2.0.0b1-cp311-cp311-win_amd64.whl.metadata (60 kB)
Collecting regex>=2022.1.18 (from tiktoken->pyautogen>=0.2.0->autogenstudio)
Using cached regex-2023.12.25-cp311-cp311-win_amd64.whl.metadata (41 kB)
Collecting httpcore==1.* (from httpx<1,>=0.23.0->openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached httpcore-1.0.4-py3-none-any.whl.metadata (20 kB)
Using cached autogenstudio-0.0.48-py3-none-any.whl (2.7 MB)
Using cached pyautogen-0.2.18-py3-none-any.whl (214 kB)
Using cached pydantic-2.6.3-py3-none-any.whl (395 kB)
Using cached pydantic_core-2.16.3-cp311-none-win_amd64.whl (1.9 MB)
Using cached arxiv-2.1.0-py3-none-any.whl (11 kB)
Using cached feedparser-6.0.10-py3-none-any.whl (81 kB)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Using cached fastapi-0.110.0-py3-none-any.whl (92 kB)
Using cached typer-0.9.0-py3-none-any.whl (45 kB)
Using cached uvicorn-0.28.0-py3-none-any.whl (60 kB)
Using cached websockets-12.0-cp311-cp311-win_amd64.whl (124 kB)
Using cached annotated_types-0.6.0-py3-none-any.whl (12 kB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Using cached openai-1.13.3-py3-none-any.whl (227 kB)
Using cached starlette-0.36.3-py3-none-any.whl (71 kB)
Using cached typing_extensions-4.10.0-py3-none-any.whl (33 kB)
Using cached diskcache-5.6.3-py3-none-any.whl (45 kB)
Using cached docker-7.0.0-py3-none-any.whl (147 kB)
Using cached FLAML-2.1.1-py3-none-any.whl (295 kB)
Using cached python_dotenv-1.0.1-py3-none-any.whl (19 kB)
Using cached termcolor-2.4.0-py3-none-any.whl (7.7 kB)
Using cached tiktoken-0.6.0-cp311-cp311-win_amd64.whl (798 kB)
Using cached anyio-4.3.0-py3-none-any.whl (85 kB)
Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl (99 kB)
Using cached distro-1.9.0-py3-none-any.whl (20 kB)
Using cached httpx-0.27.0-py3-none-any.whl (75 kB)
Using cached httpcore-1.0.4-py3-none-any.whl (77 kB)
Using cached idna-3.6-py3-none-any.whl (61 kB)
Using cached numpy-2.0.0b1-cp311-cp311-win_amd64.whl (16.5 MB)
Using cached packaging-24.0-py3-none-any.whl (53 kB)
Using cached pywin32-306-cp311-cp311-win_amd64.whl (9.2 MB)
Using cached regex-2023.12.25-cp311-cp311-win_amd64.whl (269 kB)
Using cached sniffio-1.3.1-py3-none-any.whl (10 kB)
Using cached tqdm-4.66.2-py3-none-any.whl (78 kB)
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Installing collected packages: sgmllib3k, pywin32, websockets, urllib3, typing-extensions, termcolor, sniffio, regex, python-dotenv, packaging, NumPy, idna, h11, feedparser, distro, diskcache, colorama, charset-normalizer, certifi, annotated-types, tqdm, requests, pydantic-core, httpcore, flaml, click, anyio, uvicorn, typer, tiktoken, starlette, pydantic, httpx, docker, arxiv, openai, fastapi, pyautogen, autogenstudio
Successfully installed NumPy-2.0.0b1 annotated-types-0.6.0 anyio-4.3.0 arxiv-2.1.0 autogenstudio-0.0.48 certifi-2024.2.2 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 diskcache-5.6.3 distro-1.9.0 docker-7.0.0 fastapi-0.110.0 feedparser-6.0.10 flaml-2.1.1 h11-0.14.0 httpcore-1.0.4 httpx-0.27.0 idna-3.6 openai-1.13.3 packaging-24.0 pyautogen-0.2.18 pydantic-2.6.3 pydantic-core-2.16.3 python-dotenv-1.0.1 pywin32-306 regex-2023.12.25 requests-2.31.0 sgmllib3k-1.0.0 sniffio-1.3.1 starlette-0.36.3 termcolor-2.4.0 tiktoken-0.6.0 tqdm-4.66.2 typer-0.9.0 typing-extensions-4.10.0 urllib3-2.2.1 uvicorn-0.28.0 websockets-12.0

(autogenstudio) C:\Users\ctavo>autogenstudio ui
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Scripts\autogenstudio.exe_main
.py", line 4, in
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio_init
.py", line 1, in
from .chatmanager import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\chatmanager.py", line 11, in
from .utils import extract_successful_code_blocks, get_modified_files, summarize_chat_history
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils_init_.py", line 2, in
from .utils import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils\utils.py", line 8, in
import autogen
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen_init_.py", line 3, in
from .oai import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai_init_.py", line 1, in
from autogen.oai.client import OpenAIWrapper, ModelClient
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai\client.py", line 8, in
from flaml.automl.logger import logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml_init_.py", line 2, in
from flaml.automl import AutoML, logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl_init_.py", line 1, in
from flaml.automl.automl import AutoML, size
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\automl.py", line 15, in
from flaml.automl.state import SearchState, AutoMLState
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\state.py", line 8, in
from flaml.automl.ml import compute_estimator, train_estimator
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\ml.py", line 326, in
best_val_loss=np.Inf,
^^^^^^
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\numpy_init_.py", line 411, in getattr
raise AttributeError(
AttributeError: np.Inf was removed in the NumPy 2.0 release. Use np.inf instead.. Did you mean: 'inf'?

(autogenstudio) C:\Users\ctavo>autogenstudio ui --port 8081
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Scripts\autogenstudio.exe_main
.py", line 4, in
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio_init
.py", line 1, in
from .chatmanager import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\chatmanager.py", line 11, in
from .utils import extract_successful_code_blocks, get_modified_files, summarize_chat_history
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils_init_.py", line 2, in
from .utils import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils\utils.py", line 8, in
import autogen
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen_init_.py", line 3, in
from .oai import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai_init_.py", line 1, in
from autogen.oai.client import OpenAIWrapper, ModelClient
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai\client.py", line 8, in
from flaml.automl.logger import logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml_init_.py", line 2, in
from flaml.automl import AutoML, logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl_init_.py", line 1, in
from flaml.automl.automl import AutoML, size
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\automl.py", line 15, in
from flaml.automl.state import SearchState, AutoMLState
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\state.py", line 8, in
from flaml.automl.ml import compute_estimator, train_estimator
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\ml.py", line 326, in
best_val_loss=np.Inf,
^^^^^^
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\numpy_init_.py", line 411, in getattr
raise AttributeError(
AttributeError: np.Inf was removed in the NumPy 2.0 release. Use np.inf instead.. Did you mean: 'inf'?

(autogenstudio) C:\Users\ctavo>

Additional Information

(base) C:\Users\ctavo>conda activate autogenstudio

(autogenstudio) C:\Users\ctavo>export OPENAI_API_KEY=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
'export' is not recognized as an internal or external command,
operable program or batch file.

(autogenstudio) C:\Users\ctavo>conda env config vars set OPENAI_API_KEY=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
To make your changes take effect please reactivate your environment

(autogenstudio) C:\Users\ctavo>conda deactivate

(base) C:\Users\ctavo>conda activate autogenstudio

(autogenstudio) C:\Users\ctavo>pip install autogenstudio
Collecting autogenstudio
Using cached autogenstudio-0.0.48-py3-none-any.whl.metadata (11 kB)
Collecting pydantic (from autogenstudio)
Using cached pydantic-2.6.3-py3-none-any.whl.metadata (84 kB)
Collecting fastapi (from autogenstudio)
Using cached fastapi-0.110.0-py3-none-any.whl.metadata (25 kB)
Collecting typer (from autogenstudio)
Using cached typer-0.9.0-py3-none-any.whl.metadata (14 kB)
Collecting uvicorn (from autogenstudio)
Using cached uvicorn-0.28.0-py3-none-any.whl.metadata (6.3 kB)
Collecting arxiv (from autogenstudio)
Using cached arxiv-2.1.0-py3-none-any.whl.metadata (6.1 kB)
Collecting pyautogen>=0.2.0 (from autogenstudio)
Using cached pyautogen-0.2.18-py3-none-any.whl.metadata (18 kB)
Collecting websockets (from autogenstudio)
Using cached websockets-12.0-cp311-cp311-win_amd64.whl.metadata (6.8 kB)
Collecting diskcache (from pyautogen>=0.2.0->autogenstudio)
Using cached diskcache-5.6.3-py3-none-any.whl.metadata (20 kB)
Collecting docker (from pyautogen>=0.2.0->autogenstudio)
Using cached docker-7.0.0-py3-none-any.whl.metadata (3.5 kB)
Collecting flaml (from pyautogen>=0.2.0->autogenstudio)
Using cached FLAML-2.1.1-py3-none-any.whl.metadata (15 kB)
Collecting openai>=1.3 (from pyautogen>=0.2.0->autogenstudio)
Using cached openai-1.13.3-py3-none-any.whl.metadata (18 kB)
Collecting python-dotenv (from pyautogen>=0.2.0->autogenstudio)
Using cached python_dotenv-1.0.1-py3-none-any.whl.metadata (23 kB)
Collecting termcolor (from pyautogen>=0.2.0->autogenstudio)
Using cached termcolor-2.4.0-py3-none-any.whl.metadata (6.1 kB)
Collecting tiktoken (from pyautogen>=0.2.0->autogenstudio)
Using cached tiktoken-0.6.0-cp311-cp311-win_amd64.whl.metadata (6.8 kB)
Collecting annotated-types>=0.4.0 (from pydantic->autogenstudio)
Using cached annotated_types-0.6.0-py3-none-any.whl.metadata (12 kB)
Collecting pydantic-core==2.16.3 (from pydantic->autogenstudio)
Using cached pydantic_core-2.16.3-cp311-none-win_amd64.whl.metadata (6.6 kB)
Collecting typing-extensions>=4.6.1 (from pydantic->autogenstudio)
Using cached typing_extensions-4.10.0-py3-none-any.whl.metadata (3.0 kB)
Collecting feedparser==6.0.10 (from arxiv->autogenstudio)
Using cached feedparser-6.0.10-py3-none-any.whl.metadata (2.3 kB)
Collecting requests==2.31.0 (from arxiv->autogenstudio)
Using cached requests-2.31.0-py3-none-any.whl.metadata (4.6 kB)
Collecting sgmllib3k (from feedparser==6.0.10->arxiv->autogenstudio)
Using cached sgmllib3k-1.0.0-py3-none-any.whl
Collecting charset-normalizer<4,>=2 (from requests==2.31.0->arxiv->autogenstudio)
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests==2.31.0->arxiv->autogenstudio)
Using cached idna-3.6-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests==2.31.0->arxiv->autogenstudio)
Using cached urllib3-2.2.1-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests==2.31.0->arxiv->autogenstudio)
Using cached certifi-2024.2.2-py3-none-any.whl.metadata (2.2 kB)
Collecting starlette<0.37.0,>=0.36.3 (from fastapi->autogenstudio)
Using cached starlette-0.36.3-py3-none-any.whl.metadata (5.9 kB)
Collecting click<9.0.0,>=7.1.1 (from typer->autogenstudio)
Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting h11>=0.8 (from uvicorn->autogenstudio)
Using cached h11-0.14.0-py3-none-any.whl.metadata (8.2 kB)
Collecting colorama (from click<9.0.0,>=7.1.1->typer->autogenstudio)
Using cached colorama-0.4.6-py2.py3-none-any.whl.metadata (17 kB)
Collecting anyio<5,>=3.5.0 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached anyio-4.3.0-py3-none-any.whl.metadata (4.6 kB)
Collecting distro<2,>=1.7.0 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached distro-1.9.0-py3-none-any.whl.metadata (6.8 kB)
Collecting httpx<1,>=0.23.0 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached httpx-0.27.0-py3-none-any.whl.metadata (7.2 kB)
Collecting sniffio (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached sniffio-1.3.1-py3-none-any.whl.metadata (3.9 kB)
Collecting tqdm>4 (from openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached tqdm-4.66.2-py3-none-any.whl.metadata (57 kB)
Collecting packaging>=14.0 (from docker->pyautogen>=0.2.0->autogenstudio)
Using cached packaging-24.0-py3-none-any.whl.metadata (3.2 kB)
Collecting pywin32>=304 (from docker->pyautogen>=0.2.0->autogenstudio)
Using cached pywin32-306-cp311-cp311-win_amd64.whl.metadata (6.5 kB)
Collecting NumPy>=1.17.0rc1 (from flaml->pyautogen>=0.2.0->autogenstudio)
Using cached numpy-2.0.0b1-cp311-cp311-win_amd64.whl.metadata (60 kB)
Collecting regex>=2022.1.18 (from tiktoken->pyautogen>=0.2.0->autogenstudio)
Using cached regex-2023.12.25-cp311-cp311-win_amd64.whl.metadata (41 kB)
Collecting httpcore==1.* (from httpx<1,>=0.23.0->openai>=1.3->pyautogen>=0.2.0->autogenstudio)
Using cached httpcore-1.0.4-py3-none-any.whl.metadata (20 kB)
Using cached autogenstudio-0.0.48-py3-none-any.whl (2.7 MB)
Using cached pyautogen-0.2.18-py3-none-any.whl (214 kB)
Using cached pydantic-2.6.3-py3-none-any.whl (395 kB)
Using cached pydantic_core-2.16.3-cp311-none-win_amd64.whl (1.9 MB)
Using cached arxiv-2.1.0-py3-none-any.whl (11 kB)
Using cached feedparser-6.0.10-py3-none-any.whl (81 kB)
Using cached requests-2.31.0-py3-none-any.whl (62 kB)
Using cached fastapi-0.110.0-py3-none-any.whl (92 kB)
Using cached typer-0.9.0-py3-none-any.whl (45 kB)
Using cached uvicorn-0.28.0-py3-none-any.whl (60 kB)
Using cached websockets-12.0-cp311-cp311-win_amd64.whl (124 kB)
Using cached annotated_types-0.6.0-py3-none-any.whl (12 kB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Using cached openai-1.13.3-py3-none-any.whl (227 kB)
Using cached starlette-0.36.3-py3-none-any.whl (71 kB)
Using cached typing_extensions-4.10.0-py3-none-any.whl (33 kB)
Using cached diskcache-5.6.3-py3-none-any.whl (45 kB)
Using cached docker-7.0.0-py3-none-any.whl (147 kB)
Using cached FLAML-2.1.1-py3-none-any.whl (295 kB)
Using cached python_dotenv-1.0.1-py3-none-any.whl (19 kB)
Using cached termcolor-2.4.0-py3-none-any.whl (7.7 kB)
Using cached tiktoken-0.6.0-cp311-cp311-win_amd64.whl (798 kB)
Using cached anyio-4.3.0-py3-none-any.whl (85 kB)
Using cached certifi-2024.2.2-py3-none-any.whl (163 kB)
Using cached charset_normalizer-3.3.2-cp311-cp311-win_amd64.whl (99 kB)
Using cached distro-1.9.0-py3-none-any.whl (20 kB)
Using cached httpx-0.27.0-py3-none-any.whl (75 kB)
Using cached httpcore-1.0.4-py3-none-any.whl (77 kB)
Using cached idna-3.6-py3-none-any.whl (61 kB)
Using cached numpy-2.0.0b1-cp311-cp311-win_amd64.whl (16.5 MB)
Using cached packaging-24.0-py3-none-any.whl (53 kB)
Using cached pywin32-306-cp311-cp311-win_amd64.whl (9.2 MB)
Using cached regex-2023.12.25-cp311-cp311-win_amd64.whl (269 kB)
Using cached sniffio-1.3.1-py3-none-any.whl (10 kB)
Using cached tqdm-4.66.2-py3-none-any.whl (78 kB)
Using cached urllib3-2.2.1-py3-none-any.whl (121 kB)
Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Installing collected packages: sgmllib3k, pywin32, websockets, urllib3, typing-extensions, termcolor, sniffio, regex, python-dotenv, packaging, NumPy, idna, h11, feedparser, distro, diskcache, colorama, charset-normalizer, certifi, annotated-types, tqdm, requests, pydantic-core, httpcore, flaml, click, anyio, uvicorn, typer, tiktoken, starlette, pydantic, httpx, docker, arxiv, openai, fastapi, pyautogen, autogenstudio
Successfully installed NumPy-2.0.0b1 annotated-types-0.6.0 anyio-4.3.0 arxiv-2.1.0 autogenstudio-0.0.48 certifi-2024.2.2 charset-normalizer-3.3.2 click-8.1.7 colorama-0.4.6 diskcache-5.6.3 distro-1.9.0 docker-7.0.0 fastapi-0.110.0 feedparser-6.0.10 flaml-2.1.1 h11-0.14.0 httpcore-1.0.4 httpx-0.27.0 idna-3.6 openai-1.13.3 packaging-24.0 pyautogen-0.2.18 pydantic-2.6.3 pydantic-core-2.16.3 python-dotenv-1.0.1 pywin32-306 regex-2023.12.25 requests-2.31.0 sgmllib3k-1.0.0 sniffio-1.3.1 starlette-0.36.3 termcolor-2.4.0 tiktoken-0.6.0 tqdm-4.66.2 typer-0.9.0 typing-extensions-4.10.0 urllib3-2.2.1 uvicorn-0.28.0 websockets-12.0

(autogenstudio) C:\Users\ctavo>autogenstudio ui
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Scripts\autogenstudio.exe_main
.py", line 4, in
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio_init
.py", line 1, in
from .chatmanager import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\chatmanager.py", line 11, in
from .utils import extract_successful_code_blocks, get_modified_files, summarize_chat_history
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils_init_.py", line 2, in
from .utils import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils\utils.py", line 8, in
import autogen
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen_init_.py", line 3, in
from .oai import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai_init_.py", line 1, in
from autogen.oai.client import OpenAIWrapper, ModelClient
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai\client.py", line 8, in
from flaml.automl.logger import logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml_init_.py", line 2, in
from flaml.automl import AutoML, logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl_init_.py", line 1, in
from flaml.automl.automl import AutoML, size
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\automl.py", line 15, in
from flaml.automl.state import SearchState, AutoMLState
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\state.py", line 8, in
from flaml.automl.ml import compute_estimator, train_estimator
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\ml.py", line 326, in
best_val_loss=np.Inf,
^^^^^^
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\numpy_init_.py", line 411, in getattr
raise AttributeError(
AttributeError: np.Inf was removed in the NumPy 2.0 release. Use np.inf instead.. Did you mean: 'inf'?

(autogenstudio) C:\Users\ctavo>autogenstudio ui --port 8081
Traceback (most recent call last):
File "", line 198, in run_module_as_main
File "", line 88, in run_code
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Scripts\autogenstudio.exe_main
.py", line 4, in
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio_init
.py", line 1, in
from .chatmanager import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\chatmanager.py", line 11, in
from .utils import extract_successful_code_blocks, get_modified_files, summarize_chat_history
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils_init_.py", line 2, in
from .utils import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogenstudio\utils\utils.py", line 8, in
import autogen
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen_init_.py", line 3, in
from .oai import *
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai_init_.py", line 1, in
from autogen.oai.client import OpenAIWrapper, ModelClient
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\autogen\oai\client.py", line 8, in
from flaml.automl.logger import logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml_init_.py", line 2, in
from flaml.automl import AutoML, logger_formatter
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl_init_.py", line 1, in
from flaml.automl.automl import AutoML, size
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\automl.py", line 15, in
from flaml.automl.state import SearchState, AutoMLState
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\state.py", line 8, in
from flaml.automl.ml import compute_estimator, train_estimator
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\ml.py", line 326, in
best_val_loss=np.Inf,
^^^^^^
File "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\numpy_init_.py", line 411, in getattr
raise AttributeError(
AttributeError: np.Inf was removed in the NumPy 2.0 release. Use np.inf instead.. Did you mean: 'inf'?

(autogenstudio) C:\Users\ctavo>

@ctavolazzi ctavolazzi added the bug label Mar 12, 2024
@sjosephrw
Copy link

sjosephrw commented Mar 12, 2024

I am having the same issue trying to run autogen, I am running on Debian Linux

raise AttributeError( AttributeError:np.Infwas removed in the NumPy 2.0 release. Usenp.infinstead.. Did you mean:'inf'?``

@BindingOx
Copy link

BindingOx commented Mar 12, 2024

solved by:

(optional: backup ml.py)

C:\Users\%username%\anaconda3\envs\ag\Lib\site-packages\flaml\automl
copy ml.py ml.py.bak

open ml.pl in notepad:

notepad ml.py

Search for the line that contains best_val_loss=np.Inf. Modify it to best_val_loss=np.inf. Save the changes and close the file.

autogenstudio ui --port 8081

go to http://127.0.0.1:8081

edit: I dont know if this is the right way to do things as I currently can't add any agent but that could be unrelated.

@sjosephrw
Copy link

solved by:

(optional: backup ml.py)

C:\Users\%username%\anaconda3\envs\ag\Lib\site-packages\flaml\automl
copy ml.py ml.py.bak

open ml.pl in notepad:

notepad ml.py

Search for the line that contains best_val_loss=np.Inf. Modify it to best_val_loss=np.inf. Save the changes and close the file.

autogenstudio ui --port 8081

go to http://127.0.0.1:8081

edit: I dont know if this is the right way to do things as I currently can't add any agent but that could be unrelated.

What if we are running autogen from a script and NOT from autogen studio how do we solve this ?

@BindingOx
Copy link

solved by:
(optional: backup ml.py)

C:\Users\%username%\anaconda3\envs\ag\Lib\site-packages\flaml\automl
copy ml.py ml.py.bak

open ml.pl in notepad:

notepad ml.py

Search for the line that contains best_val_loss=np.Inf. Modify it to best_val_loss=np.inf. Save the changes and close the file.

autogenstudio ui --port 8081

go to http://127.0.0.1:8081
edit: I dont know if this is the right way to do things as I currently can't add any agent but that could be unrelated.

What if we are running autogen from a script and NOT from autogen studio how do we solve this ?

you error code says your file should be here "C:\Users\ctavo\miniconda3\envs\autogenstudio\Lib\site-packages\flaml\automl\ml.py"

@csprabala
Copy link

pyautogen is taking a dependency on a pre-release version of numpy(2.0.0b1). Forcing the use of numpy==1.26.4 solved the issue for me. The dev team can clarify if there is a real need for using the numpy pre-release featureset.

@jackgerrits
Copy link
Member

jackgerrits commented Mar 12, 2024

Fixed by #1966

@enact-on
Copy link

Thanks for fixing this.

How do i get the latest version , i tried the following and the code fix is not updated yet.

pip install autogenstudio -U

What step do i need to take on an existing autogenstudio to get this fix implemented.

@sjosephrw
Copy link

sjosephrw commented Mar 14, 2024

Yeah I finally fixed it by following the instructions by @BindingOx but I had to edit the file ./venv/ag/Lib/site-packages/flaml/automlin , as I created my project with python3 -m venv venv

Thank you @BindingOx

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

Successfully merging a pull request may close this issue.

6 participants