Jump to content

I made a python script but im having problems with one of my pcs it works on all the others but will now work on this one I have a module that I have to install before the script can run, I install it and check pip to see that it is indeed installed and its is so I run the cmd which will run my .py script and I get this error: 

 

 

1155164061_pyproblem.png.84a85b3969c1b0dc8255fd0481a14a27.png

 

but I just checked with pip and it said it was installed. 

 

868792755_piplist.png.3329b73c004929e6c5f9a2b30e9110b7.png

 

 

No matter what I do I cannot get it to work, I've downloaded undetected-chromedriver.tar and tried with cmd to directly install it in the python path and it still will not work.

 

Again nothing worng with my python script it is running on 2 other pc's I just cant get it to work on this computer for some reason its driving me crazy 

 

any help would do wonders thanks.

 

Link to comment
https://linustechtips.com/topic/1489735-python-script-problem-help/
Share on other sites

Link to post
Share on other sites

Thanks for your reply, Yes I have closed the cmd window, it was originally working on this computer but now all of a sudden it just stopped while my other 2 windows pcs work fine no problem its got me dumb founded! windows even say that the stealth chrome module is installed but when you run the .py script its like nope, so windows is lying, or python is lying anyway ill rewrite it to use another browser.

 

 

 

Link to post
Share on other sites

Check to see that the version of python you're installing modules into is the same version that Windows is using to run the program. I'm on Mac but a few times in the past when I've messed up and got different versions of python installed and mixed together while doing projects.

Link to post
Share on other sites

Since version 3.10 they have remove the need to specify v2 for importing the module

https://github.com/ultrafunkamsterdam/undetected-chromedriver#310

Quote

3.1.0

this version might break your code, test before update!

  • added new anti-detection logic!

  • v2 has become the main module, so no need for references to v2 anymore. this mean you can now simply use:

    import undetected_chromedriver as uc
    driver = uc.Chrome()
    driver.get('https://nowsecure.nl')

    for backwards compatibility, v2 is not removed, but aliassed to the main module.

Try removing .v2 from your import. Otherwise downgrade to version prior.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×