What is this error installing the Anaconda debugger - anaconda

I run this script from the Anaconda terminal:
conda create -n jupyterlab-debugger -c conda-forge jupyterlab=3 ipykernel>=6 xeus-python
and I get this
Preparing transaction: done
Verifying transaction: done
Executing transaction: | WARNING conda.gateways.disk.delete:unlink_or_rename_to_trash(143): Could not remove or rename C:\Users\nicomp\anaconda3\envs\jupyterlab-debugger\Lib\site-packages\te
stpath\cli-32.exe. Please remove this file manually (you may need to reboot to free file handles)
done
ERROR conda.core.link:_execute(699): An error occurred while installing package 'conda-forge::pywin32-302-py310he2412df_2'.
Rolling back transaction: done
[Errno 2] No such file or directory: 'C:\\Users\\nicomp\\anaconda3\\envs\\jupyterlab-debugger\\Library\\bin\\pythoncom310.dll'
()
So it says I need to delete
C:\Users\nicomp\anaconda3\envs\jupyterlab-debugger\Lib\site-packages\te
stpath\cli-32.exe
but that file isn't on my computer in the first place.

Related

Error while trying to install nvcc in conda

I am trying to install nvcc into a conda environment. The output is as follows:
(pytorch_build) user#host:~/pytorch_git/pytorch$ conda install -c nvidia nvcc_linux-64
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: path_to_conda/miniconda3/envs/pytorch_build
added / updated specs:
- nvcc_linux-64
The following NEW packages will be INSTALLED:
nvcc_linux-64 nvidia/linux-64::nvcc_linux-64-10.1-hf484d3e_0
The following packages will be SUPERSEDED by a higher-priority channel:
certifi conda-forge::certifi-2020.4.5.1-py37h~ --> pkgs/main::certifi-2020.4.5.1-py37_0
Proceed ([y]/n)?
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
ERROR conda.core.link:_execute(700): An error occurred while installing package 'nvidia::nvcc_linux-64-10.1-hf484d3e_0
'.
Rolling back transaction: done
[Errno 2] No such file or directory: 'path_to_conda/miniconda3/pkgs/nvcc_linux-64-10.1-hf484d3e_
0/bin/nvcc'
()
I checked manually and 'path_to_conda/miniconda3/pkgs/nvcc_linux-64-10.1-hf484d3e_
0/bin/nvcc' does exist.
I tried cleaning the conda package cache but that didn't help either. Next thing I'm removing the entire environment and add nvcc to the list of packages added at first.
Any else what else I might try? Please let me kow if/which additional information is required.
UPDATE
I removed the entire environment and now I'm getting
File /usr/lib64/stubs/libcuda.so doesn't exist
I'm already looking for solutions with this new problem but would appreciate any help.

Download Fuchsia source -- Jiri hooks are not run due to fatal errors when updating projects or packages

Per Get Fuchsia source code:
~$ echo $PATH
/media/cwh/32GB/swdev/fuchsia/.jiri_root/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
~$ cd /media/cwh/32GB/swdev/
/media/cwh/32GB/swdev$ curl -s "https://fuchsia.googlesource.com/fuchsia/+/master/scripts/bootstrap?format=TEXT" | base64 --decode | bash
cipd bootstrapped to path:"/media/cwh/32GB/swdev/fuchsia/.jiri_root/bin/cipd"
Please add /media/cwh/32GB/swdev/fuchsia/.jiri_root/bin to your PATH
[22:15:04.404] Updating all projects
PROGRESS: Fetching CIPD packages
[22:38:10.385] Jiri hooks are not run due to fatal errors when updating projects or packages
[23:01:03.457] Jiri hooks are not run due to fatal errors when updating projects or packages
ERROR: context deadline exceeded
I do not see any "fatal errors" preceding the Jiri hooks message.
What is the 'Jiri hooks are not run due to fatal errors when updating projects or packages'?
jiri help update indicates there are two default timeouts:
-fetch-packages-timeout=30
-hook-timeout=5
Invoke jiri directly with increased timeouts then repeat original command.
cd fuchsia; jiri update -fetch-packages-timeout=90 -hook-timeout=60; cd ..
curl -s "https://fuchsia.googlesource.com/fuchsia/+/master/scripts bootstrap?format=TEXT" | base64 --decode | bash
In my case it was the cipd that failed to fetch some prebuilt artifacts. Just login by running
cipd auth-login
and then run the fuchsia bootstrap script again.

cudamat install nvcc fail on ubuntu

I have a GPU instance running on EC2 and I'm trying to install cudamat.
I've downloaded a copy to my home directory:
git clone https://github.com/cudamat/cudamat
Then I cd into that directory and run:
sudo pip install .
Error is "command 'nvcc' failed with exit status 1.
Heres the full message:
Unpacking /home/ubuntu/cudamat
Running setup.py (path:/tmp/pip-s7db_8yv-build/setup.py) egg_info for package from file:///home/ubuntu/cudamat
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/tmp/pip-s7db_8yv-build
Installing collected packages: cudamat
Running setup.py install for cudamat
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/tmp/pip-s7db_8yv-build
building 'cudamat.libcudamat' extension
nvcc -I/usr/include/python3.4m -c cudamat/cudamat.cu -o build/temp.linux-x86_64-3.4/cudamat/cudamat.o -O --ptxas-options=-v --compiler-options=-fPIC
error: command 'nvcc' failed with exit status 1
Complete output from command /usr/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-s7db_8yv-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-nulrhjnl-record/install-record.txt --single-version-externally-managed --compile:
PATH = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
/tmp/pip-s7db_8yv-build
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.4
creating build/lib.linux-x86_64-3.4/cudamat
copying cudamat/learn.py -> build/lib.linux-x86_64-3.4/cudamat
copying cudamat/__init__.py -> build/lib.linux-x86_64-3.4/cudamat
copying cudamat/cudamat.py -> build/lib.linux-x86_64-3.4/cudamat
running egg_info
creating cudamat.egg-info
writing cudamat.egg-info/PKG-INFO
writing dependency_links to cudamat.egg-info/dependency_links.txt
writing top-level names to cudamat.egg-info/top_level.txt
writing manifest file 'cudamat.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
reading manifest file 'cudamat.egg-info/SOURCES.txt'
writing manifest file 'cudamat.egg-info/SOURCES.txt'
copying cudamat/cudamat.cu -> build/lib.linux-x86_64-3.4/cudamat
copying cudamat/cudamat_kernels.cu -> build/lib.linux-x86_64-3.4/cudamat
copying cudamat/learn.cu -> build/lib.linux-x86_64-3.4/cudamat
copying cudamat/learn_kernels.cu -> build/lib.linux-x86_64-3.4/cudamat
copying cudamat/rnd_multipliers_32bit.txt -> build/lib.linux-x86_64-3.4/cudamat
running build_ext
building 'cudamat.libcudamat' extension
creating build/temp.linux-x86_64-3.4
creating build/temp.linux-x86_64-3.4/cudamat
nvcc -I/usr/include/python3.4m -c cudamat/cudamat.cu -o build/temp.linux-x86_64-3.4/cudamat/cudamat.o -O --ptxas-options=-v --compiler-options=-fPIC
error: command 'nvcc' failed with exit status 1
There is something wrong with the path. since nvcc was not found.
heres when i type:
echo $PATH
/usr/local/cuda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
Anyone has an idea?
cheers
The error manifests itself only when sudo is used.
sudo changes the $PATH variable, depending on the security policy.
The problem is fixed if the following is used:
sudo env "PATH=$PATH" pip3 install .
nvcc is not configured for sudo access(i may be wrongly phrasing this sentence, but in short nvcc doesnt work with sudo)
there are two solutions to this problem:
Give sudo access to nvcc(which you have mentioned) which may be the inefficient way.
Don't use sudo while installing cudamat instead use the following command when you are inside the cudamat directory.
python setup.py install --user
Note:
While testing after installation dont use import cudamat from the cudamat directory which will through an error saying cudamat/cudamat not found.
It will look in the local directory.
Go to home and use import cudamat it will work
Clone from github
git clone https://github.com/cudamat/cudamat.git
This is only compatible with python 3

Building QScintilla on Windows fails

I was able to build the most recent version of QScintilla (2.9.1) on Ubuntu 15.10. I have tried building the same version on Windows 10 using Qt 5.6. QMake run to completion without giving errors. A call to Make gives the following error message:
make -f Makefile.Release
make[1]: Entering directory 'G:/Sources/QScintilla/QScintilla_gpl-2.9.2/Qt4Qt5'
Makefile.Release:822: *** missing separator. Stop.
make[1]: Leaving directory 'G:/Sources/QScintilla/QScintilla_gpl-2.9.2/Qt4Qt5'
makefile:34: recipe for target 'release' failed
make: *** [release] Error 2
What am I doing wrong? How can I solve it?
I ran into similar issues. I eventually got a working 'QScintilla' on my Windows 10 machine as described below.
My PC has the following specifications:
Windows 10, 64-bit OS
Anaconda package installed (Python 3.5)
PyQt5 installed (download the .exe installer from https://www.riverbankcomputing.com/software/pyqt/download5)
STEP 1:
Download the file QScintilla-2.9.2-cp35-none-win_amd64.whl from the site https://pypi.python.org/pypi/QScintilla .
Put the file in the folder:
C: \ .. \ Anaconda \ Scripts \
We will use this .whl file to do the installation of QScintilla.
_
STEP 2:
Open the Windows cmd tool with Administrator privileges! Now type the following command:
> cd "C:\..\Anaconda\Scripts"
This brings the cmd shell to the right spot. Now type the following command:
> pip3 install QScintilla
If all goes well, you get the following message:
> pip3 install QScintilla
Collecting QScintilla
Downloading QScintilla-2.9.2-cp35-none-win_amd64.whl (1.6MB)
100% |################################| 1.6MB 984kB/s
Collecting PyQt5 (from QScintilla)
Downloading PyQt5-5.6-cp35-none-win_amd64.whl (74.7MB)
100% |################################| 74.7MB 23kB/s
Collecting sip (from PyQt5->QScintilla)
Downloading sip-4.18-cp35-none-win_amd64.whl (46kB)
100% |################################| 51kB 5.7MB/s
Installing collected packages: sip, PyQt5, QScintilla
..
Successfully installed PyQt5-5.6 QScintilla-2.9.2 sip-4.18
_
STEP 3:
I did not get the message "Successfully installed" from the first shot. Instead I got the following error message:
PermissionError: [Errno 13] Permission denied: 'C:\..\anaconda\Lib\site-packages\sip.pyd'
Apparently the file sip.pyd sitting in the directory C:\..\anaconda\Lib\site-packages could not be accessed. So I opened another Windows command shell (of course again with Administrator privileges!) and typed the following command:
> icacls "C:\..\Anaconda\Lib\site-packages" /grant "Administrators":(OI)(CI)F /T
This command will give full access rights (read - modify and write) to all "Administrator" users for all the files in the site-packages folder, and all the files in its subfolders. While this command executes, you should get the following messages:
...
processed file: C:\..\Anaconda\Lib\site-packages\__pycache__\readline.cpython-35.pyc
processed file: C:\..\Anaconda\Lib\site-packages\__pycache__\simplegeneric.cpython-35.pyc
processed file: C:\..\Anaconda\Lib\site-packages\__pycache__\six.cpython-35.pyc
processed file: C:\..\Anaconda\Lib\site-packages\__pycache__\test_path.cpython-35.pyc
processed file: C:\..\Anaconda\Lib\site-packages\__pycache__\test_pycosat.cpython-35.pyc
...
Successfully processed 38589 files; Failed processing 0 files
Now you can repeat STEP 2, and it should work!

OSError: No such file or directory: '[virtual environment]/..local/lib/python2.7/site-packages/[package-name]-0.1-py2.7.egg'

I am creating an PYPI application(to install using pip). I built it using command "python setup.py build" and installed in local machine(inside virtual environment. using [ubuntu 12.4]). whenever I try to UN-install using "pip uninstall " it gives the following error.
Message displayed while installing it
Copying fantain_DBC-0.1-py2.7.egg to /home/kavin/.virtualenvs/pavan_pkg/lib/python2.7/site-packages
Adding fantain-DBC 0.1 to easy-install.pth file
Installed /home/kavin/.virtualenvs/pavan_pkg/lib/python2.7/site-packages/fantain_DBC-0.1-py2.7.egg
Processing dependencies for fantain-DBC==0.1
Finished processing dependencies for fantain-DBC==0.1
Blockquote
Error message while uninstalling
OSError: [Errno 2] No such file or directory: '/home/kavin/.virtualenvs/pavan_pkg/local/lib/python2.7/site-packages/fantain_DBC-0.1-py2.7.egg'

Resources