Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install did not build #8

Open
nguy opened this issue Feb 3, 2017 · 2 comments
Open

pip install did not build #8

nguy opened this issue Feb 3, 2017 · 2 comments

Comments

@nguy
Copy link

nguy commented Feb 3, 2017

I tried installing this package through the pip install pytmatrix method. The .so file failed to compile. However, installing from source after cloning the repo worked.

Running MacOSx 10.11.6
pip 8.1.2

@scollis
Copy link

scollis commented Mar 2, 2018

Anyone else having this issue? I am trying to incorporate PyTMatrix into a conda environment with

#export COIN_INSTALL_DIR=/Users/USERNAME/CONDA_DIR/envs/houston
#eg export COIN_INSTALL_DIR=/Users/scollis/anaconda3/envs/houston
name: houston
channels:
  - conda-forge
  - defaults
dependencies:
  - python=3.6
  - cython
  - numpy
  - scipy
  - matplotlib
  - jupyter
  - xarray
  - netcdf4
  - nose
  - basemap
  - trmm_rsl
  - wradlib
  - cartopy
  - coincbc=2.9.9
  - pandas
  - ffmpeg
  - pip:
     - git+https://github.com/jjhelmus/CyLP.git@py3
     - git+https://github.com/ARM-DOE/pyart
     - git+https://github.com/CSU-Radarmet/CSU_RadarTools.git
     - git+https://github.com/jleinonen/pytmatrix
     - git+https://github.com/EVS-ATMOS/arm_sapr_tools
     - git+https://github.com/openradar/TINT

and I get

building 'pytmatrix.fortran_tm.pytmatrix' extension
    error: extension 'pytmatrix.fortran_tm.pytmatrix' has Fortran sources but no Fortran compiler found
    
    ----------------------------------------
Command "/Users/scollis/anaconda3/envs/houston/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/_y/mnq6xy3j6zlgnl_kk55wqm7m2ckps3/T/pip-rs7b1dd3-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/_y/mnq6xy3j6zlgnl_kk55wqm7m2ckps3/T/pip-kk32u15g-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/_y/mnq6xy3j6zlgnl_kk55wqm7m2ckps3/T/pip-rs7b1dd3-build/

CondaValueError: pip returned an error

@josephhardinee
Copy link
Contributor

I would use the conda build for now instead of the pip build. Otherwise you'll need to make sure you have gfortran installed. (I think brew has it under gcc).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants