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

Apple M1 support #2313

Closed
radvansky-tomas opened this issue Apr 22, 2021 · 195 comments
Closed

Apple M1 support #2313

radvansky-tomas opened this issue Apr 22, 2021 · 195 comments
Labels
bug Something isn't working

Comments

@radvansky-tomas
Copy link

App works fine on m1 mac mini, however main plotting process chia still runs with intel arch (ie emulation)

I think i would def speed up processing process if it was compiled agains arm/apple silicon

@radvansky-tomas radvansky-tomas added the bug Something isn't working label Apr 22, 2021
@hoffmang9
Copy link
Member

Are you using the .dmg install? It is x86_64 only and the native M1 install requires using git - but that is fully ARM native.

I plan to post a 1.1.0 all M1 .dmg in a couple of days.

@radvansky-tomas
Copy link
Author

Yes I used dmg, so if i replace my install with brew install, it will install it with apple arch ?

@hoffmang9
Copy link
Member

If you use the development install version you will get an all M1/Apple Silicon build. You can run both - but not both GUIs at the same time.

@radvansky-tomas
Copy link
Author

@hoffmang9 install failed

I had to install more packages like cmake but still it fails with

Building wheels for collected packages: aiohttp, chiabip158, chiavdf, PyYAML, setproctitle, websockets, cffi, multidict, yarl, argon2-cffi, pycryptodome
  Building wheel for aiohttp (PEP 517) ... done
  Created wheel for aiohttp: filename=aiohttp-3.7.4-cp38-cp38-macosx_10_14_arm64.whl size=822623 sha256=a3e9ee8f8d0c3f9228cb2d2a90967b92894d11e17cc96911863066f14706b164
  Stored in directory: /Users/tomasradvansky/Library/Caches/pip/wheels/30/2d/91/ea1b84c8c69e3bb0aaf3db1e5488f0646b3496e5f5d10bb42f
  Building wheel for chiabip158 (PEP 517) ... done
  Created wheel for chiabip158: filename=chiabip158-1.0-cp38-cp38-macosx_10_14_arm64.whl size=278367 sha256=a333a230cc779e9ffa5aa436a88f703d58992e0ee85bb5a77c05d059d9727d77
  Stored in directory: /Users/tomasradvansky/Library/Caches/pip/wheels/04/ec/18/f631f7a42837697ac80e64590041afd59b7e5033f87f8c6f77
  Building wheel for chiavdf (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /Users/tomasradvansky/Documents/chia/chia-blockchain/venv/bin/python3 /Users/tomasradvansky/Documents/chia/chia-blockchain/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/3h/xyph78j90xn59smt_76225m40000gn/T/tmpw84hol39
       cwd: /private/var/folders/3h/xyph78j90xn59smt_76225m40000gn/T/pip-install-uojd86u5/chiavdf_3b028df882e14b0a9c84761279b0160c
  Complete output (70 lines):
  running bdist_wheel
  running build
  running build_ext
  -- The C compiler identification is AppleClang 12.0.0.12000032
  -- The CXX compiler identification is AppleClang 12.0.0.12000032
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc - skipped
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ - skipped
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  GMP_INCLUDES=GMP_INCLUDES-NOTFOUND
  CMake Error at /opt/homebrew/Cellar/cmake/3.20.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
    Could NOT find GMP (missing: GMP_INCLUDES GMP_LIBRARIES GMP_VERSION_OK)
    (Required is at least version "5.1.0")
  Call Stack (most recent call first):
    /opt/homebrew/Cellar/cmake/3.20.1/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
    cmake/FindGMP.cmake:74 (find_package_handle_standard_args)
    CMakeLists.txt:17 (find_package)
  
  
  -- Configuring incomplete, errors occurred!
  See also "/private/var/folders/3h/xyph78j90xn59smt_76225m40000gn/T/pip-install-uojd86u5/chiavdf_3b028df882e14b0a9c84761279b0160c/CMakeFiles/CMakeOutput.log".
  See also "/private/var/folders/3h/xyph78j90xn59smt_76225m40000gn/T/pip-install-uojd86u5/chiavdf_3b028df882e14b0a9c84761279b0160c/CMakeFiles/CMakeError.log".
  Traceback (most recent call last):
    File "/Users/tomasradvansky/Documents/chia/chia-blockchain/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in <module>
      main()
    File "/Users/tomasradvansky/Documents/chia/chia-blockchain/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/Users/tomasradvansky/Documents/chia/chia-blockchain/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 204, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/private/var/folders/3h/xyph78j90xn59smt_76225m40000gn/T/pip-build-env-weg_bcby/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 221, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/private/var/folders/3h/xyph78j90xn59smt_76225m40000gn/T/pip-build-env-weg_bcby/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 207, in _build_with_temp_dir
      self.run_setup()
    File "/private/var/folders/3h/xyph78j90xn59smt_76225m40000gn/T/pip-build-env-weg_bcby/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 150, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 266, in <module>
      setup(
    File "/private/var/folders/3h/xyph78j90xn59smt_76225m40000gn/T/pip-build-env-weg_bcby/overlay/lib/python3.8/site-packages/setuptools/__init__.py", line 153, in setup
      return distutils.core.setup(**attrs)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/core.py", line 148, in setup
      dist.run_commands()
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 966, in run_commands
      self.run_command(cmd)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/private/var/folders/3h/xyph78j90xn59smt_76225m40000gn/T/pip-build-env-weg_bcby/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
      self.run_command('build')
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/command/build.py", line 135, in run
      self.run_command(cmd_name)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/cmd.py", line 313, in run_command
      self.distribution.run_command(command)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/distutils/dist.py", line 985, in run_command
      cmd_obj.run()
    File "setup.py", line 112, in run
      self.build_extension(ext)
    File "setup.py", line 139, in build_extension
      subprocess.check_call(["cmake", ext.sourcedir] + cmake_args, env=env)
    File "/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 364, in check_call
      raise CalledProcessError(retcode, cmd)
  subprocess.CalledProcessError: Command '['cmake', '/private/var/folders/3h/xyph78j90xn59smt_76225m40000gn/T/pip-install-uojd86u5/chiavdf_3b028df882e14b0a9c84761279b0160c/src', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/private/var/folders/3h/xyph78j90xn59smt_76225m40000gn/T/pip-install-uojd86u5/chiavdf_3b028df882e14b0a9c84761279b0160c/build/lib.macosx-10.14.6-arm64-3.8', '-DPYTHON_EXECUTABLE=/Users/tomasradvansky/Documents/chia/chia-blockchain/venv/bin/python3', '-DCMAKE_BUILD_TYPE=Release']' returned non-zero exit status 1.
  ----------------------------------------
  ERROR: Failed building wheel for chiavdf
  Building wheel for PyYAML (PEP 517) ... done
  Created wheel for PyYAML: filename=PyYAML-5.4.1-cp38-cp38-macosx_10_14_arm64.whl size=45646 sha256=4afa7bdb673a042963a01a0f0e77cbedee158f4d41607687859dbf2c6acdb415
  Stored in directory: /Users/tomasradvansky/Library/Caches/pip/wheels/dd/c5/1d/5d7436173d3efd4a14dcb510eb0b29525ecb6b0e41489e716e
  Building wheel for setproctitle (PEP 517) ... done
  Created wheel for setproctitle: filename=setproctitle-1.2.2-cp38-cp38-macosx_10_14_arm64.whl size=17231 sha256=665aa92adcc6c84e1d568329a1ae9e3bb72f232c63e8daf864e33c3552f83e2b
  Stored in directory: /Users/tomasradvansky/Library/Caches/pip/wheels/b9/ab/37/d7f708c18953117b9bc48bf94f7f083f42268771f6fd842a1f
  Building wheel for websockets (setup.py) ... done
  Created wheel for websockets: filename=websockets-8.1-cp38-cp38-macosx_10_14_arm64.whl size=68234 sha256=d28455af1cd49b2d7b4249a3a585e08c674eeee354a188d071f08627b71e022b
  Stored in directory: /Users/tomasradvansky/Library/Caches/pip/wheels/6a/56/ca/2c56e60f30fb1b1975a721e8212bb751142c52b081073efdc9
  Building wheel for cffi (setup.py) ... done
  Created wheel for cffi: filename=cffi-1.14.5-cp38-cp38-macosx_10_14_arm64.whl size=258069 sha256=72e89c42d88d74dc113093b4e7f4cdbe4d91b0458a6fb6117aac561444e0a060
  Stored in directory: /Users/tomasradvansky/Library/Caches/pip/wheels/04/f4/d8/7ce287ba472b28f118422005f3e885c8124dd5dd092889685b
  Building wheel for multidict (PEP 517) ... done
  Created wheel for multidict: filename=multidict-5.1.0-cp38-cp38-macosx_10_14_arm64.whl size=67896 sha256=cded70e9c5999a0bf29c36e3584a34a73106de6a5e687704d395862186c5cbf6
  Stored in directory: /Users/tomasradvansky/Library/Caches/pip/wheels/72/97/bc/5bffee542d18b454f73bd1a593cd104de3c46a50e4f2946728
  Building wheel for yarl (PEP 517) ... done
  Created wheel for yarl: filename=yarl-1.6.3-cp38-cp38-macosx_10_14_arm64.whl size=158284 sha256=b92abaf8f08de7b2f17c7aa045211d1a3cd9d883404d54b23e300fd464f5712f
  Stored in directory: /Users/tomasradvansky/Library/Caches/pip/wheels/03/1d/d3/9693ea3024088fd2555f0cdbb42cb6b133e389a8e68502f85f
  Building wheel for argon2-cffi (PEP 517) ... done
  Created wheel for argon2-cffi: filename=argon2_cffi-20.1.0-cp38-abi3-macosx_10_14_arm64.whl size=64449 sha256=cc1d1a149afaa78ed3a7f443ab4333210a7b96fc7ac6344fc407b8599a56d704
  Stored in directory: /Users/tomasradvansky/Library/Caches/pip/wheels/a8/61/59/3fb44bae5cfd2c3d86682f7778670cb0800f7da9bd98450d70
  Building wheel for pycryptodome (setup.py) ... done
  Created wheel for pycryptodome: filename=pycryptodome-3.10.1-cp35-abi3-macosx_10_14_arm64.whl size=2256584 sha256=7e0309dee2c5a6ea6ee25c82561b4d0091f724d490a531591d5bfb4b317b1d2e
  Stored in directory: /Users/tomasradvansky/Library/Caches/pip/wheels/c0/ea/17/9532e6c584a4545f9f86072c6f3739a14aece71d1e211e0ab1
Successfully built aiohttp chiabip158 PyYAML setproctitle websockets cffi multidict yarl argon2-cffi pycryptodome
Failed to build chiavdf
ERROR: Could not build wheels for chiavdf which use PEP 517 and cannot be installed directly

@hoffmang9
Copy link
Member

The reason it failed is that we assume all M1's have Python 3.9 as I did not think Python 3.8 can run natively on M1.

If you upgrade to 3.9 it should build.

@radvansky-tomas
Copy link
Author

yes that worked. installed pyenv and 3.9

@radvansky-tomas
Copy link
Author

I was probably too optimistic @hoffmang9 i was able to install it, but GUI hangs on connecting to wallet and in terminal i have

tomasradvansky@Tomass-Mac-mini chia-blockchain % . ./activate
(venv) tomasradvansky@Tomass-Mac-mini chia-blockchain % cd chia-blockchain-gui
(venv) tomasradvansky@Tomass-Mac-mini chia-blockchain-gui % npm run electron &
[1] 1680
(venv) tomasradvansky@Tomass-Mac-mini chia-blockchain-gui % 
> electron
> electron .

/Users/tomasradvansky/Documents/chia/chia-blockchain/app.asar.unpacked/daemon
false
Error loading config - using defaults
startUrl file:///Users/tomasradvansky/Documents/chia/chia-blockchain/chia-blockchain-gui/build/renderer/index.html
/Users/tomasradvansky/Documents/chia/chia-blockchain/app.asar.unpacked/daemon
false
/Users/tomasradvansky/Documents/chia/chia-blockchain/app.asar.unpacked/daemon
false
Running python script
Script ../chia/daemon/server.py
child process success
(node:1684) electron: The default of contextIsolation is deprecated and will be changing from false to true in a future release of Electron.  See https://github.com/electron/electron/issues/23506 for more information
stderr: Traceback (most recent call last):
  File "../chia/daemon/server.py", line 16, in <module>
    from websockets import ConnectionClosedOK, WebSocketException, WebSocketServerProtocol, serve
ModuleNotFoundError: No module named 'websockets'
closing code: 1

@radvansky-tomas
Copy link
Author

With latest update I was able to install and run chia network and gui

However its still not compiled to ARM

Screen Shot 2021-04-22 at 10 10 37 PM

@a12one
Copy link

a12one commented Apr 24, 2021

@radvansky-tomas have you managed to find a solution?

@a12one
Copy link

a12one commented Apr 24, 2021

@radvansky-tomas also, as you are aiming to use M1, I assume you are using a external drive for farming? May I ask what ymis your setup? Thanks

@radvansky-tomas
Copy link
Author

Yes for now I have just one 4TB drive to store my plots. But I will build separate NAS storage. M1 is pretty good for making plots, and I am sure it could be faster with native implementation

@a12one
Copy link

a12one commented Apr 24, 2021

yeah, M1 is a good idea, have you experimented with the speed difference on plotting on built-in SSD vs the external hard drive? will the external hard drive be slower as in if the USB3.0 can be the bottleneck?

@radvansky-tomas
Copy link
Author

You can use TB3 with nvme enclosure...that is not really a bottleneck...
16gb ram is one...
and second is number of threads...

But in general is much faster then cloud plotting i tried, or ryzen3100

@matzehali
Copy link

matzehali commented Apr 25, 2021

Are you using the .dmg install? It is x86_64 only and the native M1 install requires using git - but that is fully ARM native.

I plan to post a 1.1.0 all M1 .dmg in a couple of days.

Is this one still in the works?
I'm no coder and I tried to somehow build a venv with native ARM64 python (which I was able to do), but when installing chia 1.1.2 via homebrew it's still using the Intel-version of python.
After hours of trying to find out how to build chia from source I gave up, so a native dmg would be highly appreciated.
Or just a quick note on how to build it when in the venv already.

Thanks.

@radvansky-tomas
Copy link
Author

It did not work for me....I installed it from GIT but its still under Intel arch

@alexjcampbell
Copy link

@radvansky-tomas Exactly what version of Python are you using? I suggest downloading the whole latest Python package fresh, and then deleting your Chia app folder and re-downloading the latest release of Chia from Github to it. That worked for me yesterday on M1 MacBook

@hoffmang9
Copy link
Member

Python 3.9 is required to get the M1 native wheels.

@radvansky-tomas
Copy link
Author

Python 3.9.4 @alexjcampbell @hoffmang9

@radvansky-tomas
Copy link
Author

And you can see in my screenshot that python instances are running with Apple arch...but chia is running with Intel

@radvansky-tomas
Copy link
Author

Latests now from git....same

Screen Shot 2021-04-26 at 10 04 20 AM

@zwyuan
Copy link

zwyuan commented Apr 25, 2021

I am actually able to get Chia 1.1.2 to run natively on an M1 Mac. Here are the main steps:

  • Use brew to install Python 3.9.4 (native release)
  • Add Homebrew's python 3.9.4 bins in the $PATH (by checking $python -V)
  • Git clone chia-blockchain using latest branch, and do a clean install, then build GUI as well (you should see the Python invoked in both steps as 3.9.4
  • run npm run electron & and that process (Electron) will be showing as Apple in Activity Monitor

See latest screenshot on M1 Mac using Chia 1.1.2:
Screen Shot 2021-04-25

@radvansky-tomas
Copy link
Author

@zwyuan Electron process is running natively, no one said anything about it ;)

chia process is running with Intel

@zwyuan
Copy link

zwyuan commented Apr 26, 2021

@zwyuan Electron process is running natively, no one said anything about it ;)

chia process is running with Intel

Well, I could be wrong, but all I can see when I started plotting using command line, is that it spawned Python processes with Apple arch. Same result when I opened GUI and started new plots there. I do not see any chia process with Intel arch when plotting. That's why I think I got native process with the latest version. Maybe @hoffmang9 could offer some more insights?

@radvansky-tomas
Copy link
Author

Maybe that chia process is for farming / node keeping

@radvansky-tomas
Copy link
Author

But none the less, when I am plotting AND farming...chia process it utilising like 200% cpu (and its running in emulation)

image

@hoffmang9
Copy link
Member

It runs natively on the company M1 that also generates the M1 wheels. If only we had CI...

@firesh
Copy link

firesh commented May 26, 2021

I have tested using 2TB internal SSD on 16GB Mac Mini.
Got 20 plots each day.
The SSD is good enough in both speed and space. And SSD speed still can reach 2GB/s during the plotting.
I think It's the limitation of M1(16GB). Expect M1X(32GB)...
Anyone get more plots?

about 5 hours each plot but four in parallel.

@bmentink
Copy link

bmentink commented May 26, 2021 via email

@atf130
Copy link

atf130 commented May 26, 2021

@bmentink whats your set up ram threads etc, thats pretty quick on usb 3.1...

@bmentink
Copy link

bmentink commented May 26, 2021 via email

@atf130
Copy link

atf130 commented May 26, 2021

@bmentink thanks for sharing, did you have a delay on both plot or run at same time ?

@bmentink
Copy link

Delay was 85min :)

@atf130
Copy link

atf130 commented May 26, 2021

@bmentink thanks sir, its interesting changing the settings and playing around to get optimum plot rates

Are you using native M1 build ?

@mylastore
Copy link

I plan to post a 1.1.0 all M1 .dmg in a couple of days.

Can you tell us the status on M1 dmg?
Thanks

@hoffmang9
Copy link
Member

We are waiting on any of the major CIs that are compatible with GitHub to have M1 runners.

@bmentink
Copy link

bmentink commented May 26, 2021

@bmentink thanks sir, its interesting changing the settings and playing around to get optimum plot rates

Are you using native M1 build ?

Yes, built with homebrew .. let me know if you achieve better :)

@atf130
Copy link

atf130 commented May 26, 2021

@bmentink I have been tryinf but get errors at last stage or building chia code

sh install.sh
. ./activate

Message is

Failed to build blspy chiapos chiavdf
ERROR: Could not build wheels for blspy, chiapos, chiavdf which use PEP 517 and cannot be installed directly

@shadowzerro
Copy link

Omg just watch a video on YT and he said he can plot 30-40TB a day but the production cannot catch-up the growth of the chia net work. And he Only made half of the money back for every TB he spent on the drives.

@CharlesWiltgen
Copy link

Please avoid posting about anything other than M1 support here. (Reddit's /r/chia is a good place for general whining.)

@scotopic
Copy link

@atf130 : Google says you may need to update pip pip3 install --upgrade pip or something isn't right with your python3.9 install ?

You could try to install/plotting chia via my guide ( no homebrew ): https://github.com/scotopic/chia-guide#setup-chia-from-git

@atf130
Copy link

atf130 commented May 27, 2021

@scotopic thanks for the suggestion will try it out. Pyhon installed fine will give it a go again

@atf130
Copy link

atf130 commented May 27, 2021

@scotopic just tried updating pip
getting the following:
Collecting pip
Using cached https://files.pythonhosted.org/packages/cd/82/04e9aaf603fdbaecb4323b9e723f13c92c245f6ab2902195c53987848c78/pip-21.1.2-py3-none-any.whl
Installing collected packages: pip
Found existing installation: pip 19.2.3
Uninstalling pip-19.2.3:
ERROR: Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: 'RECORD'
Consider using the --user option or check the permissions.

ny ideas?

@atf130
Copy link

atf130 commented May 27, 2021

@scotopic sorry my bad didn't use sudo

@bmentink
Copy link

bmentink commented May 28, 2021

Update: I am achieving 10 plots per day on my 8G M1 with 3400MB and 1TB 10Gbit SSD, 2 parallel plots ... I am getting a 40Gbit interface for my SSD soon, will see if I can do 3 parallel plots with 8G memory :)

@shadowzerro
Copy link

shadowzerro commented May 28, 2021 via email

@bmentink
Copy link

bmentink commented May 28, 2021

Wow that’s good numbers. What’s the threads set for the 2 parallel plots. Also What is the speed on your ssd by using the black magic. My 10gbit ssd enclosure only give me 700-800ish.

Hi, threads are 6. My 10Gb SSD enclosure is about the same speed .. using a WD green .. be interested in seeing what sort of life I will get out of it, being so cheap ...

Also, I am using plotman to run my plots, it's set to run the 2nd plot on stage 2 of the ist plot. Also setup so only two plots can happen in parallel at all times ..

@bmentink
Copy link

bmentink commented May 28, 2021

Screen Shot 2021-05-29 at 10 13 39 AM
Here is visualisation of the last 4 plots ... Plotman does a good job of never overlapping more than two plots ..

@atf130
Copy link

atf130 commented May 28, 2021

I am struggling to get the m1 native build still.
Round and round in circles.

@bmentink
Copy link

bmentink commented May 28, 2021

@atf130 Did you follow @nerirififi's build instructions in an earlier post? I had several failed attempts, then it all came together by following his method ..

@bmentink
Copy link

Hmmm, his posts seem to have vanished ... here are the instructions anyway ....
`======================================================

Install brew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Set brew in the path
export PATH=/opt/homebrew/bin:$PATH

Install python & node

brew install pyenv
brew install python@3.9
brew install node

set python in the path
export PATH="$(brew --prefix)/opt/python/libexec/bin:$PATH"

Check if python 3.9 is use

python -V

install rust

you can try this
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Do as instructed and put in PATH

Next, compile chia blockchain

=======================================================

git clone https://github.com/Chia-Network/chia-blockchain.git -b latest
cd chia-blockchain

then

sh install.sh
. ./activate

then

sh install-gui.sh

then

cd chia-blockchain-gui
npm run electron &

`

@shadowzerro
Copy link

has anyone experienced chia plot using uniform sort.ram ? I have M1 MacBook with 16GB ram. And plotting with 2TB(external enclosure)SSD to HDD. I set 4 plots,parallel 3400ram,and 12 thread on GUI. I have 16GB ram and not running any-other apps, why some plots using ram as swap used?image

@atf130
Copy link

atf130 commented May 28, 2021

@bmentink thanks for reposting. Yes i followed the exact steps and was getting errors. Managed to get passed it all until the last stage

npm run electron &

Which gave error cant find npm command.

Gona try it all again in my other mac which is M1 macbook pro and see if it works on there.
Just want to test native build to see how well it performs against offcial 1.1.6 x86 build

@atf130
Copy link

atf130 commented May 28, 2021

@bmentink damn this is annoying now failing at python stage
brew install pyenv
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
Error: No available formula or cask with the name "pyenv".
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching taps on GitHub...
Error: No formulae found in taps.

GitHub down or what...

@radvansky-tomas
Copy link
Author

I closed this issue, as it has been resolved weeks ago and you are basically discussing here...move your questions to discussion or other platform please

@fl1jason
Copy link

fl1jason commented Jun 4, 2021

Ok 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests