I was going through this tutorial, when I encountered the following error.
OS description :
LINUX UBUNTU 20.04 LTS
Input :
after compiling the tutorial successfully in the tutorial file using
gcc basic-tutorial-1.c -o basic-tutorial-1 `pkg-config --cflags --libs gstreamer-1.0`
and executing the tutorial with
./basic-tutorial-1
as stated in the website I got this output.
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
shared memfd open() failed: Function not implemented
shared memfd open() failed: Function not implemented
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
error: XDG_RUNTIME_DIR not set in the environment.
error: XDG_RUNTIME_DIR not set in the environment.
shared memfd open() failed: Function not implemented
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
JackShmReadWritePtr::~JackShmReadWritePtr - Init not done for -1, skipping unlock
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default': No such file or directory
I have read about XDG_RUNTIME_DIR but I am not sure what file should I assign it to or if that is even the problem; reference.
Related
One day I worken on my python project but then (idk why) I get this error... I fully reinstalled vs code & python (absolutely full, trust me), this error still continued appearing. Then I checked my extensions and that problem was Jupyther! This error always appears when I'm starting VS Code, but when I switch it off I can't run any file (but I still can use console commands like pip). I don't know why Jupyther is not working on my netbook, if someone knows the answer - you are welcome, I need your help so much!
VS Code version: 1.64.2
Python version: 3.10.2
OS: Windows 10 Pro - x64
In dev tools logging:
log.ts:307 WARN Settings pattern "keyboard.*" doesn't match any settings
log.ts:301 INFO IExtensionHostStarter.start() took 442 ms.
log.ts:313 ERR [Extension Host] (node:10404) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `Code --trace-deprecation ...` to show where the warning was created)
console.ts:137 [Extension Host] (node:10404) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.(Use `Code --trace-deprecation ...` to show where the warning was created)
I # console.ts:137
log.ts:307 WARN Settings pattern "keyboard.*" doesn't match any settings
console.ts:137 [Extension Host] Git installation not found.
I # console.ts:137
2log.ts:307 WARN Settings pattern "keyboard.*" doesn't match any settings
log.ts:301 INFO Setting search error: XHR failed
bingsettingssearch.trafficmanager.net/api/Search:1 Failed to load resource: net::ERR_CERT_DATE_INVALID
log.ts:301 INFO Setting search error: XHR failed
bingsettingssearch.trafficmanager.net/api/Search:1 Failed to load resource: net::ERR_CERT_DATE_INVALID
log.ts:307 WARN Settings pattern "keyboard.*" doesn't match any settings
log.ts:301 INFO Setting search error: XHR failed
bingsettingssearch.trafficmanager.net/api/Search:1 Failed to load resource: net::ERR_CERT_DATE_INVALID
log.ts:301 INFO Setting search error: XHR failed
bingsettingssearch.trafficmanager.net/api/Search:1 Failed to load resource: net::ERR_CERT_DATE_INVALID
log.ts:301 INFO Setting search error: XHR failed
bingsettingssearch.trafficmanager.net/api/Search:1 Failed to load resource: net::ERR_CERT_DATE_INVALID
log.ts:301 INFO Setting search error: XHR failed
bingsettingssearch.trafficmanager.net/api/Search:1 Failed to load resource: net::ERR_CERT_DATE_INVALID
localProcessExtensionHost.ts:325 Extension Host
localProcessExtensionHost.ts:326 Assertion failed: error not defined [0] (C:\Users\travis\build\zeromq\zeromq.js\build\libzmq\zeromq-4.3.2\src\err.cpp:383)
abstractExtensionService.ts:645 Extension host (LocalProcess) terminated unexpectedly. Code: 1073741845, Signal: null
_onExtensionHostCrashed # abstractExtensionService.ts:645
log.ts:313 ERR Extension host (LocalProcess) terminated unexpectedly. The following extensions were running: vscode.microsoft-authentication, vscode.debug-auto-launch, vscode.git-base, vscode.git, vscode.github, vscode.emmet, vscode.merge-conflict, ms-vscode-remote.remote-wsl-recommender, vscode.github-authentication, ms-python.python, ms-toolsai.jupyter
notificationsAlerts.ts:42 Extension host terminated unexpectedly.
docker: Error response from daemon: OCI runtime create failed: container_linux.go:380: starting container process caused: exec: "tomcat9": executable file not found in $PATH: unknown.
I'm trying to configure Microsoft Machine Learning Server (9.4) to work on my local computer.
I'm getting stuck at following this instruction:
https://learn.microsoft.com/en-us/machine-learning-server/operationalize/configure-machine-learning-server-one-box
at
# With elevated privileges, run the following commands.
# Set up both nodes on one machine
az mlserver admin node setup --onebox --admin-password <Password> --confirm-password <Password>
I have tried to reinstall the machine learning server (not including R), same results.
This is the error message that is shown when trying to configure the machine learning server:
C:\WINDOWS\system32>az mlserver admin bootstrap
Admin password:
Confirm admin password:
fail The web node failed to be configured.
Failure in `windows_configure_web_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified
fail The compute node failed to be configured.
Failure in `windows_configure_compute_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified
The web node failed to be configured.
Failure in `windows_configure_web_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified
The compute node failed to be configured.
Failure in `windows_configure_compute_node.py` FileNotFoundError
[WinError 2] The system cannot find the file specified
Has someone else already encountered/solved that issue?
Thank you very much!
I was able to find the solution for my problems.
My system could not find powershell.exe, as it was not added to the PATH environment variable.
By adding a reference to
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
I could get the server up and running.
this message error appear when i trying to run test.ping command :
_error:
Failed to return clean data
retcode:
10
stderr:
ERROR: Unable to locate appropriate python command
stdout:
ERROR: salt requires python 2.6 or newer on target hosts, must have same major version as origin host
knowing that the version of python installed in both hosts (master and minion ) is the same
I'm using python-flask and firebase-admin (for authentication) in my mobile app backend. I'm deploying my code to AWS Elastic Beanstalk. Everything is fine until I install the firebase-admin through "pip install firebase-admin".
I've committed changed to git.
Now, the deployment fails and displays the following message.
*MacBook-Pro:pets-friend-api santosh.guruju$ eb deploy
WARNING: Git is in a detached head state. Using branch "default".
WARNING: Git is in a detached head state. Using branch "default".
WARNING: Git is in a detached head state. Using branch "default".
WARNING: Git is in a detached head state. Using branch "default".
WARNING: Git is in a detached head state. Using branch "default".
Creating application version archive "app-d517-170725_142037".
Uploading PetsFrenzAPI/app-d517-170725_142037.zip to S3. This may take a while.
Upload Complete.
INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
ERROR: Your requirements.txt is invalid. Snapshot your logs for details.
ERROR: [Instance: i-054100c8ffb51643c] Command failed on instance. Return code: 1 Output: (TRUNCATED)...)
File "/usr/lib64/python2.7/subprocess.py", line 541, in check_call
raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '/opt/python/run/venv/bin/pip install -r /opt/python/ondeck/app/requirements.txt' returned non-zero exit status 1.
Hook /opt/elasticbeanstalk/hooks/appdeploy/pre/03deploy.py failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
ERROR: Unsuccessful command execution on instance id(s) 'i-054100c8ffb51643c'. Aborting the operation.
ERROR: Failed to deploy application.*
I've Fixed it!
As it states the problem is in Requirements.txt.
Instead of>> pip freeze > requirement.txt
Just added limited resources in the requirements file without version.
fix:requirement.txt contains
flask
flask_sqlalchemy
firebase_admin
pymysql