Re: Macports py26-numpy Issue on OS X Mavericks

2013-11-23 Thread david laxer
Removing the 'ancient' OsX SDK (and /Developer directory) solved the problem.

Many Thanks!




On Saturday, November 23, 2013 11:43 AM, Ryan Schmidt ryandes...@macports.org 
wrote:
 

On Nov 23, 2013, at 10:07, david laxer wrote:

 Now, I'm getting errors building a python package (e.g. - milk) with 
 easy_install (and in PyCharm).
 
 Could this be related to the MacPorts problem?
 
 Thanks in advance!
 
 sudo 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
 Writing /tmp/easy_install-z1VbO9/milk-0.5.3/setup.cfg
 Running milk-0.5.3/setup.py -q bdist_egg --dist-dir 
 /tmp/easy_install-z1VbO9/milk-0.5.3/egg-dist-tmp-5EEIYL
 In file included from milk/supervised/_perceptron.cpp:4:
 In file included from 
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/iostream:40:
 In file included from 
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/istream:156:
 In file included from 
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/ostream:132:
 In file included from 
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/locale:187:
 In file included from 
 /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/cstdlib:86:
 In file included from /Developer/SDKs/MacOSX10.5.sdk/usr/include/stdlib.h:61:

You're running Mavericks, so the oldest OS X SDK you should have is for OS X 
v10.8. In fact the entire /Developer directory should no longer exist as of 
Xcode 4.3. Depending on how old the version of OS X was that you upgraded from, 
perhaps this did not get cleaned up properly. I’m guessing you upgraded from 
Snow Leopard?

You should probably run the devtools uninstallation script, if it still exists:

sudo /Developer/Library/uninstall-devtools --mode=all

Then, if it still remains, delete the /Developer folder.

The uninstall script may have deleted parts of the new Xcode command line tools 
that you still need, so you should reinstall the Xcode command line tools.

Since Xcode itself is in a different location now than it was then, the old 
uninstall script shouldn’t have touched it and you shouldn’t need to reinstall 
it.___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users


Re: Macports py26-numpy Issue on OS X Mavericks

2013-11-22 Thread david laxer
I did this:

  701  sudo port -v selfupdate
  703  sudo  port upgrade outdated

Also, this:

  733  port -qv installed  myports.txt
  734  sudo port -f uninstall installed
  735  sudo port clean all

and this:

sudo ./restore_ports.tcl myports.txt

 Why does 
/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/numpy/core/_methods.py
 already exist if it does not belong to a port?

I've done Ruby work in the past.  Also, Boost installation.   Could Brew cause 
this?




On Friday, November 22, 2013 1:30 PM, Ryan Schmidt ryandes...@macports.org 
wrote:
 
Remember to Reply All so this discussion remains on the mailing list and does 
not move to private email.



On Nov 22, 2013, at 15:26, david laxer wrote:

 Hi Ryan,
 
 I tried this:
 
 David-Laxers-MacBook-Pro:~ davidlaxer$ sudo port clean py26-numpy
 Password:
 ---  Cleaning py26-numpy
 David-Laxers-MacBook-Pro:~ davidlaxer$ sudo port clean python26
 ---  Cleaning python26
 David-Laxers-MacBook-Pro:~ davidlaxer$ 
 
 Next, 
 
 David-Laxers-MacBook-Pro:~ davidlaxer$ sudo ./restore_ports.tcl myports.txt
 Warning: Skipping ncursesw (not in the ports tree)
 ---  Cleaning bzip2
 ---  Cleaning cctools-headers
 ---  Cleaning db_select
 ---  Cleaning expat
 ---  Cleaning expat
 ---  Cleaning fftw-3
 ---  Cleaning fftw-3
 ---  Cleaning gcc_select
 ---  Cleaning gmp
 ---  Cleaning gmp
 ---  Cleaning gperf
 ---  Cleaning gperf
 ---  Cleaning icu
 ---  Cleaning icu
 ---  Cleaning libffi
 ---  Cleaning libiconv
 ---  Cleaning libiconv
 ---  Cleaning llvm_select
 ---  Cleaning m4
 ---  Cleaning ncurses
 ---  Cleaning ncurses
 ---  Cleaning ncurses
 ---  Cleaning nosetests_select
 ---  Cleaning nspr
 ---  Cleaning nspr
 ---  Computing dependencies for pkgconfig
 ---  Cleaning pkgconfig
 ---  Computing dependencies for pkgconfig
 ---  Cleaning pkgconfig
 ---  Configuring py26-distribute
 Error: py26-distribute is obsolete, please install py26-setuptools instead.
 Error: org.macports.configure for port py26-distribute returned: obsolete port
 Please see the log file for port py26-distribute for details:
     
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-distribute/py26-distribute/main.log

 ---  Cleaning python_select
 ---  Cleaning python_select
 ---  Computing dependencies for readline
 ---  Cleaning readline
 ---  Computing dependencies for readline
 ---  Cleaning readline
 ---  Computing dependencies for spidermonkey
 ---  Cleaning spidermonkey
 ---  Computing dependencies for spidermonkey185
 ---  Cleaning spidermonkey185
 ---  Cleaning tcl
 ---  Cleaning tcl
 ---  Cleaning tcp_wrappers
 ---  Cleaning xorg-bigreqsproto
 ---  Cleaning xorg-bigreqsproto
 ---  Cleaning xorg-inputproto
 ---  Cleaning xorg-inputproto
 ---  Cleaning xorg-kbproto
 ---  Cleaning xorg-kbproto
 ---  Cleaning xorg-libpthread-stubs
 ---  Cleaning xorg-renderproto
 ---  Cleaning xorg-scrnsaverproto
 ---  Cleaning xorg-util-macros
 ---  Cleaning xorg-util-macros
 ---  Cleaning xorg-xcmiscproto
 ---  Cleaning xorg-xcmiscproto
 ---  Cleaning xorg-xextproto
 ---  Cleaning xorg-xextproto
 ---  Cleaning xorg-xf86bigfontproto
 ---  Cleaning xorg-xproto
 ---  Cleaning xorg-xproto
 ---  Cleaning xorg-xtrans
 ---  Cleaning xorg-xtrans
 ---  Computing dependencies for dbus
 ---  Cleaning dbus
 ---  Computing dependencies for dbus
 ---  Cleaning dbus
 ---  Computing dependencies for gettext
 ---  Cleaning gettext
 ---  Computing dependencies for gettext
 ---  Cleaning gettext
 ---  Computing dependencies for libedit
 ---  Cleaning libedit
 ---  Computing dependencies for libidn
 ---  Cleaning libidn
 ---  Computing dependencies for libidn
 ---  Cleaning libidn
 ---  Computing dependencies for sqlite3
 ---  Cleaning sqlite3
 ---  Computing dependencies for sqlite3
 ---  Cleaning sqlite3
 ---  Computing dependencies for xorg-libXau
 ---  Cleaning xorg-libXau
 ---  Computing dependencies for xorg-libXau
 ---  Cleaning xorg-libXau
 ---  Cleaning xorg-libXdmcp
 ---  Cleaning xorg-libXdmcp
 ---  Computing dependencies for xz
 ---  Cleaning xz
 ---  Computing dependencies for xz
 ---  Cleaning xz
 ---  Computing dependencies for yasm
 ---  Cleaning yasm
 ---  Cleaning zlib
 ---  Cleaning zlib
 ---  Computing dependencies for gawk
 ---  Cleaning gawk
 ---  Computing dependencies for gawk
 ---  Cleaning gawk
 ---  Computing dependencies for gdbm
 ---  Cleaning gdbm
 ---  Computing dependencies for gdbm
 ---  Cleaning gdbm
 ---  Computing dependencies for glpk
 ---  Cleaning glpk
 ---  Computing dependencies for libpng
 ---  Cleaning libpng
 ---  Computing dependencies for libpng
 ---  Cleaning libpng
 ---  Computing dependencies for libxml2
 ---  Cleaning libxml2
 ---  Computing dependencies for libxml2
 ---  Cleaning libxml2
 ---  Computing dependencies for mpfr
 ---  Cleaning mpfr
 ---  Computing dependencies for mpfr
 ---  Cleaning mpfr
 ---  Computing dependencies for openssl
 ---  Cleaning openssl
 ---  Computing

Macports py26-numpy Issue on OS X Mavericks

2013-11-21 Thread david laxer
Hi,

I’m running MacPorts 2.2.1 on OSX Mavericks on a Mac and I’m having trouble 
with py26-numpy.

I tried different commands:


  504  sudo port clean py26-numpy
  505  sudo port selfupdate
  506  sudo port install py26-numpy [+variants]
  508  sudo port -f activate py26-numpy
  509  sudo port -f activate py26-numpy variants
  513  curl -O 
https://svn.macports.org/repository/macports/contrib/restore_ports/restore_ports.tcl
  514  chmod +x restore_ports.tcl
  515  sudo ./restore_ports.tcl myports.txt
  525  sudo port install py26-numpy [+variants]
  526  history
  527  sudo port clean py26-numpy


However, I keep getting various errors:

…

---  Computing dependencies for py26-matplotlib
---  Dependencies to be installed: py26-numpy
Error: Requested variants  do not match original selection +universal.
Please use the same variants again, perform 'port clean py26-numpy' or specify 
the force option (-f).
Error: Failed to install py26-numpy
Please see the log file for port py26-numpy for details:
    
/opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_python_py-numpy/py26-numpy/main.log
Error: The following dependencies were not installed: py26-numpy



…

---  Computing dependencies for isl
---  Cleaning isl
---  Computing dependencies for ld64
---  Cleaning ld64
Error: Requested variants  do not match original selection +universal.
Please use the same variants again, perform 'port clean python26' or specify 
the force option (-f).
Error: Requested variants  do not match original selection +universal.
Please use the same variants again, perform 'port clean python26' or specify 
the force option (-f).
can't create directory 
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27:
 permission denied
    while executing
file mkdir $workpath/.home
    (procedure open_statefile line 29)
    invoked from within
open_statefile
    (procedure check_variants line 29)
    invoked from within
check_variants install
    invoked from within
$workername eval check_variants $target
    (procedure mportexec line 7)
    invoked from within
mportexec $workername $install_target
Unable to execute target 'install' for port 'python27': can't create directory 
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python27:
 permission denied
    while executing
install_ports $operationList
    (file ./restore_ports.tcl line 269)

Any ideas?

Thanks in advance.

Best,
-Dave
___
macports-users mailing list
macports-users@lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-users