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

build error with M1 mac #3455

Closed
1 task done
zyt600 opened this issue Apr 28, 2023 · 9 comments
Closed
1 task done

build error with M1 mac #3455

zyt600 opened this issue Apr 28, 2023 · 9 comments
Labels
bug Something isn't working platform dependent When something works but not on all platforms setup Issues with getting Auto-GPT setup on local machines

Comments

@zyt600
Copy link
Contributor

zyt600 commented Apr 28, 2023

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

Which Operating System are you using?

MacOS

Which version of Auto-GPT are you using?

Stable (branch)

GPT-3 or GPT-4?

GPT-4

Steps to reproduce 🕹

git clone -b stable https://github.com/Significant-Gravitas/Auto-GPT.git
cd Auto-GPT
./run.sh

How to solve:
change requirements.txt: orjson->orjson==3.8.10
I don't know why, but it solved my problem

Current behavior 😯

error before change requirements.txt: orjson->orjson==3.8.10 are listed below

ImportError: dlopen(/Users/zhouyutong/anaconda3/envs/autogpt2/lib/python3.10/site-packages/orjson/orjson.cpython-310-darwin.so, 0x0002): tried: '/Users/zhouyutong/anaconda3/envs/autogpt2/lib/python3.10/site-packages/orjson/orjson.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64')), '/System/Volumes/Preboot/Cryptexes/OS/Users/zhouyutong/anaconda3/envs/autogpt2/lib/python3.10/site-packages/orjson/orjson.cpython-310-darwin.so' (no such file), '/Users/zhouyutong/anaconda3/envs/autogpt2/lib/python3.10/site-packages/orjson/orjson.cpython-310-darwin.so' (mach-o file, but is an incompatible architecture (have 'arm64', need 'x86_64'))
Press any key to continue...

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here

Your Logs 📒

<insert your logs here>
@Pwuts Pwuts mentioned this issue Apr 28, 2023
5 tasks
@k-boikov k-boikov added bug Something isn't working setup Issues with getting Auto-GPT setup on local machines platform dependent When something works but not on all platforms labels Apr 28, 2023
@Pwuts
Copy link
Member

Pwuts commented Apr 28, 2023

Please create an issue in the orjson repo as well: https://github.com/ijl/orjson/issues

@Pwuts
Copy link
Member

Pwuts commented Apr 28, 2023

None of our testers can reproduce this issue with orjson version 3.8.11

@kskk02
Copy link

kskk02 commented Apr 29, 2023

I am getting this error too. Im on a M1 macbook !

@kskk02
Copy link

kskk02 commented Apr 29, 2023

I made the change to orjson and this did not fix the issue. I still get the error (mach-o file, but is an incompatible architecture (have (arm64), need (x86_64)))

(base) sri.kanajan@SCMJNJ1CPQJH9 Auto-GPT % pip freeze | grep orjson
orjson==3.8.11

@filip-michalsky
Copy link

filip-michalsky commented Apr 30, 2023

@Pwuts Had this issue in the morning. downgraded orjson to 3.8.1 then it worked for me on Mac with M1

https://stackoverflow.com/questions/71349322/unable-to-install-orjson-3-3-0-on-macos-12-2-1-with-apple-m1-chip

@Pwuts
Copy link
Member

Pwuts commented Apr 30, 2023

@filip-michalsky ok so 3.8.11 is broken. Does version 3.8.10 work for you?

@zyt600
Copy link
Contributor Author

zyt600 commented Apr 30, 2023

As for me, version 3.8.10 works for me. I just need to change the orjson version to 3.8.10 to fix the bug

@zyt600
Copy link
Contributor Author

zyt600 commented Apr 30, 2023

UPDATE: HOW TO REPRODUCE
use a M1 Mac with macOS 13.3.1

git clone -b stable https://github.com/Significant-Gravitas/Auto-GPT.git
cd Auto-GPT
conda create -n bug_env python=3.10
conda activate bug_env
./run.sh

@chett2001
Copy link

I am having the same issue. Downgrading orson to orjson==3.8.10 fixed the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform dependent When something works but not on all platforms setup Issues with getting Auto-GPT setup on local machines
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants