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 match for ^\w+\W #124

Closed
lesterrar opened this issue Jun 2, 2022 · 19 comments
Closed

could not find match for ^\w+\W #124

lesterrar opened this issue Jun 2, 2022 · 19 comments

Comments

@lesterrar
Copy link

reg4

@zaintechsavvy
Copy link

Same issue here too.

@zaintechsavvy
Copy link

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

@lesterrar
Copy link
Author

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?

@zaintechsavvy
Copy link

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
Copy link

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

@jacobjake1
Copy link

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....?

@Wavey-web
Copy link

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
Copy link

Wavey-web commented Jun 2, 2022

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

@zaintechsavvy
Copy link

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

@Wavey-web
Copy link

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

@zaintechsavvy
Copy link

Thanks!

@Wavey-web
Copy link

Thanks!

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

@zaintechsavvy
Copy link

zaintechsavvy commented Jun 2, 2022

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

@Matt10233
Copy link

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

Ctrl+f var_regex = re.compile

@reinkdesigns
Copy link

tried this now im getting an error
image

re.error: nothing to repeat at position 2

@Matt10233
Copy link

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")

@reinkdesigns
Copy link

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

@Skogowo
Copy link

Skogowo commented Jun 2, 2022

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

@Skogowo
Copy link

Skogowo commented Jun 2, 2022

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

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

7 participants