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

Could not find files for the given pattern(s) #182

Closed
AzothCrow opened this issue Sep 21, 2020 · 8 comments
Closed

Could not find files for the given pattern(s) #182

AzothCrow opened this issue Sep 21, 2020 · 8 comments
Assignees

Comments

@AzothCrow
Copy link

I'm getting the following when I run the snatcher;

nvidia-snatcher@1.4.0 start C:\nvidia-snatcher
npm run build && node build/index.js

nvidia-snatcher@1.4.0 build C:\nvidia-snatcher
rimraf ./build && tsc

INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
[7:07:38 PM] info :: ✖ [nvidia] still out of stock: nvidia founders edition

This is my .env setup;

DESKTOP_NOTIFICATIONS="true"
EMAIL_USERNAME=REDACTED
EMAIL_PASSWORD=REDACTED
HEADLESS="true"
IN_STOCK_WAIT_TIME="10"
LOG_LEVEL="info"
OPEN_BROWSER="true"
PAGE_TIMEOUT="30000"
PHONE_NUMBER=REDACTED
PHONE_CARRIER="google"
PLAY_SOUND="notification.mp3"
PAGE_SLEEP_MIN="5000"
PAGE_SLEEP_MAX="10000"
SHOW_ONLY_SERIES="3080"
STORES="bestbuy,bandh,nvidia,newegg,evga,asus"
SCREENSHOT="true"
USER_AGENT=REDACTED

I'm like 90% sure I installed everything correctly as the instructions are pretty clear. Any insight?

@Indomitous
Copy link

Make sure to rename the .env-example to .env

I was getting the same error and realized I forgot to do that. After changing it, it gave the INFO:"" error but then began working like it should.

@AzothCrow
Copy link
Author

image

@vp-regular
Copy link
Contributor

vp-regular commented Sep 22, 2020

You must have a command line audio player supported by the library that's being used to play the sound. Others have reported success with mplayer and mpg123. You can place it in the same folder as the program.

Duplicate of #116

If you don't want to use the notification sounds at all, you can safely ignore the warnings when you start the program.

@AzothCrow
Copy link
Author

Hm, even without the sound its still not providing updates for any of the websites other than Nvidia itself.

@vp-regular
Copy link
Contributor

This is an issue with your .env. If the bot thinks it's missing, it'll default to nvidia only. Check the extensions of your files; make sure .env isn't really .env.txt or .env.env.

@StruttinSoul
Copy link

The issue is that your file named '.env' has a .txt extension to it (you can tell based off of the file type). Click on View at the top of the explorer window and ensure you have 'File Name Extensions' checked off under the show/hide section - once that's done you should see the .txt extension that's appended to the .env file. Simply delete the .txt off the end and that should do it.

@jef
Copy link
Owner

jef commented Sep 22, 2020

The issue is that your file named '.env' has a .txt extension

We really need to write up something in the wiki.

Thanks for the help y'all. Going to close.

@Usmaniatech
Copy link

The issue is that your file named '.env' has a .txt extension to it (you can tell based off of the file type). Click on View at the top of the explorer window and ensure you have 'File Name Extensions' checked off under the show/hide section - once that's done you should see the .txt extension that's appended to the .env file. Simply delete the .txt off the end and that should do it.

it doesn't work on windows

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

6 participants