Cannot run ipython notebook under Enthought Canopy - path

Please help.
I want to run "ipython notebook" using Enthought Python, but I am unable to do so.
I have set Canopy to be my default Python environment.
Using the Canopy command prompt, I can run Python, but not iPython.
(Canopy 64bit) C:\>python
Enthought Canopy Python 2.7.3 | 64-bit | (default, Aug 8 2013, 05:30:12) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.version
'2.7.3 | 64-bit | (default, Aug 8 2013, 05:30:12) [MSC v.1500 64 bit (AMD64)]'
>>> sys.executable
'C:\\Users\\CBrauer.BIGSUR\\AppData\\Local\\Enthought\\Canopy\\User\\Scripts\\python.exe'
>>> quit()
(Canopy 64bit) C:\>
(Canopy 64bit) C:\>ipython
Traceback (most recent call last):
File "C:\Users\CBrauer.BIGSUR\AppData\Local\Enthought\Canopy\User\Scripts\ipython-script.py", line 9,
in <module> load_entry_point('ipython==1.1.0', 'console_scripts', 'ipython')()
File "C:\Users\CBrauer.BIGSUR\AppData\Local\Enthought\Canopy\User\lib\site-packages\pkg_resources.py", line 345,
in load_entry_point return get_distribution(dist).load_entry_point(group, name)
File "C:\Users\CBrauer.BIGSUR\AppData\Local\Enthought\Canopy\User\lib\site-packages\pkg_resources.py", line 2380,
in l oad_entry_point raise ImportError("Entry point %r not found" % ((group,name),))
ImportError: Entry point ('console_scripts', 'ipython') not found
I have installed Enthought Python on a Windows Server 2012 R2, and my PATH is:
(Canopy 64bit) C:\>path
PATH=C:\Users\CBrauer.BIGSUR\AppData\Local\Enthought\Canopy\User\Scripts;
C:\Program Files\Common Files\Microsoft Shared\Microsoft Online Services;
C:\Program Files (x86)\Common Files\Microsoft Shared\Microsoft Online Services;
C:\Program Files (x86)\Intel\iCLS Client\;
C:\Program Files\Intel\iCLS Client\;
C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;
C:\Windows\System32\WindowsPowerShell\v1.0\;
C:\Program Files\Microsoft\Web Platform Installer\;
C:\Program Files (x86)\Microsoft ASP.NET\ASP.NET Web Pages\v1.0\;
C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;
C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;
C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;
C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;
C:\Program Files\Microsoft SQL Server\110\DTS\Binn\;
S:\SQL Server (x86)\110\Tools\Binn\;
S:\SQL Server\110\Tools\Binn\;
S:\SQL Server\110\DTS\Binn\;
S:\SQL Server (x86)\110\Tools\Binn\ManagementStudio\;
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PrivateAssemblies\;
S:\SQL Server (x86)\110\DTS\Binn\;
c:\users\cbrauer.bigsur\appdata\local\enthought\canopy\user\scripts;
c:\program files (x86)\dtn\iqfeed;
c:\users\cbrauer.bigsur\appdata\local\enthought\canopy\system\scripts;
c:\users\cbrauer.bigsur\appdata\local\enthought\canopy\user\scripts;
c:\users\cbrauer.bigsur\appdata\local\enthought\canopy\user
(Canopy 64bit) C:\>
Is this a PATH problem? Please advise.
Charles

I encountered the same problem and was able to solve it by removing ipython and reinstalling it. I used the following commands (enpkg is Enthought's package manager)
enpkg --remove ipython
enpkg ipython
I believe that in my case I my have corrupted it by doing an ipython update through pip immediately after installing canopy.
Disclaimer: the above worked on a unix system. I overlooked that you are on a windows system. A bit of googling suggests enpkg is also available on windows, but I have no experience there.

I had the same problem (I'm using Windows XP). After trying a few different things eventually stumbled upon the 'InterruptKernel' option within the Run menu. It seems to have worked and I can now run python scripts with no problems.

Related

Docker Windows host - Installing nVidia driver on the Linux VM used for Linux containers

I'm trying to use DIGITS from nVidia on my Windows machine without building it myself. I thought it's easier to use Docker (starting to change my mind).
My understanding is that Docker on Windows is basically using a Linux VM to actually run Docker.. so, the Docker interface on host Windows is simply interacting with the Docker installed on the Linux VM which will then host a guest Linux container to run DIGITS.
When I try to run the DIGITS container, I get the following error:
============
== DIGITS ==
============
NVIDIA Release 18.05 (build 425957)
Container image Copyright (c) 2018, NVIDIA CORPORATION. All rights reserved.
DIGITS Copyright (c) 2014-2017, NVIDIA CORPORATION. All rights reserved.
Caffe Copyright (c) 2014, 2015, The Regents of the University of California (Regents). All rights reserved.
Torch Copyright (c) 2016, Soumith Chintala, Ronan Collobert, Koray Kavukcuoglu, Clement Farabet. All rights reserved.
TensorFlow Copyright (c) 2017, The TensorFlow Authors. All rights reserved.
Various files include modifications (c) NVIDIA CORPORATION. All rights reserved.
NVIDIA modifications are covered by the license terms that apply to the underlying project or file.
WARNING: The NVIDIA Driver was not detected. GPU functionality will not be available.
Use 'nvidia-docker run' to start this container; see
https://github.com/NVIDIA/nvidia-docker/wiki/nvidia-docker .
___ ___ ___ ___ _____ ___
| \_ _/ __|_ _|_ _/ __|
| |) | | (_ || | | | \__ \
|___/___\___|___| |_| |___/ 6.1.1
Did you forget to "make pycaffe"?
A valid Caffe installation was not found on your system.
Use the envvar CAFFE_ROOT to indicate a valid installation.
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/opt/digits/digits/__main__.py", line 70, in <module>
main()
File "/opt/digits/digits/__main__.py", line 53, in main
import digits.config
File "/opt/digits/digits/config/__init__.py", line 7, in <module>
from . import ( # noqa
File "/opt/digits/digits/config/caffe.py", line 230, in <module>
executable, version, flavor = load_from_path()
File "/opt/digits/digits/config/caffe.py", line 57, in load_from_path
import_pycaffe()
File "/opt/digits/digits/config/caffe.py", line 126, in import_pycaffe
import caffe
File "/usr/local/python/caffe/__init__.py", line 1, in <module>
from .pycaffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, RMSPropSolver, \
File "/usr/local/python/caffe/pycaffe.py", line 13, in <module>
from ._caffe import Net, SGDSolver, NesterovSolver, AdaGradSolver, \
ImportError: libnvidia-ml.so.1: cannot open shared object file: No such file or directory
DIGITS docker image needs nVidia drivers to be installed on the host AFAIK. I think the error here means the drivers are not installed. However, I don't know how to install nVidia drivers on the Linux host since that's simply a VM used by Docker interface on Windows.
Is there a way to access that Linux VM and install nVidia drivers on it?

Unable to knit pdf from Rmardown from Rstudio in Windows 10 PC

I created a new Rmd file in the latest R and Rstudio version, and with the complete version of MiKTeX installed. In my windows 10 machine.
When I tried to knit it I got the following error
! LaTeX Error: File `fancyvrb.sty' not found.
Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)
Enter file name:
! Emergency stop.
<read *>
l.34 \newcommand
pandoc.exe: Error producing PDF
Error: pandoc document conversion failed with error 43
Además: Warning message:
comando ejecutado '"C:/Program Files/RStudio/bin/pandoc/pandoc" +RTS -K512m -RTS pdfprueba.utf8.md --to latex --from markdown+autolink_bare_uris+ascii_identifiers+tex_math_single_backslash --output pdfprueba.pdf --template "C:\Users\karin\Documents\R\win-library\3.3\rmarkdown\rmd\latex\default-1.17.0.2.tex" --highlight-style tango --latex-engine pdflatex --variable graphics=yes --variable "geometry:margin=1in"' tiene estatus 43
Ejecución interrumpida
I suspected that it could have been that I didn't have the package fancyvrb in MiKTeX , so I followed these instructions but I still get the same error.
Try the same using
Miktex package manager (admin)
Under > repository check that your package repository is up to date.
In the name box type the name of your package
Then filter
then add your package
To test if your package is installed in dos CMD type
kpsewhich fancyvrb.sty. you should be able to see the path to your package.
Microsoft Windows [version 10.0.15063]
(c) 2017 Microsoft Corporation. Tous droits réservés.
C:\>kpsewhich fancyvrb.sty
C:/Users/me/AppData/Roaming/MiKTeX/2.9/tex/latex/fancyvrb/fancyvrb.sty

Build agent no DotNetFramework MSBuild and VSTest capability in Team Foundation Server 2017

Since a while I discovered some of my buildagent doesn't have the necessary capabilities anymore to build a .NET Framwork web application. When I installed these build agents a few months ago it worked perfect. For some misterious reasons these capabilities went away. Since a week we have VS2017 installed on that machine. A reboot of the machine where the build agent is running doesn't help. Even we rebooted the Team Foundation Server machine. Can any help me with this problem?
Please try below items to let the agent to identify the capabilities:
Restart the Agent service to identify the capabilities
Add User Capabilities manually:
Settings >> AgentPools >> Select the pool >> select the specific Agent >> Capabilities >> Add capability under USER CAPABILITIES
Register capabilities to the machine following below steps, thus all the agents will automatically pick up the capabilities.
Control Panel >> System >> Advanced System Settings >> Environment Variables >> New System Variable >> Enter the variable name and value listed below >> OK >>
After doing so, restart the agents services will have each of them automatically pick up new capabilities.
Below capabilities for your reference (based on your environment and installed version):
DotNetFramework C:\Windows\Microsoft.NET\Framework64\v4.0.30319
DotNetFramework_4.6.1 C:\Windows\Microsoft.NET\Framework\v4.0.30319
DotNetFramework_4.6.1_x64 C:\Windows\Microsoft.NET\Framework64\v4.0.30319
MSBuild C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\
MSBuild_15.0 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\
MSBuild_15.0_x64 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\amd64\
VSTest C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow
VSTest_15.0 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TestWindow
VisualStudio C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
VisualStudio_15.0 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\
VisualStudio_IDE_15.0 C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\
I followed your step regarding adding the settings as user capalbility. The build agents pick up the build task now. But when the solution was build an error is returned from the build task. Exit code -1073741502 returned from process: file name 'C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe', arguments '-NoLogo -Sta -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". ([scriptblock]::Create('if (!$PSHOME) { $null = Get-Item -LiteralPath ''variable:PSHOME'' } else { Import-Module -Name ([System.IO.Path]::Combine($PSHOME, ''Modules\Microsoft.PowerShell.Management\Microsoft.PowerShell.Management.psd1'')) ; Import-Module -Name ([System.IO.Path]::Combine($PSHOME, ''Modules\Microsoft.PowerShell.Utility\Microsoft.PowerShell.Utility.psd1'')) }')) 2>&1 | ForEach-Object { Write-Verbose $_.Exception.Message -Verbose } ; Import-Module -Name 'C:\AgentV2_work_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\ps_modules\VstsTaskSdk\VstsTaskSdk.psd1' -ArgumentList #{ NonInteractive = $true } -ErrorAction Stop ; $VerbosePreference = 'SilentlyContinue' ; $DebugPreference = 'SilentlyContinue' ; Invoke-VstsTaskScript -ScriptBlock ([scriptblock]::Create('. ''C:\AgentV2_work_tasks\VSBuild_71a9a2d3-a98a-4caa-96ab-affca411ecda\1.119.0\VSBuild.ps1'''))"'.

Where to find the Neo4j shell in v2.0.0-M06

I want to use the Neo4j shell. With the V1.9 release, it was in the bin folder of the installation, but since I upgraded to v2.0.0-M06, I can no longer find it. The bin folder only contains the following files ...
Directory of C:\Program Files\Neo4j Community\bin
16/10/2013 15:38 <DIR> .
16/10/2013 15:38 <DIR> ..
16/10/2013 15:38 37 neo4j-community-user-vmoptions.loc
14/10/2013 09:38 491,016 neo4j-community.exe
16/10/2013 15:38 242 neo4j-community.vmoptions
14/10/2013 09:37 39,564,808 neo4j-desktop-2.0.0-M06.jar
4 File(s) 40,056,103 bytes
2 Dir(s) 16,272,773,120 bytes free
I know I can use the shell in the web UI, but I want to pipe input and output, and I can't figure how to do that except with the stand-alone shell. Any ideas?
I have found the answer - in another question - How to install Neo4j 2.0+ as a windows service .
By downloading the zip file rather than the windows installer, I get all the .bat files, including Neo4jshell.bat. Problem solved!
Try this:
cd C:\Program Files\Neo4j Community
jre\bin\java -cp bin\neo4j-desktop-1.9.4.jar org.neo4j.shell.StartClient [--file /your/file/of/stuff.cyp]

%PATH% on Windows 2008 Server actually not working

As you can see below, %AppData%\npm is added in the system Path variable. I've also tried adding it to the User Path variable. The file grunt.cmd exists in the directory, but only works if I specify it with an absolute path. AKA, path does not work.
C:\Users\TeamCity>echo %path%
%AppData%\npm;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows
\System32\WindowsPowerShell\v1.0\;c:\Program Files (x86)\Microsoft SQL Server\10
0\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program F
iles\Microsoft SQL Server\100\DTS\Binn\;c:\Program Files (x86)\Microsoft SQL Ser
ver\100\Tools\Binn\VSShell\Common7\IDE\;c:\Program Files (x86)\Microsoft SQL Ser
ver\100\DTS\Binn\;C:\Program Files\Microsoft\Web Platform Installer\;C:\Program
Files\nodejs\
C:\Users\TeamCity>dir %appdata%\npm
Volume in drive C has no label.
Volume Serial Number is B845-1135
Directory of C:\Users\TeamCity\AppData\Roaming\npm
05/29/2013 03:14 AM <DIR> .
05/29/2013 03:14 AM <DIR> ..
05/29/2013 03:14 AM 298 grunt
05/29/2013 03:14 AM 159 grunt.cmd
05/29/2013 03:13 AM <DIR> node_modules
2 File(s) 457 bytes
3 Dir(s) 23,690,498,048 bytes free
C:\Users\TeamCity>grunt
'grunt' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\TeamCity>%appdata%\npm\grunt
grunt-cli: The grunt command line interface. (v0.1.9)
Running on:
Windows Server 2008 R2 Datacenter
Service Pack 1
64-bit
I don't think you can defer variable expansion in the path. What's in the path is used as is, it doesn't get re-interpreted during a search.
In fact, you must have worked really hard to get that in as %AppData% since you would need to do something like:
path=^%AppData^%\npm;%path%
If you were to just use:
path=%AppData%\npm;%path%
you'd find the actual path would be substituted, so that the path becomes:
C:\Users\TeamCity\AppData\Roaming\npm;C:\Windows\system32; ...
Interestingly enough, a last-ditch effort of "turning it off and on again" actually worked. Alternatively, you can copy the whole path after you added it and type in cmd:
> SET PATH=
and paste your path.

Resources