Why does Emscripten not "find the file specified"? - windows

As far as I can tell, I have installed all the dependencies with the Emscripten SDK but when I run the "Emscripten command prompt" I get the following output:
Adding directories to PATH:
PATH += C:\Program Files\Emscripten\spidermonkey\30.0.0_64bit
PATH += C:\Program Files\Emscripten\git\1.9.4\bin;C:\Program Files\Emscripten\gi
t\1.9.4\cmd
The system cannot find the file specified.
C:\Program Files\Emscripten>
Furthermore, when I try to compile a library, I get the following:
C:\Alice-master\deps\snappy-1.1.1>emconfigure configure
ERROR root: Exception thrown when invoking Popen in configure with args: "con
figure"!
Traceback (most recent call last):
File "C:\Program Files\Emscripten\emscripten\1.27.0\\emconfigure", line 24, in
shared.Building.configure(sys.argv[1:])
File "C:\Program Files\Emscripten\emscripten\1.27.0\tools\shared.py", line 108
4, in configure
process = Popen(args, stdout=stdout, stderr=stderr, env=env)
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\subprocess.py", lin
e 711, in __init__
errread, errwrite)
File "C:\Program Files\Emscripten\python\2.7.5.3_64bit\lib\subprocess.py", lin
e 948, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
I have tried it in different directories. If I try the other command that I read in the package's explanation, emconfigure ./configure
I get a similar exception that ends with WindowsError: [Error 193] %1 is not a valid Win32 application
Note: I even get this error when I execute the command in a directory without any spaces.

Related

"File not found error" when verifying Quarto installation

I installed Quarto 1.0.38, Python 3.10, Julia 1.7.3, Visual Studio Code and the Julia, Quarto & Python extensions on Windows 11 following the instructions in https://quarto.org/docs/computations/julia.html.
When I execute
quarto check jupyter
to verify the installation it fails with the following:
[>] Checking Python 3 installation....OK
Version: 3.10.6
Path: C:/Users/kobus/AppData/Local/Programs/Python/Python310/python.exe
Jupyter: 4.11.1
Kernels: julia-1.5, julia-1.6, julia-1.7, julia-nteract-1.6, python37564bit71e25397c0924940962c87edbb66fd67, python37664bitenvvenvc99749bc487c4692a26d5dcf2b43d743, python38164bitepisodeexplorationcondaeccbc25b1ee04fa69b2d22683300cb44, python3
(-) Checking Jupyter engine render....2022-08-07 21:11:35,237 - traitlets - ERROR - Failed to run command:
['C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\Python37_64\\python.exe', '-m', 'ipykernel_launcher', '-f', 'C:\\Users\\kobus\\AppData\\Local\\Temp\\tmpsxg7mwcl.json']
PATH='C:\\Program Files\\PowerShell\\7;;C:\\Users\\kobus\\AppData\\Local\\Programs\\Quarto\\bin\\;C:\\Program Files\\AdoptOpenJDK\\jdk-11.0.11.9-hotspot\\bin;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\130\\Tools\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\140\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\150\\DTS\\Binn\\;C:\\Program Files\\Calibre2\\;C:\\Program Files (x86)\\Devart\\EntityDeveloper\\Console;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;C:\\Program Files\\Azure Data Studio\\bin;C:\\Program Files\\dotnet\\;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;C:\\Program Files\\Git\\cmd;C:\\Program Files (x86)\\Microsoft SQL Server\\110\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\120\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\130\\DTS\\Binn\\;C:\\Program Files (x86)\\Microsoft SQL Server\\140\\DTS\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\PowerShell\\7\\;C:\\Users\\kobus\\AppData\\Local\\Programs\\Python\\Python310\\Scripts;C:\\Users\\kobus\\AppData\\Local\\Programs\\Python\\Python310\\lib;;C:\\Program Files\\Microsoft VS Code\\bin;C:\\Users\\kobus\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\;C:\\Users\\kobus\\AppData\\Local\\Programs\\Python\\Python310\\;C:\\Users\\kobus\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files (x86)\\Devart\\EntityDeveloper\\Console;C:\\Users\\kobus\\AppData\\Local\\GitHubDesktop\\bin;C:\\Program Files\\Azure Data Studio\\bin;C:\\Users\\kobus\\.dotnet\\tools;C:\\Users\\kobus\\.dotnet\\tools;C:\\Users\\kobus\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Users\\kobus\\AppData\\Local\\Programs\\Quarto\\bin'
with kwargs:
{'stdin': -1, 'stdout': None, 'stderr': None, 'cwd': None, 'close_fds': False}
2022-08-07 21:11:35,238 - traitlets - ERROR - [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "C:\Users\kobus\AppData\Local\Programs\Python\Python310\lib\site-packages\jupyter_client\manager.py", line 75, in wrapper
out = await method(self, *args, **kwargs)
File "C:\Users\kobus\AppData\Local\Programs\Python\Python310\lib\site-packages\jupyter_client\manager.py", line 389, in _async_start_kernel
await ensure_async(self._launch_kernel(kernel_cmd, **kw))
File "C:\Users\kobus\AppData\Local\Programs\Python\Python310\lib\site-packages\jupyter_client\utils.py", line 38, in ensure_async
return await obj
File "C:\Users\kobus\AppData\Local\Programs\Python\Python310\lib\site-packages\jupyter_client\manager.py", line 307, in _async_launch_kernel
connection_info = await self.provisioner.launch_kernel(kernel_cmd, **kw)
File "C:\Users\kobus\AppData\Local\Programs\Python\Python310\lib\site-packages\jupyter_client\provisioning\local_provisioner.py", line 204, in launch_kernel
self.process = launch_kernel(cmd, **scrubbed_kwargs)
File "C:\Users\kobus\AppData\Local\Programs\Python\Python310\lib\site-packages\jupyter_client\launcher.py", line 170, in launch_kernel
raise ex
File "C:\Users\kobus\AppData\Local\Programs\Python\Python310\lib\site-packages\jupyter_client\launcher.py", line 158, in launch_kernel
proc = Popen(cmd, **kwargs)
File "C:\Users\kobus\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 969, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\kobus\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1438, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] The system cannot find the file specified
[WinError 2] The system cannot find the file specified
[>] Checking Jupyter engine render....OK
I am unable to figure why and fix the installation. Could someone perhaps point me in the right direction, please?
I solved the problem by following the approach described in: Unexpected Julia path
Doing the following:
jupyter kernelspec list
and then
jupyter kernelspec uninstall <<kernel>>
for all the kernels listed.
After that I removed the IJulia package, added it again and built it.

WindowsError: [Error 2] The system cannot find the file specified - pyspark

Geia!
I am facing a FileNotFound error on pycharm when runninng this code:
import findspark
findspark.init("C:\\Users\\user\\spark-2.3.0-bin-hadoop2.7")
from pyspark import SparkConf
from pyspark.sql import SparkSession
conf = SparkConf().setAppName('Fresh-Fish')
spark = SparkSession.builder.config(conf=conf).getOrCreate()
I've tried several proposed ways to resolve it but no good luck. I am using Windows 8.1 Pro.
Traceback (most recent call last):
File "C:/Users/user/PycharmProjects/spark-project/spark1.py", line 8, in <module>
spark = SparkSession.builder.config(conf=conf).getOrCreate()
File "C:\Users\user\spark-2.3.0-bin-hadoop2.7\python\pyspark\sql\session.py", line 173, in getOrCreate
sc = SparkContext.getOrCreate(sparkConf)
File "C:\Users\user\spark-2.3.0-bin-hadoop2.7\python\pyspark\context.py", line 331, in getOrCreate
SparkContext(conf=conf or SparkConf())
File "C:\Users\user\spark-2.3.0-bin-hadoop2.7\python\pyspark\context.py", line 115, in __init__
SparkContext._ensure_initialized(self, gateway=gateway, conf=conf)
File "C:\Users\user\spark-2.3.0-bin-hadoop2.7\python\pyspark\context.py", line 280, in _ensure_initialized
SparkContext._gateway = gateway or launch_gateway(conf)
File "C:\Users\user\spark-2.3.0-bin-hadoop2.7\python\pyspark\java_gateway.py", line 80, in launch_gateway
proc = Popen(command, stdin=PIPE, env=env)
File "C:\Python27\lib\subprocess.py", line 390, in __init__
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 640, in _execute_child
startupinfo)
WindowsError: [Error 2] The system cannot find the file specified
Process finished with exit code 1
My system variables are:
SPARK_HOME = C:\Users\user\spark-2.3.0-bin-hadoop2.7
HADOOP_HOME = C:\hadoop #hadoop folder contains bin folder and bin folder contains winutils.exe
PATH = C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Java\jre1.8.0_171\bin;C:\Python27;%SPARK_HOME%\bin;%JAVA_HOME%\bin;%HADOOP_HOME%\bin
JAVA_HOME = C:\Program Files\Java\jdk1.8.0_161
I have also tried to point python.exe from a new variable on its own like:
PYSPARK_HOME = C:\Python27
Or even add specific paths to Pycharm Project Interpreter pointing to:
C:\Users\user\spark-2.3.0-bin-hadoop2.7\python
"C:\Users\user\spark-2.3.0-bin-hadoop2.7\python\lib\py4j-0.10.6-src.zip"
but it didn't work
Two screenshots from Pycharm:
Project Structure Pycharm
Project Interpreter Pycharm
If you need more details I an happy to provide. I've been struggling for quite some days, any new ideas are very welcome!

Not able to run basic example of pycparser

I am trying to start with pycparser and was trying to run the examples given on the github repo. I only changed the path of the file to be parsed after saving the sample c file locally. I get the following error and am not sure if there is some pre-processing step that I am missing?
File "D:\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 714, in runfile
execfile(filename, namespace)
File "D:\Anaconda3\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 89, in execfile
exec(compile(f.read(), filename, 'exec'), namespace)
File "C:/Users/Z003RTRP/Desktop/cparse.py", line 20, in <module>
ast = parse_file(filename, use_cpp=True, cpp_path='gcc', cpp_args=r'-Iutils/fake_libc_include')
File "D:\Anaconda3\lib\site-packages\pycparser\__init__.py", line 86, in parse_file
text = preprocess_file(filename, cpp_path, cpp_args)
File "D:\Anaconda3\lib\site-packages\pycparser\__init__.py", line 49, in preprocess_file
('Original error: %s' % e))
RuntimeError: Unable to invoke 'cpp'. Make sure its path was passed correctly
Original error: [WinError 2] The system cannot find the file specified
Take a look at this section of the README - you have to point cpp_path to the C preprocessor on your system. For Windows, it recommends downloading a binary build of Clang and using clang -E

Error windows with specified version of firefox and selenium

I am using python and selenium.
On my pc, i have two version of firefox
the first one in ProgrammFiles is version 21
The latest one is in "C:\Users\User\AppData\Local\Mozilla Firefox"
I would like to run selenium on the lastest one, but i got an error message:
from selenium import webdriver
from selenium.webdriver.firefox.firefox_binary import FirefoxBinary
binary = FirefoxBinary("C:\Users\User\AppData\Local\Mozilla Firefox")
browser = webdriver.Firefox(firefox_binary=binary)
Traceback (most recent call last):
File "", line 1, in
browser = webdriver.Firefox(firefox_binary=binary)
File "C:\Python27\lib\site-packages\selenium-2.48.0-py2.7.egg\selenium\webdriver\firefox\webdriver.py", line 77, in init
self.binary, timeout),
File "C:\Python27\lib\site-packages\selenium-2.48.0-py2.7.egg\selenium\webdriver\firefox\extension_connection.py", line 49, in init
self.binary.launch_browser(self.profile)
File "C:\Python27\lib\site-packages\selenium-2.48.0-py2.7.egg\selenium\webdriver\firefox\firefox_binary.py", line 67, in launch_browser
self._start_from_profile_path(self.profile.path)
File "C:\Python27\lib\site-packages\selenium-2.48.0-py2.7.egg\selenium\webdriver\firefox\firefox_binary.py", line 90, in _start_from_profile_path
env=self._firefox_env)
File "C:\Python27\lib\subprocess.py", line 710, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 958, in _execute_child
startupinfo)
WindowsError: [Error 5] アクセスが拒否されました。
Do you have any hint to give me to solve this problem ?
The firefox binary path that needs to be passed in FirefoxBinary('') should be the path for the executable 'firefox.exe'.
E.g.:
ff_binary = FirefoxBinary("C:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe")
driver = webdriver.Firefox(firefox_binary=ff_binary)
PS: In your case, the path you've specified is the path where the firefox profile is stored normally.
Hope this helps.

AppEngine project error

I am trying to run the default program that is made when making an appEngine project and the logs give me this error
2014-09-22 21:19:08 Running command: "['C:\\Python34\\pythonw.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=10080', '--admin_port=8002', 'C:\\Users\\eriel\\Documents\\web\\southawnings']"
Traceback (most recent call last):
File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 82, in <module>
_run_file(__file__, globals())
File "C:\Program Files (x86)\Google\google_appengine\dev_appserver.py", line 78, in _run_file
execfile(_PATHS.script_file(script_name), globals_)
NameError: name 'execfile' is not defined
2014-09-22 21:19:08 (Process exited with code 1)
I am using windows 8.0 and the last update of appEngine
If you have Python 2.7 installed try opening the Google App Engine Launcher. Then Edit -> Preferences and check the correct python path is set.
If you installed Python on C:/ it should be something like:
C:\Python27\pythonw.exe

Resources