-
Notifications
You must be signed in to change notification settings - Fork 44.3k
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
Multidict dependency does nor compile on MacOS Sonoma 14.4.1 after "./run agent start [AGENTNAME] #7070
Comments
same issue |
I also run into this issue |
somehow I think when I install multidict it tries to build on my local machine instead of fetching the binary wheel. This is because I'm using python 3.12. I thought they fixed the issue, weird using python 3.11 solves the problem [~/Documents/AutoGPT/autogpts/autogpt]$ python3.11 -m venv venv [master]
[~/Documents/AutoGPT/autogpts/autogpt]$ source venv/bin/activate [master]
(venv) [~/Documents/AutoGPT/autogpts/autogpt]$ ./autogpt.sh [master] |
@dw61 Python 3.12 is supported since multidict v6.0.5. @ACDCLabs tries installing v6.0.4 which is one version older. The solution is not installing an unsupported version and upgrade to the supported one. In other words, autogpt should upgrade its pins: https://github.com/Significant-Gravitas/AutoGPT/blob/fb8ed0b/autogpts/autogpt/poetry.lock#L3577-L3650. |
@webknjaz I see, that make perfect sense, thanks! |
Thanks for the answers. |
I tried to bump the dependency versions by
|
Which Operating System are you using?
MacOS
Which version of AutoGPT are you using?
Latest Release
Do you use OpenAI GPT-3 or GPT-4?
GPT-3.5
Which area covers your issue best?
Installation and setup
Describe your issue.
Compiling on MacOS 14.4.1 fails compiling multidict after running ./run agent start [Agentname]. Python 3.12. See Below
Upload Activity Log Content
(base) norbert@Aludeckel Auto-GPT % ./run agent start Analyst
⌛ Running setup for agent 'Analyst'...
Removed the poetry environment at /Users/norbert/Library/Caches/pypoetry/virtualenvs/autogpt-forge-9Bcm8Tg3-py3.12.
Creating virtualenv autogpt-forge-9Bcm8Tg3-py3.12 in /Users/norbert/Library/Caches/pypoetry/virtualenvs
Installing dependencies from lock file
Package operations: 182 installs, 0 updates, 0 removals
ChefBuildError
Upload Error Log Content
copying multidict/py.typed -> build/lib.macosx-14.0-x86_64-cpython-312/multidict
running build_ext
building 'multidict._multidict' extension
creating build/temp.macosx-14.0-x86_64-cpython-312
creating build/temp.macosx-14.0-x86_64-cpython-312/multidict
clang -fno-strict-overflow -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -O3 -Wall -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX14.sdk -I/private/var/folders/33/8sjf412n7ss41xlzfzth85qw0000gn/T/tmpo06x89fa/.venv/include -I/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12 -c multidict/_multidict.c -o build/temp.macosx-14.0-x86_64-cpython-312/multidict/_multidict.o -O2 -std=c99 -Wall -Wsign-compare -Wconversion -fno-strict-aliasing -pedantic
In file included from multidict/_multidict.c:9:
multidict/_multilib/iter.h:225:20: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
multidict_iter_init()
^
void
In file included from multidict/_multidict.c:10:
multidict/_multilib/views.h:388:21: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
multidict_views_init()
^
void
multidict/_multidict.c:458:37: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
static _PyArg_Parser _parser = {NULL, _keywords, "getall", 0};
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
multidict/_multidict.c:458:43: warning: incompatible pointer types initializing 'const char *' with an expression of type 'const char *const[3]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "getall", 0};
^~~~~~~~~
multidict/_multidict.c:458:54: warning: incompatible pointer types initializing 'const char *const *' with an expression of type 'char[7]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "getall", 0};
^~~~~~~~
multidict/_multidict.c:503:37: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
static _PyArg_Parser _parser = {NULL, _keywords, "getone", 0};
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
multidict/_multidict.c:503:43: warning: incompatible pointer types initializing 'const char *' with an expression of type 'const char *const[3]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "getone", 0};
^~~~~~~~~
multidict/_multidict.c:503:54: warning: incompatible pointer types initializing 'const char *const *' with an expression of type 'char[7]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "getone", 0};
^~~~~~~~
multidict/_multidict.c:538:37: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
static _PyArg_Parser _parser = {NULL, _keywords, "get", 0};
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
multidict/_multidict.c:538:43: warning: incompatible pointer types initializing 'const char *' with an expression of type 'const char *const[3]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "get", 0};
^~~~~~~~~
multidict/_multidict.c:538:54: warning: incompatible pointer types initializing 'const char *const *' with an expression of type 'char[4]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "get", 0};
^~~~~
multidict/_multidict.c:712:5: warning: 'UsingDeprecatedTrashcanMacro' is deprecated [-Wdeprecated-declarations]
Py_TRASHCAN_SAFE_BEGIN(self);
^
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/object.h:551:9: note: expanded from macro 'Py_TRASHCAN_SAFE_BEGIN'
UsingDeprecatedTrashcanMacro cond=1;
^
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12/cpython/object.h:548:1: note: 'UsingDeprecatedTrashcanMacro' has been explicitly marked deprecated here
Py_DEPRECATED(3.11) typedef int UsingDeprecatedTrashcanMacro;
^
/usr/local/opt/[email protected]/Frameworks/Python.framework/Versions/3.12/include/python3.12/pyport.h:317:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) attribute((deprecated))
^
multidict/_multidict.c:780:37: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
static _PyArg_Parser _parser = {NULL, _keywords, "add", 0};
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
multidict/_multidict.c:780:43: warning: incompatible pointer types initializing 'const char *' with an expression of type 'const char *const[3]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "add", 0};
^~~~~~~~~
multidict/_multidict.c:780:54: warning: incompatible pointer types initializing 'const char *const *' with an expression of type 'char[4]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "add", 0};
^~~~~
multidict/_multidict.c:839:37: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
static _PyArg_Parser _parser = {NULL, _keywords, "setdefault", 0};
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
multidict/_multidict.c:839:43: warning: incompatible pointer types initializing 'const char *' with an expression of type 'const char *const[3]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "setdefault", 0};
^~~~~~~~~
multidict/_multidict.c:839:54: warning: incompatible pointer types initializing 'const char *const *' with an expression of type 'char[11]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "setdefault", 0};
^~~~~~~~~~~~
multidict/_multidict.c:875:37: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
static _PyArg_Parser _parser = {NULL, _keywords, "popone", 0};
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
multidict/_multidict.c:875:43: warning: incompatible pointer types initializing 'const char *' with an expression of type 'const char *const[3]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "popone", 0};
^~~~~~~~~
multidict/_multidict.c:875:54: warning: incompatible pointer types initializing 'const char *const *' with an expression of type 'char[7]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "popone", 0};
^~~~~~~~
multidict/_multidict.c:922:37: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
static _PyArg_Parser _parser = {NULL, _keywords, "pop", 0};
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
multidict/_multidict.c:922:43: warning: incompatible pointer types initializing 'const char *' with an expression of type 'const char *const[3]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "pop", 0};
^~~~~~~~~
multidict/_multidict.c:922:54: warning: incompatible pointer types initializing 'const char *const *' with an expression of type 'char[4]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "pop", 0};
^~~~~
multidict/_multidict.c:970:37: error: incompatible pointer to integer conversion initializing 'int' with an expression of type 'void *' [-Wint-conversion]
static _PyArg_Parser _parser = {NULL, _keywords, "popall", 0};
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
multidict/_multidict.c:970:43: warning: incompatible pointer types initializing 'const char *' with an expression of type 'const char *const[3]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "popall", 0};
^~~~~~~~~
multidict/_multidict.c:970:54: warning: incompatible pointer types initializing 'const char *const *' with an expression of type 'char[7]' [-Wincompatible-pointer-types]
static _PyArg_Parser _parser = {NULL, _keywords, "popall", 0};
^~~~~~~~
multidict/_multidict.c:1684:18: warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
PyInit__multidict()
^
void
20 warnings and 8 errors generated.
error: command '/usr/bin/clang' failed with exit code 1
at /usr/local/Cellar/poetry/1.8.2/libexec/lib/python3.12/site-packages/poetry/installation/chef.py:164 in _prepare
160│
161│ error = ChefBuildError("\n\n".join(message_parts))
162│
163│ if error is not None:
→ 164│ raise error from None
165│
166│ return path
167│
168│ def _prepare_sdist(self, archive: Path, destination: Path | None = None) -> Path:
Note: This error originates from the build backend, and is likely not a problem with poetry but with multidict (6.0.4) not supporting PEP 517 builds. You can verify this by running 'pip wheel --no-cache-dir --use-pep517 "multidict (==6.0.4)"'.
The text was updated successfully, but these errors were encountered: