Install milk under user mode failed, Linux and Windows environment

145 views
Skip to first unread message

Furong Peng

unread,
Aug 19, 2013, 11:55:10 PM8/19/13
to milk-...@googlegroups.com
Hi 
I tried to use easy_install milk and get following error:

Linux Environment:
<
easy_install milk
Searching for milk
Best match: milk 0.5.3
Processing milk-0.5.3.tar.gz
Running milk-0.5.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-kyqpRI/milk-0.5.3/egg-dist-tmp-_8PYZn
error: SandboxViolation: open('/dev/null', 'w') {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
>


windows Environment;
easy_install.exe milk
Searching for milk
Best match: milk 0.5.3
Processing milk-0.5.3.tar.gz
Running milk-0.5.3\setup.py -q bdist_egg --dist-dir c:\users\117238\appdata\local\temp\easy_install-lpwfdj\milk-0.5.3\egg-dist-tmp-f8drdb
Missing compiler_cxx fix for MSVCCompiler
Found executable C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\cl.exe
Found executable C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\BIN\amd64\link.exe
cl : Command line warning D9002 : ignoring unknown option '-std=c++0x'
_lasso.cpp
C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\INCLUDE\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
milk/supervised/_lasso.cpp(7) : fatal error C1083: Cannot open include file: 'random': No such file or directory
error: Setup script exited with error: Command "C:\Program Files (x86)\Microsoft
 Visual Studio 9.0\VC\BIN\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -IC:
\Python27\lib\site-packages\numpy\core\include -IC:\Python27\include -IC:\Python
27\PC /Tpmilk/supervised/_lasso.cpp /Fobuild\temp.win-amd64-2.7\Release\milk/sup
ervised/_lasso.obj -std=c++0x /Zm1000 /Zm1000" failed with exit status 2
C:\Python27\lib\site-packages\numpy\distutils\misc_util.py:252: RuntimeWarning:
Parent module 'numpy.distutils' not found while handling absolute import
  from numpy.distutils import log


Luis Pedro Coelho

unread,
Aug 20, 2013, 2:51:50 AM8/20/13
to milk-...@googlegroups.com
Hi,

For Windows, I recommend you try one of these pre-built binary packages:

http://www.lfd.uci.edu/~gohlke/pythonlibs/#milk

For Linux, I don't really understand the error. You may want to download
the package source directly from:

https://pypi.python.org/packages/source/m/milk/milk-0.5.3.tar.gz

unpack it, and run "python setup.py install" inside milk-0.5.3

HTH
Luis
--
Luis Pedro Coelho | EMBL | http://luispedro.org

Recent stuff:
http://dx.doi.org/10.5334/jors.ac
http://bit.ly/coelho2013-video
http://bit.ly/general-subcellular-determination

On 08/20/2013 03:55 AM, Furong Peng wrote:
> Hi
> I tried to use easy_install milk and get following error:
>
> *Linux Environment:*
> <
> easy_install milk
> Searching for milk
> Reading http://pypi.python.org/simple/milk/
> Best match: milk 0.5.3
> Downloading
> https://pypi.python.org/packages/source/m/milk/milk-0.5.3.tar.gz#md5=e0b7db663b29f050fb47bb49eb8d7411
> Processing milk-0.5.3.tar.gz
> Running milk-0.5.3/setup.py -q bdist_egg --dist-dir
> /tmp/easy_install-kyqpRI/milk-0.5.3/egg-dist-tmp-_8PYZn
> error: SandboxViolation: open('/dev/null', 'w') {}
>
> The package setup script has attempted to modify files on your system
> that are not within the EasyInstall build area, and has been aborted.
>
> This package cannot be safely installed by EasyInstall, and may not
> support alternate installation locations even if you run its setup
> script by hand. Please inform the package's author and the EasyInstall
> maintainers to find out if a fix or workaround is available.
> >
>
>
> *windows Environment;*
> --
> You received this message because you are subscribed to the Google
> Groups "milk users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to milk-users+...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.


Furong Peng

unread,
Aug 20, 2013, 6:58:12 PM8/20/13
to milk-...@googlegroups.com
Hi Luis,

Thanks for your reply.

On the linux, it can be installed by source.  My problem may be due to easy_install.

The windows pre-built package should work for me.  I will send a request to my IT service for software installation.

Cheers,
Furong
Reply all
Reply to author
Forward
0 new messages