-
Notifications
You must be signed in to change notification settings - Fork 4.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
Fix for Apple M1 Chips (makes your Hashlips Art Engine working) #812
Comments
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' |
@9dieg I think you may need to make sure your Homebrew is updated for your M1 |
@azf20 didn't work..:s |
it worked for me thaNK YOU |
YOU MIGHT HAVE SOMETHING OR ANOTHER VERSION OF NODE ISNTALLED |
I am only able to generate 2 images even though it's set to generate 10 |
@CobraKaiX does it give an error? |
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 |
check on the OUTput next to terminal it sometimes gives you some feedback there |
@funkymonkey5150 can you paste the error you get please. |
same issue on my end only able to generate max 5 images and sometimes less receive this error any ideas? |
@saxonheller try using my fork. |
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. |
Sounds good, I will test it, too. Thank you |
It seems good for me, thanks @deemount |
It worked! Thank you very much. |
npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found have this problem help please.. |
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. |
@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 :) |
@nfthorsy can you paste the full error please. |
Had not the time, but would do it tomorrow and give you the information then |
Reply from @ipv6freely:
I can confirm this one on my M1 machine. I had v16 previously and installed the v17 package to test it out. steps:
notes:
|
@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). |
DUDE! Worked! Thanks a million-I was banging my head on my desk getting error after error. Thank you! |
No problem! |
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. |
@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. |
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 |
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. |
Sorry thread nazi |
An actual human helped me already |
Great. Now we can stop cluttering this thread with unrelated nonsense. |
***@***.*** generate
/Users/cobrakaix/Downloads/hashlips_art_engine-1.1.2_patch_v6
node index.js
(node:10865) UnhandledPromiseRejectionWarning: TypeError: Cannot read
property 'edition' of undefined
at
/Users/cobrakaix/Downloads/hashlips_art_engine-1.1.2_patch_v6/src/main.js:313:65
at Array.find (<anonymous>)
at saveMetaDataSingleFile
(/Users/cobrakaix/Downloads/hashlips_art_engine-1.1.2_patch_v6/src/main.js:313:31)
at
/Users/cobrakaix/Downloads/hashlips_art_engine-1.1.2_patch_v6/src/main.js:408:11
at async startCreating
(/Users/cobrakaix/Downloads/hashlips_art_engine-1.1.2_patch_v6/src/main.js:373:9)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:10865) UnhandledPromiseRejectionWarning: Unhandled promise rejection.
This error originated either by throwing inside of an async function
without a catch block, or by rejecting a promise which was not handled with
.catch(). To terminate the node process on unhandled promise rejection, use
the CLI flag `--unhandled-rejections=strict` (see
https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection
id: 1)
(node:10865) [DEP0018] DeprecationWarning: Unhandled promise rejections are
deprecated. In the future, promise rejections that are not handled will
terminate the Node.js process with a non-zero exit code.
This error is displayed every time I try to generate my images.
…On Tue, 22 Mar 2022 at 13:40, bolshoytoster ***@***.***> wrote:
@CobraKaiX <https://github.com/CobraKaiX> does it give an error?
—
Reply to this email directly, view it on GitHub
<#812 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AX5PI5YHEP7FHQ4IV2IQBQTVBIV3JANCNFSM5PMRVF4Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@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. |
@ipv6freely next time I talk to HashLips I'll ask for permissions to close/lock issues. |
npm ERR! Failed at the hashlips_art_engine@1.1.1 generate script. |
npm ERR! Failed at the hashlips_art_engine@1.1.1 generate script. |
@funkymonkey5150 is that the whole error? If so, could you paste the output of running |
what do i have to do
node:fs:1450 Error: ENOENT: no such file or directory, scandir '/Users/elsygarcia/Downloads/create-10k-nft-collection-2.0.0/layers/Background/' Node.js v18.7.0 |
@Angelje47 you need to save |
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 : Could anyone help me to solve this issue please ? Thank you very much in advance |
@WissemEd did you run You're also not using node v14.17.3 |
@bolshoytoster Do you think that I should use v14.17.3 only ? I am currently trying the most recent version |
@WissemEd the original message in this issue says so. |
@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 |
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. |
Has anybody used disguise fork at call @CobraKaiX Let me know if anybody has it working. I keep on getting an error message |
@funkymonkey5150 can you paste the errors here please? |
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. > >
|
What error(s)? If it's definetely because you're on an arm mac you should look at the new issue. |
Why is this still getting replies? This has been closed for 7+ months. |
Starting upload of metadata... |
This has absolutely nothing at all to do with the topic you replied to. It's also a closed ticket. |
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
arch -arm64 brew install pkg-config cairo pango jpeg giflib librsvg
a) npm install
b) node index.js
Et Voila. Enjoy generating ...
The text was updated successfully, but these errors were encountered: