38 questions
0
votes
0
answers
61
views
How to force Ansible to use full path for executables Implicitly executed by modules like package or systemd
I'm working in an environment where the system's sudoers configuration mandates that commands like dnf, apt, and systemctl be executed with their full paths (e.g., /usr/bin/dnf, /usr/bin/systemctl). ...
0
votes
1
answer
74
views
Problem occurred while web crawling instagram
def insta_searching(word):
url = "https://www.instagram.com/explore/tags/" + str(word)
return url
def select_first(driver):
first = driver.find_element_by_css_selector("div....
-1
votes
1
answer
197
views
What should I fix in my code to allow me to log-in using python and selenium?
I'm trying to login via Python and Selenium, but I can't figure out the issue with the following line: driver = webdriver.Chrome(executable_path= r'C:\Program Files (x86)', options=options)
I keep ...
2
votes
3
answers
4k
views
Undetected chromedriver not working with selenium 4.10
Just upgraded to selenium 4.10 and got:
TypeError: init() got an unexpected keyword argument 'executable_path'
I read that executable path not needed in latest version and the fix is:
from selenium....
0
votes
1
answer
483
views
Netlify cloud deploy - failure to get chromium.executablePath for browser launch
I made a serverless functions at Netlify. It's a simple browser automation function with Puppeteer:
const chromium = require("@sparticuz/chromium");
const puppeteer = require('puppeteer-core'...
3
votes
2
answers
6k
views
How to find which chrome executable is getting used by Puppeteer?
// executablePath is specified
const browser = await puppeteer.launch({
executablePath: '/path/to/chrome'
});
// // executablePath is not specified
const browser = await puppeteer.launch();
// This ...
1
vote
1
answer
815
views
PHP executable path in Adobe Brackets
I am running Adobe Brackets on a 2017 iMac (Retina - 27 inch) with macOS Monterey 12.2
I want to point the path to PHP inside of MAMP. What is the correct json format and code to do this in Bracket's ...
1
vote
0
answers
1k
views
No output from Julia via VScode
I've just upgraded from Julia-1.5 to Julia 1.6 and also installed the latest version of VScode on my Mac.
Till now I made only one setting:
"julia.executablePath": "/home/Applications/...
0
votes
0
answers
336
views
Why do I receive "File corrupted!" error after changing library ID from @rpath to @executable_path?
I use Qt 5.12 with XCode 10 for building my desktop application. I've received a .dylib from a 3rd party in order to integrate it into my application. I've modified my .pro file to add the library in ...
2
votes
0
answers
802
views
Pyusb and Libusb giving NoBackendError on MacOS
I'm on MacOS Big Sur trying to run rfcat. I am running anaconda as well and I have set up an environment with Python2.7 when I originally got errors with Python3.x. I have downloaded the pyusb, ...
0
votes
3
answers
2k
views
My selenium script (in Python) for chrome runs but does nothing
vscode says it run but it does nothing. My pip is up to date and i installed selenium with the command prompt. i have a valid path (i think) for chromedriver. Here's my code:
from selenium import ...
0
votes
1
answer
45
views
Can my program edit/update the users .profile/.bashrc/.cshrc files to set program executable as environment variable
I have an application and it is docker containerized, which contains the program executable and other stuff.
Now how can I make the executable name as a linux environment variable(permanently and not ...
1
vote
0
answers
155
views
Chromedriver executable path problems even though executable path is in PATH [duplicate]
I'm working on a website automation program for 1 month, all went well and worked perfectly fine until I had to reset my laptop to factory settings due to a black screen that kept on going after ...
-3
votes
1
answer
97
views
how to set executable path of chrome driver as path of the os (i want to make executable path as generic of driver-Selenium with python)
how to set executable path of chrome driver as path of the os (i want to make executable path as generic for all the system of driver-Selenium with python)
0
votes
1
answer
2k
views
How to find executable path of a windows service
I am trying to find the executable path of a running service , and i have looked upon ServiceBase and there is no property indicating the path. Nor does ServiceController offer any kind of help.
...
0
votes
1
answer
371
views
latex-preview-pane-update couldn't find "pdflatex" directory when emacs loading hello.tex
I run my hello.tex file. But it always has the warning:
Error running timer ‘latex-preview-pane-update’: (file-error
"Searching for program" "No such file or directory" "pdflatex")
I've checked ....
0
votes
0
answers
42
views
.py which uses input files to .exe
I have a python script in which I am using the input files which are either pickle files or excel files. the output files are then saved in the drives. I need to convert the py into exe files. Being a ...
0
votes
1
answer
274
views
vb.net runs gpg.exe step of job runs ok from PC but not from SQL Server Agent schedule
Everything worked great from my Visual Studio on my PC running this from the Start button. When I build the executable and copied the executable to the production box and scheduled the job via SQL ...
1
vote
1
answer
513
views
UWA C# Get executable path of an XML file
I am developing an Universal Windows App on C# in Visual Studio 2017. I am working with xml files for saving data. The problem is that when I try to run the builded app, using the executable file, it ...
1
vote
1
answer
3k
views
VSCode cannot find php executable
I orginally did not have php installed when I got vs code. Therefore I installed the PHP IntelliSense extension and installed PHP. VS Code could still not locate PHP so I realized I had to change ...
131
votes
13
answers
88k
views
How to resolve "dyld: Library not loaded: @executable_path.." error
I was trying to check the AWS-CLI version on my MAC OS X. And the below error hit back:
dyld: Library not loaded: @executable_path/../.Python
Referenced from: /usr/local/aws/bin/python
Reason: ...
0
votes
1
answer
489
views
set executable PATH in Jupyter Notebook on google cloud cluster Python3
I opened jupyter notebook on my google cloud cluster with these steps: https://cloud.google.com/dataproc/docs/tutorials/jupyter-notebook
Now I get an error on this piece of code:
import selenium
...
1
vote
0
answers
62
views
Visual Studio Code can't validate PHP, I added it to the path, but it's still alerting me
That's the alert it's showing.
As you can see, I already set the path (I also tried another .exe, from WAMP), but it is still alerting that PHP executable wasn't found.
I have no idea why, but it ...
0
votes
1
answer
346
views
fopen with a .app file [duplicate]
I am working on a Qt project which maps vowels onto a chart that have the *.sym format.
My goal is to load an initial IPA chart like this.
I have the *.sym files and I can load them after my ...
1
vote
1
answer
1k
views
Need to associate files with executable in batch file
I need to write a batch script to associate .py files with pythonw.exe. So I need to do two things: 1) find the path of the pythonw.exe, and then associate .py files, or specifically afile.py with ...
3
votes
1
answer
8k
views
Where to put batch file in Windows so that it is always accessible, without changing the PATH?
I have a NSIS installer for a program and change PATH settings to make the program always accessible from the command-line. Manipulating the PATH has however some adverse effect, such as other ...
1
vote
1
answer
743
views
Application.Executablepath in C# has mixed separator characters
I'm using someone else's code (licensed) on two different machines. On one machine, the Application.ExecutablePath returns the result the programmer must have expected, on the other it does not. Both ...
0
votes
2
answers
1k
views
NULL ExecutablePath in vbScript process object
Salutations,
I have the following VBScript:
Option Explicit
Dim objWMIService, objProcess, colProcess
Dim strComputer, strList
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{...
3
votes
0
answers
1k
views
Attempting to get executable path of process returns null
I have a piece of C# code that goes through all the running processes, finds a specific one, and gets its ExecutablePath. Problem is that, although it manages to find the wanted process, attempting to ...
17
votes
1
answer
47k
views
How to get the full path of the current executable file in VB?
I have created one windows application using VB. Whenever I executing the exe, I want to get the current directory of the exe file programatically.
For example,
Now, I am executing the exe file in d:...
0
votes
1
answer
453
views
How to test for a valid application with NSWorkspace launchapplication in Cocoa/Xcode/OBJ-C
I have a setting for external editor that end-user can change in settings. As I want to make my software smart, I want to set button that starts this external software to disabled state, if software ...
9
votes
3
answers
11k
views
What is the right way of getting my WinForms application's name?
I could do this
return Assembly.GetEntryAssembly().GetName().Name;
or
return Path.GetFileNameWithoutExtension(Application.ExecutablePath);
Would both give the desired application name always? If so ...
4
votes
4
answers
2k
views
How to pass env variables to GNOME
I want to replace some utilities(like telnet) with transparent wrappers(with loggers).
At first I used aliases, that worked nicely at the command line but gnome doesn't understand shell aliases so ...
2
votes
1
answer
2k
views
Determining location of a Clickonce application within Clickonce Cache
I have an application deployed via ClickOnce, along with a separate .NET console application that needs access to the ClickOnce application's installation directory. By the application's installation ...
8
votes
2
answers
4k
views
overriding @executable_path in a DLL loaded with dlopen()
Operating system is MacOS X, specifically 10.5 (Leopard) on a PowerPC G4, but I have the same problem on an x86 running 10.6.
I am writing an application which dynamically loads a DLL. The DLL (let's ...
0
votes
1
answer
588
views
Defining path to executable for a custom control
I have created a custom control using VB.NET in Visual Studio 2008 that gives extensive mapping and tracking functionality to a search and rescue app. The problem I am having is that in a number of ...
2
votes
2
answers
4k
views
Can I get the ExecutablePath from a System.Management.EventArrivedEventArgs object?
I'm using a System.Management.ManagementEventWatcher to get the process ID and executable path for a started process:
private void startWatcher_EventArrived(Object sender, EventArrivedEventArgs e)
{
...
292
votes
24
answers
588k
views
How do I get the directory that a program is running from?
Is there a platform-agnostic and filesystem-agnostic method to obtain the full path of the directory from where a program is running using C/C++? Not to be confused with the current working directory. ...