Loop download on Python 3 - python-3.x

This program downloads chrome driver and gecko driver in loop... I have selenium==4.0.0, wget==3.2 installed
Can you help me to fix it please? I'm new to python and I don't really understand where this error comes from. Thank you!
https://github.com/mindflix/Rousseau/blob/main/main.py
Someone who changes what's wrong with this little program

Related

Find an equivalent of Imview library for Python 3.8

I am trying to use those codes to process satellite images (https://github.com/uw-cryo/skysat_stereo)
The issue i have is that they are using a library which called Imview. You can find the github just here : https://github.com/dshean/imview. This library was made for Python 2.7 and i am using Python 3.8. Does someone knows an equivalent of Imview for python 3.8 ? I will try to replace it but i could not find anything yet based on my knowledge.
If I find something i will let it know in the comments.
Thanks for the help.

How to control windows in windows 10 with python3

I am looking for a good way to get window information to find and close them programmatically.
i have been using pywinauto and pyautogui. brining all of my knowledge from autoit.
Using python3 autoit has not been working.
From Python3 we hope to accomplish: Here is the AutoIT command to translate to python3
If WinExists("WindowName") then
WinClose("WindowName")
Thank you for all your help everyone, I seem to have found a good solution. Hopefully this will help someone else as well!
This connects the application to Pywinauto:
import pywinauto as pwa
app = pwa.application.Application(backend="uia")
app.connect(path='AppName.exe')
Here we are creating a dialog for the app window and specifying a name reference.
dlg = app.window(title_re=".*AppName.*")
In this area, we are calling the window, and wait for it to be ready. Then we are going to close the window.
dlg.child_window(title="WindowName", control_type="Window").wait('ready', timeout=10):
dlg.child_window(title="WindowName", control_type="Window").close()
print("Window is closed")

mkl_blas_dgemm_alloc not found in mkl_intel_thread

I developed a a tool in python 3.5 some time ago which currently only uses differential evolution from scipy to do its task. For some reasons I had to change settings on my machine and switch to use python in a virtual environment.
My specs now:
win 10 64 bit
used pip 9.0.1
numpy 1.12.1+mkl
scipy 0.19.0
python 3.6.1
I have a different env using python 2.7 flying around somewhere else.
Now my problem....everytime the differential evolution function gets its first set of data it crashes after returning the differential_evolution step value.
The differential_evolution call can be found under ./libraries/methods/differential_evoluation.py line 76
The pop-up Error is "Entry point 'mkl_blas_dgemm_alloc wasn't found in 'mkl_intel_thread.dll'." And the printed error is "Intel MKL FATAL ERROR: Cannot load mkl_intel_thread.dll." Please notice that my system language is german therfore the pop-up message was translated by me.
I don't know whether this is relevant but my directory structure is:
>some_place/location1/goal.py
>some_place/location2/env/
I didn't work with virtualenv before and in addition to this i used python 3.5. I'd appreciate any help or instructions on how to add more information to this case to help clarify my problem.
Yours sincerely
OK I'm back with more information. Maybe someone else will stumble uppon it. To be clear: I do not know the fix or reason. I just tried a bunch of stuff.
Using
python 3.5.3,numpy 1.11.1+mkl and scipy-0.18.0 or scipy-0.19.0
made the error disappear. I couldn't try numpy 1.11.1 or 1.11.2 for python 3.6 because this kind soul sadly doesn't offer those versions anymore. I found the 1.11.1 version for python 3.5 somewhere on my disk.
From my testing i can tell that it breaks once i use numpy 1.11.3 or higher. 1.11.1 works fine. Therefore I assume that some changes happened either in numpy between 1.11.1 and 1.11.3 which break it OR in how this kind soul creates/builds his wheels. So I'm going to use python 3.5 for now as i do not have numpy 1.11.1+mkl for python 3.6.
Yours sincerely

PyOpenGL: Why does "glutCreateWindow" suddenly make my application crash?

Can someone please explain to me why the following code does not work anymore? And maybe help me get it to work again?
(Python 3.5.2 32bit)
from OpenGL.GLUT import *
glutInit()
glutInitWindowSize(600, 400)
glutCreateWindow(b'window')
I was using it like this on windows for a long time without any problems. But now it crashes:
screenshot
Appreciate any help. Thank you!

TinyTag import error python 3.3

I have been trying to import tinytag into python to be able to read mp3 tags but I keep receiving the same error. This is the code I am running
from tinytag import TinyTag
tag = TinyTag.get('/some/music.mp3)
print(tag.album)
and the error I recieve from this is
ImportError: No module named 'tinytag'
If anyone could give me any information on how to fix this would be greatly appreciated or can suggest another reader to use that is compatible with python 3.
Like you, I'm new to Python and I struggled with this but I worked it out eventually. I'm sure there is better way, but this worked (on windows, with my examples)
I installed a python module called easy_install (bundled with
setuptools). you can Google this. In the directory \Python26\Scripts you should see an exe file called easy_install if this has worked
Then I downloaded TinyTag to my pc eg
\downloads\tinytag-0.6.1.tar.gz
Then in note pad I wrote a small text file called myinstall.bat with
the contents
easy_install C:/downloads/tinytag-0.6.1.tar.gz
pause
then saved it into \Python26\Scripts and ran it (the pause keeps the
window open so you can see it worked)
Subsequently I started using some software called JetBrains to code with (it's commercial but there is a free edition) and that has an install tool built in which is even easier) I hope this helps

Resources