-
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
I need help!🙏 #1557
Comments
Hi, @bolshoytoster Hi, First, when I ran "node index.js" in Terminal, the NFT was successfully generated because of you. After that, I wanted to try a completely different design, so I deleted the image and json files in the first generated "build folder" and replaced them with different data in the "layer folder". |
@GUNZE314532 the error is: Error: ENOENT: no such file or directory, scandir '/Users/satoshishigeta/Desktop/NEW DATA/THE CAVEMANS GENERATE/hashlips_art_engine-main/layers/BODY/' Make sure the names in your |
First make sure to remove any dashes from the filenames that you have saved in your layers. I would remove any spaces also. Also make sure that you change to the hashlips directory on the command line when you run the program so in our case make sure you change directories to 'C:/Users/satoshishigeta/Desktop/NEW DATA/THE CAVEMANS GENERATE/hashlips_art_engine-main/' while running the script. Use the full entire pathname to the file, instead of the relative pathname to make things easier. ( Fix the dashes and spaces first. ) Finally, from the hashlips folder, do these steps and it should hopefully build for you:
If you are using Yarn, replace the last line above with: Good luck . |
@amritabithi did you read the error? None of that would fix it. |
@bolshoytoster Thanks your advise. ↑The "BODY" / LAYERS of folder name is a folder name of the previous artwork I tried fist one. ↑Current my folder name is below, and it is matching. |
@GUNZE314532 make sure you save |
I checked satoshishigeta@Satoshis-MBP hashlips_art_engine-main % node index.js Error: ENOENT: no such file or directory, scandir '/Users/satoshishigeta/Desktop/NEW DATA/THE CAVEMANS GENERATE/hashlips_art_engine-main/layers/BODY/' Node.js v20.0.0 |
Hi @amritabithi |
@GUNZE314532 that's weird, it's still complaining about
No, it would break hashlips. @amritabithi suggested deleting
Windows is not the only operating system. @GUNZE314532 is using a unix-like OS.
While I agree with this statement on it's own, the error is complaining about
I've been working with hashlips as a developer for over a year. Where's your fork? |
The one you want to delete is called "node_modules" that shows on the second row of file icons in your screenshot, and then run theese commands:
I recommend renaming your folder called "hashlips_art_engine-main" to "hashlips_art_engine_main" ( replace the dash with an underscore, we don't want any dashes in our filenames when using Hashlips. Again, make sure that you are changed to the hashlips directory on the command line when running the commands. ( On Windows, you can type the command "cd" to show your current working directory, make sure this shows your Hashlips directory. ) |
That's funny because I'm not aware of any linux variant that uses a "/Users/" folder, but Windows does. Linux doesn't allow unenclosed spaces in folder or filenames, but Windows does. I'm not a hashlips developer but I've been working with it for a couple of years but that doesn't matter here and nobody cares if I have or haven't. My fork is not on github, I updated how the DNA works a year or so ago to add some features for a project that was delayed, and had a lot of problems building also, and so my suggestions are meant to rule out the obvious common things people run in to or overlook, I have helped several people get your project set up and having them go through the basic steps again tends to fix it, steps they can go back to later and just paste in if things break again and they forget what they did to fix it. |
I said unix-like, which includes macOS, which does use
Linux allows spaces in file names, I don't know what you mean by 'unenclosed', if you mean surrounded by quotes, then it depends from application to application.
Or
I apologise for saying that, it was a little unprofessional.
I understand this when there isn't enough information, but there is a full error, deleting |
One thing I had to do with some other projects like the Solana Candy Machine or Metaplex I forget which, but I had to run the builds as a root user so that it could create the folders it needed during the install. I believe that I then needed to run the script as root when I used it because it would then be installed under the context of the root user and it's folders. If running as the root user does work without issues, then it would be a permissions problem. You may be able to fix that by changing permissions on the parent folders of the folders that are showing errors, but what I personally preferred to do is just run as superuser / root while working with the project. If it were a web application that users were using then running as root would be a bad idea, but in this case just running a local script like this as root is fine since you are the only one accessing it. That is at least something to rule out to narrow down the problem hopefully. ( Running things as root is generally not a recommended solution to anything, but in my case it was a choice between spending a lot more time figuring out why my setup was having issues which got in to a complicated rabbit hole witih Node... so I elected to just run as root for the sake of time instead of solving the da vinci code of what I had to fix to run as the normal user. ) |
@amritabithi again, the error is |
Hi @bolshoytoster @amritabithi , Thank you for many advise. The problem may have been solved. Sorry, it could be a very easy mistake. The cause is probably just the folder structure, where I placed each folder on my computer desktop, and the folder name I made. Please see the screen shot below. Also, I have additional questions. Is it possible to generate gif data using this art engine? satoshishigeta@Satoshis-MBP hashlips_art_engine-main % node index.js In addition, my layer variations are below. Only background data is png. Everything else is gif, and lastly, I want it to be gif data. Please check and I would appreciate it if you could help me with it. |
Not with the main project, you could try looking at this though. |
@bolshoytoster Okay, I will check it. Thank you! :) |
Hello,
I need help.
What is causing the error below?
satoshishigeta@Satoshis-MBP hashlips_art_engine-main % node index.js
(node:7271) [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:1457
handleErrorFromBinding(ctx);
^
Error: ENOENT: no such file or directory, scandir '/Users/satoshishigeta/Desktop/NEW DATA/THE CAVEMANS GENERATE/hashlips_art_engine-main/layers/BODY/'
at Object.readdirSync (node:fs:1457:3)
at getElements (/Users/satoshishigeta/Desktop/NEW DATA/THE CAVEMANS GENERATE/hashlips_art_engine-main/src/main.js:73:6)
at /Users/satoshishigeta/Desktop/NEW DATA/THE CAVEMANS GENERATE/hashlips_art_engine-main/src/main.js:92:15
at Array.map ()
at layersSetup (/Users/satoshishigeta/Desktop/NEW DATA/THE CAVEMANS GENERATE/hashlips_art_engine-main/src/main.js:90:30)
at startCreating (/Users/satoshishigeta/Desktop/NEW DATA/THE CAVEMANS GENERATE/hashlips_art_engine-main/src/main.js:356:20)
at /Users/satoshishigeta/Desktop/NEW DATA/THE CAVEMANS GENERATE/hashlips_art_engine-main/index.js:6:3
at Object. (/Users/satoshishigeta/Desktop/NEW DATA/THE CAVEMANS GENERATE/hashlips_art_engine-main/index.js:7:3)
at Module._compile (node:internal/modules/cjs/loader:1267:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1321:10) {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/Users/satoshishigeta/Desktop/NEW DATA/THE CAVEMANS GENERATE/hashlips_art_engine-main/layers/BODY/'
}
Node.js v20.0.0
The text was updated successfully, but these errors were encountered: