I’m trying to run a python script “index.py” in python shell from a .bat file on windows. I tried this first script but it will only open my script in the Python UI without running it : I tried this second script, but I have issues with os.listdir(relativefolder/) in my python script, as if the relative folder was not calculated
Tag: windows
Expected browser binary location, but unable to find binary in default location, no ‘moz:firefoxOptions.binary’ capability provided
I am trying to get back into using Python Webdriver. I have here the code This causes: If I try: I get Geckodriver.exe is sitting right there in the downloads folder. Answer This error message… …implies that the GeckoDriver was unable to locate the firefox executable while trying to initiate/spawn a new Browsing Context i.e. Firefox Browser session. Reason The
Running an executable in a child directory from parent directory windows
I have the current file structure in a folder with nothing else in it: (folder) crypt (file) run.bat I’m on Windows and I’m trying to execute a python.exe with run.bat that is in the crypt folder. How do I do this? Answer I figured it out! I just had to add a “./crypt/python.exe” argument as the thing to run.
python winsound.playsound unable to find my sound file
I’ve been trying to add some music to the game I’ve been making. I’ve been trying to use winsound because it allows you to stop a sound mid-way through playing. The problem is that winsound seems unable to locate my sound file. I’ve tried using different modules such as the playsound module, which is able to play my music just
Parse screeninfo into useable csv
I am tryin to parse a string from screeninfo to be useable in a csv file. here is my code here is the output: This results in a one cell csv because it imports the whole string. I am trying to parse it so that I can call x, y , width, height and display as individual cells. so it
Python logging failes with log-file on network drive (windows 10)
I want to log using python’s logging module to a file on a network drive. My problem is that the logging fails at some random point giving me this error: I am on a virtual machine with Windows 10 (Version 1909) and I am using Python 3.8.3 and logging 0.5.1.2. The script runs in an virtual environment on a network
Using conda build to build win32 and win64 packages in 1 go
My pure python scripts are 32 bits or 64 bits agnostic but my dependencies are not. I want to use cython to speed up some functions making the package not pure python. And I want to use them on windows with python 32 bits or 64 bits. Is there a way to build with 1 conda recipe a conda python
How to make pop-up window with force attention in Tkinter
I want to create a window which doesn’t allow the user to access other windows until you give an input. I tried win.attribute(“ontop”, True) but it allows the user to access other windows. or is there any function like a force_focus_lock() in Tkinter python 3.8 which doesn’t allow other window to get focus until you give a input or the
Pip is selecting wrong path
I’m using windows 10 and I got rid of python 3.8 and installed 3.7 as the only python version on my system. When trying to install libraries using pip I now get the error: when I checked in the console which -a pip I got: Now when I look for Python in my variable path it is alright… Anyways I
cx_Oracle connection fails with ‘DPI-1047: Cannot locate a 64-bit Oracle Client library’
Problem use connection oracle to python source, oracle now is worked to other language php (oci) Error: Code: Answer Update: try the latest version of cx_Oracle see the release announcement. This version (which was renamed python-oracledb) doesn’t need Instant Client so the installation is easier. Here are the cx_Oracle Windows installation instructions, which you probably found from the error message