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

Fix for Apple M1 Chips (makes your Hashlips Art Engine working) #812

Closed
deemount opened this issue Feb 26, 2022 · 109 comments
Closed

Fix for Apple M1 Chips (makes your Hashlips Art Engine working) #812

deemount opened this issue Feb 26, 2022 · 109 comments

Comments

@deemount
Copy link

  1. Download the source and put it somewhere
  2. Be sure using a nodejs version around v14.17.3. Manage your version with nvm, if you need to!
    a) nvm install v14.17.3
    b) nvm alias default v14.17.3
    Be sure, you have no node version in your export path in zshrc
  3. Canvas 2.8 failed to install (main reason why it's not working on m1)? Put in your zsh or bash:
    arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg
  4. go now in the hashlips_art_engine root-folder and put in your terminal:
    a) npm install
    b) node index.js

Et Voila. Enjoy generating ...

@9dieg
Copy link

9dieg commented Feb 27, 2022

I tryed everything here, but still not working. I get this dlopen(/Users/*****/Desktop/hashlips_art_engine-main/node_modules/canvas/build/Release/canvas.node, 0x0001): symbol not found in flat namespace '_cairo_fill'

@azf20
Copy link

azf20 commented Feb 28, 2022

@9dieg I think you may need to make sure your Homebrew is updated for your M1

@9dieg
Copy link

9dieg commented Mar 1, 2022

@azf20 didn't work..:s

@funkymonkey5150
Copy link

it worked for me thaNK YOU

@funkymonkey5150
Copy link

YOU MIGHT HAVE SOMETHING OR ANOTHER VERSION OF NODE ISNTALLED

@CobraKaiX
Copy link

I am only able to generate 2 images even though it's set to generate 10

@bolshoytoster
Copy link

@CobraKaiX does it give an error?

@funkymonkey5150
Copy link

funkymonkey5150 commented Mar 24, 2022

It worked Like a few times and now its not working again , it worked when I was testing it and now it doesnt work what did you end up doing

@funkymonkey5150
Copy link

I am only able to generate 2 images even though it's set to generate 10

check on the OUTput next to terminal it sometimes gives you some feedback there

@bolshoytoster
Copy link

@funkymonkey5150 can you paste the error you get please.

@saxonheller
Copy link

same issue on my end only able to generate max 5 images and sometimes less

receive this error
TypeError: Cannot read properties of undefined (reading 'path')
at /Users/saxonheller/Desktop/minter-dapp-main/backend/src/main.js:181:61
at new Promise ()
at loadLayerImg (/Users/saxonheller/Desktop/minter-dapp-main/backend/src/main.js:180:10)
at /Users/saxonheller/Desktop/minter-dapp-main/backend/src/main.js:361:31
at Array.forEach ()
at startCreating (/Users/saxonheller/Desktop/minter-dapp-main/backend/src/main.js:360:17)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

any ideas?

@bolshoytoster
Copy link

@saxonheller try using my fork.

@ipv6freely
Copy link

I found that installing the "Latest Features" version of node.js (17.8.0 as of the time of this post) and then installing the dependencies via Homebrew as indicated above worked perfectly.
arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg

@deemount
Copy link
Author

Sounds good, I will test it, too. Thank you

@Brackko
Copy link

Brackko commented Apr 5, 2022

It seems good for me, thanks @deemount

@yogjin
Copy link

yogjin commented Apr 7, 2022

It worked! Thank you very much.

@nfthorsy
Copy link

nfthorsy commented Apr 7, 2022

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! hashlips_art_engine@1.1.1 generate: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the hashlips_art_engine@1.1.1 generate script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found

have this problem help please..

@ipv6freely
Copy link

This doesn't appear to be related to Apple M1 Chips, based on the error. If you have a separate issue, please open a new Issue ticket.

@ipv6freely
Copy link

@deemount have you confirmed that upgrading nodejs is successful for you? Ideally we don't want to be telling people to downgrade, for obvious reasons :)

@bolshoytoster
Copy link

@nfthorsy can you paste the full error please.

@deemount
Copy link
Author

deemount commented Apr 7, 2022

Had not the time, but would do it tomorrow and give you the information then

@arjayosma
Copy link

arjayosma commented Apr 9, 2022

Reply from @ipv6freely:

@deemount have you confirmed that upgrading nodejs is successful for you? Ideally we don't want to be telling people to downgrade, for obvious reasons :)

I can confirm this one on my M1 machine. I had v16 previously and installed the v17 package to test it out.

steps:

  1. installed v17
  2. ran this command with homebrew arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg
  3. reopened terminal and vscode

notes:

  1. you may use nvm to install v17
  2. you may need to install homebrew if not yet in system

@drn999
Copy link

drn999 commented Apr 9, 2022

@deemount I'm trying to get my M1 Max running the art engine and no dice. Can you create a video that shows us how to follow the steps at the beginning of the thread? Think of it as nobody knows anything about this process since I'm a complete neophyte. Thanks! -D

@ipv6freely
Copy link

@deemount I'm trying to get my M1 Max running the art engine and no dice. Can you create a video that shows us how to follow the steps at the beginning of the thread? Think of it as nobody knows anything about this process since I'm a complete neophyte. Thanks! -D

You don’t want to follow the steps at the beginning of the thread. You want to follow what I did and what @arjayosma confirmed works.

Install nodejs latest (v17) and then run the brew install command assuming you have homebrew installed. If you don’t have homebrew installed then download and install that (google it).

@drn999
Copy link

drn999 commented Apr 10, 2022

DUDE! Worked! Thanks a million-I was banging my head on my desk getting error after error. Thank you!

@ipv6freely
Copy link

DUDE! Worked! Thanks a million-I was banging my head on my desk getting error after error. Thank you!

No problem!

@WCACnft
Copy link

WCACnft commented Apr 12, 2022

I have an M1 Mac...trying to download homebrew and I keep getting a message about checking for sudo access...what am I doing wrong?

@ipv6freely
Copy link

I have an M1 Mac...trying to download homebrew and I keep getting a message about checking for sudo access...what am I doing wrong?

You need to use sudo.

@WCACnft
Copy link

WCACnft commented Apr 12, 2022

@ipv6freely - I am about as new as it gets....is that something I need to download?

@ipv6freely
Copy link

ipv6freely commented Apr 12, 2022

@ipv6freely - I am about as new as it gets....is that something I need to download?

No, you just need admin privileges to install software. Do “sudo ” and put in your password to elevate privileges.

This is nothing to do with the software or homebrew, it’s a basic system command.

@crypt0h1ppy
Copy link

Any help please?

@ipv6freely
Copy link

Any help please?

This Issue thread is to address how to make nodejs work correctly on M1 based Macs. For unrelated questions I would suggest asking on Discord

@crypt0h1ppy
Copy link

I’m on a Mac. I have asked discord. I was hoping someone could help me. I know it’s something dumb. So you can’t help?

@ipv6freely
Copy link

I’m on a Mac. I have asked discord. I was hoping someone could help me. I know it’s something dumb. So you can’t help?

Again, this thread is nodejs install issues on an M1 Mac. Your question is not in any way related.

@crypt0h1ppy
Copy link

Sorry thread nazi

@crypt0h1ppy
Copy link

An actual human helped me already

@ipv6freely
Copy link

An actual human helped me already

Great. Now we can stop cluttering this thread with unrelated nonsense.

@CobraKaiX
Copy link

CobraKaiX commented May 12, 2022 via email

@bolshoytoster
Copy link

@CobraKaiX can you try using my fork please.

also, ipv6freely is quite defensive of this thread, you should keep it to M1 issues only.

@ipv6freely
Copy link

@CobraKaiX can you try using my fork please.

also, ipv6freely is quite defensive of this thread, you should keep it to M1 issues only.

I honestly don’t care anymore. Seems hashlips couldn’t care less about it and all I get is crap for trying to stay on topic, so why bother helping anymore? I’m unfollowing this thread and locking the updated version one I made. I give up.

@bolshoytoster
Copy link

@ipv6freely next time I talk to HashLips I'll ask for permissions to close/lock issues.

@HashLips HashLips closed this as completed Jun 5, 2022
@funkymonkey5150
Copy link

npm ERR! Failed at the hashlips_art_engine@1.1.1 generate script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@funkymonkey5150
Copy link

npm ERR! Failed at the hashlips_art_engine@1.1.1 generate script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@bolshoytoster
Copy link

@funkymonkey5150 is that the whole error? If so, could you paste the output of running node index.js.

@Angelje47
Copy link

what do i have to do

10k-collection-video@2.0.0 generate
node index.js

node:fs:1450
handleErrorFromBinding(ctx);
^

Error: ENOENT: no such file or directory, scandir '/Users/elsygarcia/Downloads/create-10k-nft-collection-2.0.0/layers/Background/'
at Object.readdirSync (node:fs:1450:3)
at getElements (/Users/elsygarcia/Downloads/create-10k-nft-collection-2.0.0/src/main.js:73:6)
at /Users/elsygarcia/Downloads/create-10k-nft-collection-2.0.0/src/main.js:89:15
at Array.map ()
at layersSetup (/Users/elsygarcia/Downloads/create-10k-nft-collection-2.0.0/src/main.js:87:30)
at startCreating (/Users/elsygarcia/Downloads/create-10k-nft-collection-2.0.0/src/main.js:352:20)
at /Users/elsygarcia/Downloads/create-10k-nft-collection-2.0.0/index.js:6:3
at Object. (/Users/elsygarcia/Downloads/create-10k-nft-collection-2.0.0/index.js:7:3)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1174:10) {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/Users/elsygarcia/Downloads/create-10k-nft-collection-2.0.0/layers/Background/'
}

Node.js v18.7.0

@bolshoytoster
Copy link

bolshoytoster commented Aug 20, 2022

@Angelje47 you need to save src/config.js.

@WissemEd
Copy link

Hello everyone,

I am trying to run the command "npm I" on my VScode terminal on a M1 Mac. Unfortunately, I keep having several errors that I don't understand even after trying what suggested in this thread : I am unable to solve it :

Capture d’écran 2022-08-24 à 16 45 34

Could anyone help me to solve this issue please ? Thank you very much in advance

@bolshoytoster
Copy link

@WissemEd did you run arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg?

You're also not using node v14.17.3

@WissemEd
Copy link

@bolshoytoster Do you think that I should use v14.17.3 only ? I am currently trying the most recent version

@bolshoytoster
Copy link

@WissemEd the original message in this issue says so.

@ipv6freely
Copy link

@bolshoytoster @WissemEd No, you do not want to use 14.17.3. This issue ticket was closed long ago because it's no longer valid. I posted the updated fix months ago: #1115

@funkymonkey5150
Copy link

sure, you have no node version in your export path in zshrc

sure, you have no node version in your export path in zshr how can I check that that there is no node version in my export path in ZSHR how can I check that? I'm sorry for the question I just would rather know from somebody who is dealing with the same problem then other than anyone else that I know I can probably find it online but if you have the answer, I would really appreciate it. Thank you so much for your help you're awesome.

@funkymonkey5150
Copy link

@CobraKaiX try using my fork.

Has anybody used disguise fork at call @CobraKaiX

Let me know if anybody has it working. I keep on getting an error message

@bolshoytoster
Copy link

@funkymonkey5150 can you paste the errors here please?

@funkymonkey5150
Copy link

So what did you do for the error to to be fixed? What did you do so that it could work on your end? I'm just not sure what was the final resolution to this issue let me know if you have time to share the outcome of this so that I can apply. I'm still having problems with mine. > >

An actual human helped me already

@bolshoytoster
Copy link

@funkymonkey5150

So what did you do for the error to to be fixed?

What error(s)? If it's definetely because you're on an arm mac you should look at the new issue.

@ipv6freely
Copy link

Why is this still getting replies? This has been closed for 7+ months.

@lokeshnft9
Copy link

10k-collection-video@2.0.1 upload_metadata
node utils/nftport/uploadMetas

Starting upload of metadata...
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 429
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 429
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 429
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 429
Retrying
CATCH ERROR: ERROR STATUS: 429
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422
Retrying
CATCH ERROR: ERROR STATUS: 422

@ipv6freely
Copy link

10k-collection-video@2.0.1 upload_metadata
node utils/nftport/uploadMetas

Starting upload of metadata... CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 429 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 429 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 429 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 429 Retrying CATCH ERROR: ERROR STATUS: 429 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 422 Retrying CATCH ERROR: ERROR STATUS: 422

This has absolutely nothing at all to do with the topic you replied to. It's also a closed ticket.

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

No branches or pull requests