RedditVideoMakerBot icon indicating copy to clipboard operation
RedditVideoMakerBot copied to clipboard

could not find match for ^\w+\W

Open lesterrar opened this issue 4 years ago • 19 comments

reg4

lesterrar avatar Jun 02 '22 00:06 lesterrar

Same issue here too.

zaintechsavvy avatar Jun 02 '22 00:06 zaintechsavvy

Hmm, I'm not very sure this would work but what if you download the background video manually, to go "background.py" and add the path to "assets/mp4/background.mp4" and add the video in that path. image

zaintechsavvy avatar Jun 02 '22 01:06 zaintechsavvy

I think I've solved it, I went to the cipher.py file and changed var_regex = re.compile(r"^\w+\W") to var_regex = re.compile(r"^$*\w+\W"). there's nothing wrong in doing that, right?

lesterrar avatar Jun 02 '22 01:06 lesterrar

I don't think that should be a problem. Give it a go and let me know, thanks! Most likely I think that should work.

zaintechsavvy avatar Jun 02 '22 01:06 zaintechsavvy

Can you provide me the path to "cipher.py"? I don't seem to have it.

zaintechsavvy avatar Jun 02 '22 01:06 zaintechsavvy

I think I've solved it, I went to the cipher.py file and changed var_regex = re.compile(r"^\w+\W") to var_regex = re.compile(r"^$*\w+\W"). there's nothing wrong in doing that, right?

cipher.py isn't a thing....?

jacobjake1 avatar Jun 02 '22 01:06 jacobjake1

I think I've solved it, I went to the cipher.py file and changed var_regex = re.compile(r"^\w+\W") to var_regex = re.compile(r"^$*\w+\W"). there's nothing wrong in doing that, right?

cipher.py isn't a thing....?

it's in the library. Follow the on-screen console and if you see /libs/ or something like that, copy the rest of the location

Wavey-web avatar Jun 02 '22 01:06 Wavey-web

re.compile(r"^$*\w+\W") doesn't work. Further researching, the regex: ^\$*\w+\W works

it's been reference in pytube's issue #1199 Edit: The developer needs to update the package. I am pretty sure it was fixed in the newer version

Wavey-web avatar Jun 02 '22 01:06 Wavey-web

hmm, not sure I understand too much. Where do I get to get /libs/ ?

zaintechsavvy avatar Jun 02 '22 01:06 zaintechsavvy

hmm, not sure I understand too much. Where do I get to get /libs/ ?

C:\Users\<Your desktop user>\AppData\Local\Programs\Python\Python39\Lib\site-packages\pytube

Wavey-web avatar Jun 02 '22 01:06 Wavey-web

Thanks!

zaintechsavvy avatar Jun 02 '22 01:06 zaintechsavvy

Thanks!

No problem! When you change the regex it should work.

Wavey-web avatar Jun 02 '22 01:06 Wavey-web

I'm in cipher.py right now. What line is to change the regex?

zaintechsavvy avatar Jun 02 '22 02:06 zaintechsavvy

I'm in cipher.py right now. What line is to change the regex?

Ctrl+f var_regex = re.compile

Toshung0 avatar Jun 02 '22 02:06 Toshung0

tried this now im getting an error image

re.error: nothing to repeat at position 2

reinkdesigns avatar Jun 02 '22 03:06 reinkdesigns

tried this now im getting an error

image

re.error: nothing to repeat at position 2

I think You forget a \ in re.compile(r"^$*\w+\W")

Toshung0 avatar Jun 02 '22 03:06 Toshung0

i think i fixed it, i removed the r and the "" and it worked

reinkdesigns avatar Jun 02 '22 03:06 reinkdesigns

did this, getting 'prawcore.exceptions.OAuthException: unauthorized_client error processing request (Only script apps may use password auth)'

Skogowo avatar Jun 02 '22 12:06 Skogowo

oo, got it to say 'prawcore.exceptions.OAuthException: invalid_grant error processing request' instead

Skogowo avatar Jun 02 '22 12:06 Skogowo