Failed to create Conda environment status : 143 - linux

I am trying to run a nexflow pipeline on some data via the Linux command line, but when I do so, it fails because it fails to create the Conda environment.
It looks like it tries to run the pipeline anyway, despite the environment not being set up properly, and so generates an error message. Any help would be much appreciated. Here is the error message:
Error executing process > 'my_process (1)'
Caused by:
Failed to create Conda environment
command: conda env create --prefix /my_file_path-6bf38a923b48a255f96ea3d66d372e6c --file /my_file_path/environment.yml
status : 143
message:
Here is my environment.yml file:
name: pipeline_name
channels:
- bioconda
- conda-forge
- defaults
dependencies:
- filtlong
- blast==2.5
- minimap2
- samtools
- pysam
- pandas
- matplotlib
- pysamstats
- seaborn
- medaka
- bedtools
- bedops
- seqtk
- bioawk
- sniffles

Not an answer to this question, but if you get a similar failure with a different exit status (120, not 143), try the fix in this thread. Reposting it here:
conda environment from file not working using nextflow · Issue #1081 · nextflow-io/nextflow: https://github.com/nextflow-io/nextflow/issues/1081
pditommaso commented on Mar 18, 2019
The 120 exit status signals that
it was reached the creation timeout. Try increasing it, eg.
conda.createTimeout = '1 h'

Related

Debugger not working in WebStorm and WSL - File wslproxy is not executable

I'm running WebStorm 2022.2.2 on Windows and my Node.js project is sitting in WSL2 Ubuntu distribution, and I'm trying to get the debugger working for my setup with no success so far.
This is the error popping up as soon as I press the debug button:
2022-09-24 11:38:49,751 [61701563] INFO - #c.i.j.d.JavaScriptDebugProcess - JSDebugger publish port: 58315
2022-09-24 11:38:49,861 [61701673] INFO - #c.i.e.r.ExecutionUtil - Error running 'my-project:dev':<br>Failed to prepare environment: File is not executable: /mnt/c/Users/MyPC/AppData/Local/JetBrains/Toolbox/apps/WebStorm/ch-0/222.4167.31/bin/wslproxy (C:\Users\MyPC\AppData\Local\JetBrains\Toolbox\apps\WebStorm\ch-0\222.4167.31\bin\wslproxy)
com.intellij.execution.ExecutionException: Failed to prepare environment: File is not executable: /mnt/c/Users/MyPC/AppData/Local/JetBrains/Toolbox/apps/WebStorm/ch-0/222.4167.31/bin/wslproxy (C:\Users\MyPC\AppData\Local\JetBrains\Toolbox\apps\WebStorm\ch-0\222.4167.31\bin\wslproxy)
at com.intellij.javascript.nodejs.execution.NodeTargetRun.prepareCommandLine(NodeTargetRun.kt:129)
at com.intellij.javascript.nodejs.execution.NodeTargetRun.startProcessEx(NodeTargetRun.kt:138)
at com.intellij.javascript.nodejs.execution.NodeTargetRun.startProcess(NodeTargetRun.kt:103)
at com.github.iguissouma.nxconsole.buildTools.rc.NxRunProfileState.startProcess(NxRunProfileState.kt:70)
at com.intellij.javascript.nodejs.execution.NodeBaseRunProfileState$Companion.runInBackground(NodeBaseRunProfileState.kt:58)
at com.intellij.javascript.nodejs.execution.NodeBaseRunProfileState$Companion.access$runInBackground(NodeBaseRunProfileState.kt:41)
at com.intellij.javascript.nodejs.execution.NodeBaseRunProfileState$Companion$executeUnderProgress$1.run(NodeBaseRunProfileState.kt:49)
at com.intellij.openapi.progress.impl.CoreProgressManager.startTask(CoreProgressManager.java:442)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.startTask(ProgressManagerImpl.java:114)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsynchronously$5(CoreProgressManager.java:493)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:252)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:188)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$12(CoreProgressManager.java:608)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:683)
at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:639)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:607)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:175)
at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:252)
at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1768)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:702)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:699)
at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:699)
at java.base/java.lang.Thread.run(Thread.java:833)
Caused by: java.lang.Exception: File is not executable: /mnt/c/Users/MyPC/AppData/Local/JetBrains/Toolbox/apps/WebStorm/ch-0/222.4167.31/bin/wslproxy (C:\Users\MyPC\AppData\Local\JetBrains\Toolbox\apps\WebStorm\ch-0\222.4167.31\bin\wslproxy)
at com.intellij.execution.wsl.WslToolsKt.getTool(WslTools.kt:17)
at com.intellij.execution.wsl.WslProxy.<init>(WslProxy.kt:101)
at com.intellij.execution.wsl.target.WslTargetEnvironment.getWslPort(WslTargetEnvironment.kt:88)
at com.intellij.execution.wsl.target.WslTargetEnvironment.<init>(WslTargetEnvironment.kt:79)
at com.intellij.execution.wsl.target.WslTargetEnvironmentRequest.prepareEnvironment(WslTargetEnvironmentRequest.kt:68)
at com.intellij.javascript.nodejs.execution.NodeTargetRun.prepareCommandLine(NodeTargetRun.kt:122)
... 26 more
Caused by: com.intellij.execution.wsl.ProcessExistedNotZeroException: Can't execute test -x /mnt/c/Users/MyPC/AppData/Local/JetBrains/Toolbox/apps/WebStorm/ch-0/222.4167.31/bin/wslproxy: 1.
at com.intellij.execution.wsl.WslProcessToolsKt.waitProcess(WslProcessTools.kt:37)
at com.intellij.execution.wsl.WslProcessToolsKt.runCommand(WslProcessTools.kt:19)
at com.intellij.execution.wsl.WslProcessToolsKt.runCommand$default(WslProcessTools.kt:14)
at com.intellij.execution.wsl.WslToolsKt.getTool(WslTools.kt:14)
... 31 more
What do I have to do in order to get the Debugger working?

DVC | Permission denied ERROR: failed to reproduce stage: failed to run: .py, exited with 126

Goal: run .py files via. dvc.yaml.
There are stages before it, in dvc.yaml, that don't produce the error.
dvc exp run:
(venv) me#ubuntu-pcs:~/PycharmProjects/project$ dvc exp run
Stage 'inference' didn't change, skipping
Running stage 'load_data':
> load_data.py
/bin/bash: line 1: load_data.py: Permission denied
ERROR: failed to reproduce 'load_data': failed to run: load_data.py, exited with 126
dvc repro:
(venv) me#ubuntu-pcs:~/PycharmProjects/project$ dvc repro
Stage 'predict' didn't change, skipping
Stage 'evaluate' didn't change, skipping
Stage 'inference' didn't change, skipping
Running stage 'load_data':
> load_data.py
/bin/bash: line 1: load_data.py: Permission denied
ERROR: failed to reproduce 'load_data': failed to run: pdl1_lung_model/load_data.py, exited with 126
dvc doctor:
DVC version: 2.10.2 (pip)
---------------------------------
Platform: Python 3.9.12 on Linux-5.15.0-46-generic-x86_64-with-glibc2.35
Supports:
webhdfs (fsspec = 2022.5.0),
http (aiohttp = 3.8.1, aiohttp-retry = 2.5.2),
https (aiohttp = 3.8.1, aiohttp-retry = 2.5.2),
s3 (s3fs = 2022.5.0, boto3 = 1.21.21)
Cache types: hardlink, symlink
Cache directory: ext4 on /dev/nvme0n1p5
Caches: local
Remotes: s3
Workspace directory: ext4 on /dev/nvme0n1p5
Repo: dvc, git
dvc exp run -v:
output.txt
dvc exp run -vv:
output2.txt
Solution 1
.py files weren't running as scripts.
They need to be; if you want to run one .py file per stage in dvc.yaml.
To do so, you want to append Boiler-plate code, at the bottom of each .py file.
if __name__ == "__main__":
# invoke primary function() in .py file, w/ params
Solution 2
chmod 777 ....py
Soution 3
I forgot the python in cmd:
load_data:
cmd: python pdl1_lung_model/load_data.py

Error: failed to normalize chaincode path: 'go list' failed with: Use -buildvcs=false to disable VCS stamping.: exit status 1

I am follownig this tutorial - https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/get-started-chaincode.html - when i am using this command - docker exec cli peer lifecycle chaincode package ./abstore.tar.gz --path fabric-samples/chaincode/abstore/go/ --label abstore_1, this give me following error -
Error: failed to normalize chaincode path: 'go list' failed with: error obtaining VCS status: exit status 128 Use -buildvcs=false to disable VCS stamping.: exit status 1.
Expected result - it should create abstore.tar.gz file of chaincode.
I am using go version go1.18.4
could you try to add --lang go
this issue occurs when git is not configured properly.

SAP Commerce Cloud with Spartacus installation error

I am with a local installation of Sap Commerce Cloud 2011 with Spartacus following the steps of https://sap.github.io/spartacus-docs/installing-sap-commerce-cloud-2011/
When i execute the sentence: install.bat -r cx-for-spa
BUILD FAILED
D:\CX\SCC\hybris\bin\platform\build.xml:9: The following error occurred while executing this line:
D:\CX\SCC\hybris\bin\platform\resources\ant\antmacros.xml:89: The following error occurred while executing this line:
D:\CX\SCC\hybris\bin\platform\resources\ant\mavenTasks.xml:440: Java returned: 1
Total time: 3 seconds
Task :recipes:cx-for-spa:createStoreFrontExt FAILED
FAILURE: Build failed with an exception.
Where:
Build file 'D:\CX\SCC\installer\recipes\cx-for-spa\build.gradle' line: 581
What went wrong:
Execution failed for task ':recipes:cx-for-spa:createStoreFrontExt'.
external process returned non-zero exit code, command: [cmd, /c, set "ANT_OPTS=-Xmx1024m -Dfile.encoding=UTF-8" & set "PLATFORM_HOME=D:\CX\SCC\hybris\bin\platform" & set "ANT_HOME=D:\CX\SCC\hybris\bin\platform\apache-ant" & set "PATH=D:\CX\SCC\hybris\bin\platform\apache-ant\bin;%PATH%" & ant createConfig -Dinput.template=develop]
I have executed those steps( sets and ant ) and repeat the install setence..but this error always appears.
Any help is welcome .. thank you very much in advance
I did the same installation last week (Sap Commerce 2011 for Spartacus).
Question to you:
Have you installed the jdk SapMachine 11 or 17? (17 makes trouble)
https://sap.github.io/SapMachine/
Have you updated the System Environment Variables of your system?
https://www.youtube.com/watch?v=E5wJXR63g1U
Have you comment out "Build Parallel = true" in the config file?
C:\SapCommerce2011\installer\customconfig
In file:"build.parallel=true" => "#build.parallel=true"
KR
Nathan

Getting error in Chef-ERROR: shard_seed: Failed to get dmi property serial_number: is dmidecode installed?

I am getting error while running a code in chef
chef-client -zr "recipe[test-cookbook::test-recipe1]"
[2020-08-05T16:01:06+00:00] WARN: No config file found or specified on command line. Using command line options instead.
Starting Chef Infra Client, version 16.3.45
[2020-08-05T16:01:08+00:00] ERROR: shard_seed: Failed to get dmi property serial_number: is dmidecode installed?
resolving cookbooks for run list: ["test-cookbook::test-recipe1"]
Synchronizing Cookbooks:
test-cookbook (0.1.0)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 0 resources
Running handlers:
Running handlers complete
Chef Infra Client finished, 0/0 resources updated in 01 seconds

Resources