I am trying to run some code from github, and having issues. I am trying to download dependencies , which are included in environment.yml. I ran "conda env create -f environment.yml", but got following message.
InvalidArchiveError("Error with archive /home/mchoi/anaconda3/pkgs/pytorch-1.1.0-py3.6_cuda10.0.130_cudnn7.5.1_0.tar.bz2. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to create dir 'lib/python3.6/site-packages/torch/for_onnx'")
At first, the terminal asked me to update the conda, so thought thats the problem but im keep getting the same message after the update. I tried to delete and re-download, but same thing happened.
Related
I am trying to create a new enviroment in anaconda using the following command:
conda create --name=labelme python=3
And i am getting the next error:
InvalidArchiveError("Error with archive C:\\Users\\ttt\\.conda\\pkgs\\xz-5.2.8-h8cc25b3_0\\.cph_tmpv91fk9n9\\info-xz-5.2.8-h8cc25b3_0.tar.zst. You probably need to delete and re-download or re-create this file. Message from libarchive was:\n\nFailed to open 'C:\\Users\\tt\\.conda\\pkgs\\xz-5.2.8-h8cc25b3_0\\.cph_tmpv91fk9n9\\info-xz-5.2.8-h8cc25b3_0.tar.zst'")
I have tryed eliminating the file but it appears again. Does anybody know how can I resolve the problem?
conda clean --all
I tried to install the DB2 V11.1 FP5 on a SLES-12-SP4 machine. So far I
downloaded the universal package
extracted the universal package
called the command "./installFixPack -b /opt/ibm/db2/V11.1/ -p /opt/ibm/db2/fp5/" as root user
But the installFixPack stopps working sometimes at step 44 or 47 or also step 50 of 73 without any clear error message. In the log file I find a message like
"ERROR: The install path "/opt/ibm/db2/fp5" is invalid. Specify a
valid install path.
ERROR: DBI20105E An error occurred while installing the following
file set: "DB2_PRODUCT_MESSAGES_FR_11.1.4.5_linuxamd64_x86_64".
Because these files were not successfully installed, functionality
that depends on these files might not work as expected.
Rolling back what has been installed"
Any hint what I'm doing wrong?
Thanks so much for reading so far
best regards
Thomas Graf
./installFixPack -b is to patch an aleady installed DB2 HOME cf: pass from FP4 To FP5.
if you want to install the FP5 into a new path use db2setup (or ./db2setup -r for silent install)
you should add -l /var/tmp/installlog.log -t /var/tmp/installtrace.log to the installFixPack to see exactly what is the error.
Even if you started the install with root, the app can use another user to install some files/libraries.
Do you have the same message after manually creating this folder ?
I am trying the petshop client generation example on github and autorest just exits without creating anything or throwing any errors. Autorest behaves like I did not pass any arguments. Attached is a screenshot of my powershell execution.
Try executing your same command but add --verbose at the end to tell autorest to print out any errors.
I was experiencing the same problem and what worked for me was creating the following readme.yml file and simply running the command
autorest readme.yml
With those two things (readme.yml and the command) I was able to generate the code in csharp without any issues.
Image of Readme.yml for csharp code generation:
For me what finally worked was:
Install the latest Node from https://nodejs.org/
Go to C:\Users\%userprofile%\AppData\Roaming\npm and delete the 2 autorest files there if you have them.
Open a Command Prompt (type cmd in the address of any Windows folder)
In the Command Prompt type this command:
npm cache clean -f
Now, also in the same Command Prompt, type this command:
npm install autorest -g
You should now be able to generate your client.
This answer on GitHub repo of Autorest, suggest that you execute
autorest --reset
after updating. It removes older plugins of Autorest. I had the same problem (without updating Autorest) and it has solved after that.
This post summarize my painful but finally successful (just by chance) way to build own conda package for the
netgen meshing tool with Python interface. I found the recipe for the netgen build due to tpaviot.
After cloning the repository into 'netgen-conda' folder I ran:
conda build netgen-conda/netgen-6.2-dev
Which reports "Unsatisfiable dependencies": 'oce', 'gcc-5', 'binutils'.
So I tried to install these packages myself. Unfortunately the documentation do not emphasize the important fact that 'conda build' use its own temporary environment so it doesn't matter what you have installed (see). Nevertheless even installing 'gcc-5' together with 'binutils' manually turns out to be nearly impossible.
Hint for other newbies: Lot of my problems disappear after I learned details about channels.
First try was installing 'gcc-5' with 'binutils' from the 'salford_systems' channel suggested by anaconda:
conda install -c salford_systems binutils gcc-5
But it results in:
ERROR conda.core.link:_execute_actions(337): An error occurred while installing package 'salford_systems::gcc-5-5.3.0-0'.
LinkError: post-link script failed for package salford_systems::gcc-5-5.3.0-0
running your command again with-vwill provide additional information
location of failed script: /home/jb/miniconda3/envs/test/bin/.gcc-5-post-link.sh
Using verbose output ('-v') provides no more info. I was also confused by the fact that the script does not exist on the given path (probably automatically deleted).
With current experience I admit that the reason of problem can be dug out from the '-vv' output (reported issue). After some trying I found that only way to
install both is to first install 'gcc-5' into a clean environment and then install 'binutils'. Since 'conda build' installs everything
from scratch and there is no way to specify order of installed packages I was stuck.
Another issue that puzzled me is the 'conda build' long prefix hack. For unknown reason they use extremely long prefix for an auxiliary folder
which result in various kind of issues. I have faced to three such problems:
As is usual today, I have encrypted HOME causing a known issue.
Using a workaround '--croot /tmp' prevents creating the hard links from '/tmp' into 'HOME/miniconda3' since they are on different filesystems.
There is a fallback to use the copy. I even thought that the fallback doesn't work for a while, but it worked, just making the build running longer.
Trying to install 'gcc' (4.x) from 'default' channel complained about too short prefix. So ultimate workaroud was to set the length of the prefix manually
'--prefix-length 70'.
Finally, I found that the dependency on 'binutils' is not necessary and successfully build the package with:
conda build --prefix-length 70 -c salford_systems -c conda-forge -c dlr-sc netgen-conda/netgen-6.2-dev
Summary (of open questions):
Conda channels introduce a new kind of dependency hell already forgotten when using 'apt-get'. Is there a way to figure out what is a canonical channel for a package.
Does anyone succeed to build with combination 'gcc-5' and 'binutils'?
There is still lack of documentation about internal conda mechanisms and error messages do not provide clue to the problem.
Conda-build use a problematic prefix hack and lack ability to control order of installed packages. Does anybody know the reason for this hack?
I am trying to install moai on Ubuntu.
I tried following this: https://github.com/moai/moai-dev/wiki/Building-MOAI-on-Ubuntu-14.10-64bit
and completed all the steps. It seemed as if everything completed. But now I don't know what to do.
How to run moai ?
I somewhere saw it was mentioned to run
moai main.lua
However I tried
which moai
without any result.
I thought that moai isn't in my PATH but I don't know which location to add to my PATH variable, because there isn't any file in moai-dev/bin folder of the name moai on my PC.
Please Help.
You can just download moai binary release which is available for linux, osx and windows. After unpacking just put moaidist/linux/moai in your PATH.