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

Error: ENOENT: no such file or directory, scandir 'C:\hashlips_art_engine-main/layers/Eyeball/' #370

Closed
arlene91 opened this issue Dec 12, 2021 · 55 comments

Comments

@arlene91
Copy link

Hi
I have been having this issue without being able to see how to resolve it.
I'm not technical at all so this has been very helpful.
But what I did,is changing the folders of my layers in my file explorer to match the ones I created in the LayersConfiguration in Visual Studio Code. So I don't have any folder called EyeBall and can't find why I got this error message.

Can anyone help, please ?

Error message:

Error: ENOENT: no such file or directory, scandir 'C:\hashlips_art_engine-main/layers/Eyeball/'
at Object.readdirSync (node:fs:1390:3)
at getElements (C:\hashlips_art_engine-main\src\main.js:73:6)
at C:\hashlips_art_engine-main\src\main.js:89:15
at Array.map ()
at layersSetup (C:\hashlips_art_engine-main\src\main.js:87:30)
at startCreating (C:\hashlips_art_engine-main\src\main.js:349:20)
at C:\hashlips_art_engine-main\index.js:6:3
at Object. (C:\hashlips_art_engine-main\index.js:7:3)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) {
errno: -4058,
syscall: 'scandir',
code: 'ENOENT',
path: 'C:\hashlips_art_engine-main/layers/Eyeball/'

@Fergoshi
Copy link

It cannot find your eyeball layer , you must have it misspelled or in the wrong order.

@Zzzeps
Copy link

Zzzeps commented Dec 13, 2021

Getting the same Error

I don't have an eyeball layer either. I've updated all the layer names to match the image folders and it's still trying to find an eyeball layer which doesn't exist

@Zzzeps
Copy link

Zzzeps commented Dec 13, 2021

Super easy fix...Click on the config.js file and click save. Worked for me 👍

@arlene91
Copy link
Author

Thank you all.
I finally got it work with no such error anymore. I don't know exactly how the error disappeared.
I think it's because the content of each layer's folder didn't have the appropriate format, such as .png.
Now I have other issues, like it doesn't take all layers into account and doesn't name the files as I asked it to name it.
Well need to test by changing the parameters to see what works !!!!

@arlene91
Copy link
Author

I got it alright now :-)

@charliesnft
Copy link

Im having the same issue. I've created NFTs collection before but I been stuck on this for a couple of days.

errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/Users/charle/Downloads/hashlips_art_engine-1.1.0_update/layers/Background/'
}

What do I need to do? I somewhat understand that its missing the file but all I did was following the tutorial and deleted the default files and added my own. I have a backgrounds file but It can't find the original background. im using 1.10 art engine and im using node js 17 version.

@strokEA
Copy link

strokEA commented Jan 1, 2022

hi me when I do npm run build (I have the generative-art-node-main folder from HashLips) it generated the nft's for me but after I got an error message here it is

3

@arlene91
Copy link
Author

arlene91 commented Jan 3, 2022

Im having the same issue. I've created NFTs collection before but I been stuck on this for a couple of days.

errno: -2, syscall: 'scandir', code: 'ENOENT', path: '/Users/charle/Downloads/hashlips_art_engine-1.1.0_update/layers/Background/' }

What do I need to do? I somewhat understand that its missing the file but all I did was following the tutorial and deleted the default files and added my own. I have a backgrounds file but It can't find the original background. im using 1.10 art engine and im using node js 17 version.

@arlene91 arlene91 closed this as completed Jan 3, 2022
@arlene91 arlene91 reopened this Jan 3, 2022
@arlene91
Copy link
Author

arlene91 commented Jan 3, 2022

Try to check all the pictures you have in you Layers folder are on png format. If any is not then you have this error.

@arlene91 arlene91 closed this as completed Jan 3, 2022
@mj-afk
Copy link

mj-afk commented Jan 5, 2022

Hello i have this problem,
errno: 2,
code: 'ENOENT',
path: 'C:\Users\alfon\OneDrive - Università degli Studi del Molise\Desktop\hashlips_art_engine-main/layers/Background/Black#1.png',
syscall: 'fopen'
}
what is mean? All the directory have the exact name in the code and all the images are in png.

@arlene91
Copy link
Author

arlene91 commented Jan 5, 2022

I don't know Im new to this too.
Please create a new thread to ask around

@Fergoshi
Copy link

Fergoshi commented Jan 7, 2022 via email

@Sem-mem
Copy link

Sem-mem commented Feb 6, 2022

hi! have you solved this problem ? I get the same thing (( If you understand how to fix it, please write

@bolshoytoster
Copy link

@Sem-mem the names of your folders have to match the layer names in src/config.js (case sensitive as well).

@Sem-mem
Copy link

Sem-mem commented Feb 6, 2022

@Sem-mem the names of your folders have to match the layer names in src/config.js (case sensitive as well).

Of course, everything matches and the pictures are exactly png, but still. Now I'll check again, but it seems that's not the point

@mrpkay01
Copy link

save your file and all will work good..i wasted my 3 days for this error

@nftgreat
Copy link

I have that problem I’ve done everything I read here but still same error

@bolshoytoster
Copy link

@nftgreat can you paste the full error please.

@nftgreat
Copy link

hashlips_art_engine@1.1.1 generate

node index.js

(node:7336) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: t

rue }) instead

(Use node --trace-deprecation ... to show where the warning was created)

node:fs:1392

handleErrorFromBinding(ctx);

^

Error: ENOENT: no such file or directory, scandir 'C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update/layers/Background/'

at Object.readdirSync (node:fs:1392:3)

at getElements (C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\src\main.js:73:6)

at C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\src\main.js:89:15

at Array.map (<anonymous>)

at layersSetup (C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\src\main.js:87:30)

at startCreating (C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\src\main.js:351:20)

at C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\index.js:6:3

at Object.<anonymous> (C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\index.js:7:3)

at Module._compile (node:internal/modules/cjs/loader:1103:14)

at Object.Module._extensions..js (node:internal/modules/cjs/loader:1155:10) {

errno: -4058,

syscall: 'scandir',

code: 'ENOENT',

path: 'C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update/layers/Background/'

}

PS C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update>

@nftgreat
Copy link

@nftgreat can you paste the full error please.

Posted

@bolshoytoster
Copy link

@nftgreat can you also paste the layerConfigurations bit of your src/config.js, and make sure it's saved as well.

@nftgreat
Copy link

@nftgreat can you also paste the layerConfigurations bit of your src/config.js, and make sure it's saved as well.

// If you have selected Solana then the collection starts from 0 automatically

const layerConfigurations = [

{

growEditionSizeTo: 5,

layersOrder: [

  { name: "Background" },

  { name: "sign" },

  { name: "numbers" },

],

},

];

const shuffleLayerConfigurations = false;

const debugLogs = false;

const format = {

width: 1500,

height: 1500,

smoothing: false,

};

@nftgreat
Copy link

All layers folders are spelled exactly how you see there

@bolshoytoster
Copy link

@nftgreat can you run the command ls C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update/layers/ and paste the output please.

@nftgreat
Copy link

PS C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update> C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update/layers/

C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update/layers/ : The term 'C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update/layers/' is not

recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the

path is correct and try again.

At line:1 char:1

  • C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update/layers/

  • 
      + CategoryInfo          : ObjectNotFound: (C:\Users\ckali\..._update/layers/:String) [], CommandNotFoundException
    
      + FullyQualifiedErrorId : CommandNotFoundException
    

@nftgreat
Copy link

@nftgreat can you run the command ls C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update/layers/ and paste the output please.

Posted

@bolshoytoster
Copy link

@nftgreat with the ls at the start of the command.

@nftgreat
Copy link

@nftgreat can you run the command ls C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update/layers/ and paste the output please.

PS C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update> ls C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update/layers/

Directory: C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\layers

Mode LastWriteTime Length Name


d----- 2/28/2022 8:35 AM Backround

d----- 2/28/2022 8:35 AM numbers

d----- 2/28/2022 8:35 AM sign

-a---- 2/28/2022 8:28 AM 6148 .DS_Store

@bolshoytoster
Copy link

@nftgreat you've spelled Backround wrong in the folder name.

@nftgreat
Copy link

Ok I changed it spelled correctly now but still won’t work to generate

@bolshoytoster
Copy link

@nftgreat does it give an error?

@nftgreat
Copy link

Yes

@nftgreat does it give an error?

Yes

@nftgreat
Copy link

It says out of memory

@nftgreat
Copy link

@nftgreat does it give an error?

PS C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update> npm run generate

hashlips_art_engine@1.1.1 generate

node index.js

(node:3168) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead

(Use node --trace-deprecation ... to show where the warning was created)

C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\node_modules\canvas\lib\image.js:91

SetSource.call(img, src);

        ^

Error: out of memory

at setSource (C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_

update\node_modules\canvas\lib\image.js:91:13)

at Image.set (C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\node_modules\canvas\lib\image.js:62:9)

at C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\node_modules\canvas\index.js:34:15

at new Promise (<anonymous>)

at loadImage (C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\node_modules\canvas\index.js:23:10)   

at C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\src\main.js:183:25

at new Promise (<anonymous>)

at loadLayerImg (C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\src\main.js:182:10)

at C:\Users\ckali\Downloads\hashlips_art_engine-1.1.1_update\src\main.js:363:31

at Array.forEach (<anonymous>)

@bolshoytoster
Copy link

@nftgreat you could try rebooting, and running it with just powershell (Visual Studio can use a lot of memory sometimes).

@nftgreat
Copy link

They make it look so easy on the videos it’s complicated lmao

@tryshka
Copy link

tryshka commented Mar 6, 2022

image
help solve this problem

errno: 2,
code: 'ENOENT',
path: 'C:\Users\Пользователь\Documents\hashlips_art_engine-main/layers/1_Background/error#5.png',
syscall: 'fopen'

@mya1266
Copy link

mya1266 commented May 7, 2022

could you solve the problem because i have exacly same error and been tryna fix but nothing works out((

@bolshoytoster
Copy link

@mya1266 can you paste your error here please.

@Tdawg007
Copy link

i am getting the same thing-

errno -4058
syscall scandir
code enoent
path c:\bsks2\minter-dapp\backend/layers/girl base/

@Tdawg007
Copy link

please help me

@bolshoytoster
Copy link

@Tdawg007 it can't find backend/layers/girl base/, make sure your folder names in backend/layers match the names in your layersOrders.

If that doesn't work, could you try opening an issue in the place you actually got the code from.

@ermiasabera
Copy link

Super easy fix...Click on the config.js file and click save. Worked for me 👍

Very Nice!

@ahmmaadd17
Copy link

mac@MACs-MacBook-Air hashlips_art_engine-1.1.2_patch_v6 2 % npm run generate

hashlips_art_engine@1.1.1 generate
node index.js

(node:70620) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use node --trace-deprecation ... to show where the warning was created)
node:fs:1451
handleErrorFromBinding(ctx);
^

Error: ENOENT: no such file or directory, scandir '/Users/mac/Downloads/hashlips_art_engine-1.1.2_patch_v6 2/layers/backgorund/'
at Object.readdirSync (node:fs:1451:3)
at getElements (/Users/mac/Downloads/hashlips_art_engine-1.1.2_patch_v6 2/src/main.js:73:6)
at /Users/mac/Downloads/hashlips_art_engine-1.1.2_patch_v6 2/src/main.js:92:15
at Array.map ()
at layersSetup (/Users/mac/Downloads/hashlips_art_engine-1.1.2_patch_v6 2/src/main.js:90:30)
at startCreating (/Users/mac/Downloads/hashlips_art_engine-1.1.2_patch_v6 2/src/main.js:356:20)
at /Users/mac/Downloads/hashlips_art_engine-1.1.2_patch_v6 2/index.js:6:3
at Object. (/Users/mac/Downloads/hashlips_art_engine-1.1.2_patch_v6 2/index.js:7:3)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/Users/mac/Downloads/hashlips_art_engine-1.1.2_patch_v6 2/layers/backgorund/'
}

Node.js v18.12.1
need help..........

@bolshoytoster
Copy link

@ahmmaadd17 make sure you spell your layer names in your layersOrders correctly. You probably misspelled background as backgorund.

@ahmmaadd17
Copy link

thanks

@ahmmaadd17
Copy link

can you help me how i can upload nfts on opensea without wasting time

@bolshoytoster
Copy link

@ahmmaadd17 I have no idea, but you check out this video I found and skip to the uploading part, or find some other resource on the internet.

@Mkirill123
Copy link

Mkirill123 commented May 14, 2023

PS C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6> npm run build

hashlips_art_engine@1.1.1 build
node index.js

(node:1688) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use node --trace-deprecation ... to show where the warning was created)
C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\src\main.js:77
throw new Error(layer name can not contain dashes, please fix: ${i});
^

Error: layer name can not contain dashes, please fix: Holo-kitty#3.png
at C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\src\main.js:77:15
at Array.map ()
at getElements (C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\src\main.js:75:6)
at C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\src\main.js:92:15
at Array.map ()
at new Promise ()
at loadLayerImg (C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\src\main.js:184:12)
at C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\src\main.js:368:31
at Array.forEach () {
errno: 2,
code: 'ENOENT',
path: 'C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6/layers/Background/light_purple#8.png',
syscall: 'fopen'
}

Node.js v18.16.0

@Mkirill123
Copy link

hello everyone, please help with the code, all the pictures in png and layers are written correctly, I'm not a programmer, so you can use simple words

@bolshoytoster
Copy link

@Mkirill123 the large amount of text in the error may be daunting, here's the important part:

Error: layer name can not contain dashes, please fix: Holo-kitty#3.png

@Mkirill123
Copy link

PS C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6> node index.js
(node:18772) [DEP0147] DeprecationWarning: In future versions of Node.js, fs.rmdir(path, { recursive: true }) will be removed. Use fs.rm(path, { recursive: true }) instead
(Use node --trace-deprecation ... to show where the warning was created)
C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\node_modules\canvas\lib\image.js:94
SetSource.call(img, src)
^

Error: ENOENT, No such file or directory 'C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6/layers/Background/blue#8.png'
at setSource (C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\node_modules\canvas\lib\image.js:94:13)
at Image.set (C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\node_modules\canvas\lib\image.js:65:9)
at C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\node_modules\canvas\index.js:34:15
at new Promise ()
at loadImage (C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\node_modules\canvas\index.js:23:10)
at C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\src\main.js:185:27
at new Promise ()
at loadLayerImg (C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\src\main.js:184:12)
at C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6\src\main.js:368:31
at Array.forEach () {
errno: 2,
code: 'ENOENT',
path: 'C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6/layers/Background/blue#8.png',
syscall: 'fopen'

@Mkirill123
Copy link

@bolshoytoster i`ve tried

@bolshoytoster
Copy link

@Mkirill123 the error is different now:

Error: ENOENT, No such file or directory 'C:\Users\Кирюша\Desktop\hashlips_art_engine-1.1.2_patch_v6/layers/Background/blue#8.png'

This is because one of out dependencies doesn't support non-ascii characters in paths. Try moving hashlips to somewhere like C:/Users/Public/.

@Mkirill123
Copy link

Yes!!! It's working, thank you very much

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