[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[python #SOK-732534]: Re: Help? conda envirnoment.yml won't install a locally installed package



Brian,

Glad to hear it's working. FYI, you can install git from conda-forge. I'm not 
sure if having it in the environment file will make it work for "conda env 
create" or not. It might need to be installed in the main (root) conda 
environment instead. Just an option maybe if you prefer not to bother with 
Xcode.

Ryan

> Correct, I was lacking git on this mac.
> 
> I had to install Xcode tools.
> Gawd what a behemoth of unwanted software just to have command-line git work 
> !!
> 
> But now the environment builds fine.
> 
> 
> Sandboxes are now tolerable to me. Maybe I’m even glimpsing the wisdom. I 
> just need a tattoo that says “source activate”.
> Brian
> 
> 
> 
> On Jan 30, 2018, at 5:06 PM, Unidata Python Support 
> <address@hidden<mailto:address@hidden>> wrote:
> 
> I don't think git is working properly. On the machine with the error, what 
> happens if you just try to run "git" at the command line?
> 
> FYI, it worked fine on my mac, but my git is working properly.
> 
> Ryan
> 
> Ryan,
> That doesn’t work for me, here is the error.
> 
> Do we need to tell students with Macs to install some tools?
> 
> 
> 
> /Users/bem/GitHub 4:03:20pm: conda env update -f ATMOcanes_environment.yml
> 
> Fetching package metadata .............
> Solving package specifications: .
> Collecting git+https://github.com/labjack/LabJackPython.git
> Cloning 
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flabjack%2FLabJackPython.git&data=02%7C01%7Cbmapes%40rsmas.miami.edu%7Cdafa04d1411c410499ef08d5682dbb77%7C2a144b72f23942d48c0e6f0f17c48e33%7C0%7C0%7C636529467995377379&sdata=0Kpl6WCItOKQReZESYnnGT1fFoQjs0rByL55r%2Flt%2BWI%3D&reserved=0
>  to 
> /private/var/folders/_l/h12pwyfd18g71lb_2xh4_0240000gr/T/pip-tgfvu5r2-build
> xcrun: error: invalid active developer path 
> (/Library/Developer/CommandLineTools), missing xcrun at: 
> /Library/Developer/CommandLineTools/usr/bin/xcrun
> Command "git clone -q 
> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flabjack%2FLabJackPython.git&data=02%7C01%7Cbmapes%40rsmas.miami.edu%7Cdafa04d1411c410499ef08d5682dbb77%7C2a144b72f23942d48c0e6f0f17c48e33%7C0%7C0%7C636529467995377379&sdata=0Kpl6WCItOKQReZESYnnGT1fFoQjs0rByL55r%2Flt%2BWI%3D&reserved=0
>  /private/var/folders/_l/h12pwyfd18g71lb_2xh4_0240000gr/T/pip-tgfvu5r2-build" 
> failed with error code 1 in None
> 
> CondaValueError: pip returned an error.
> 
> 
> 
> 
> On Jan 30, 2018, at 3:59 PM, Ryan May 
> <address@hidden<mailto:address@hidden><mailto:address@hidden>> wrote:
> 
> So you need to add to the environment file a line with "- pip:", and under 
> that, rather than a package name to install with pip, a path to a git repo. 
> For example, I modified our workshop environment:
> 
> name: unidata-workshop
> channels:
> - conda-forge
> dependencies:
> - python=3
> - numpy
> - matplotlib
> - cartopy
> - jupyter
> - netcdf4
> - owslib
> - metpy
> - pint
> - shapely<=1.5.17
> - siphon
> - xarray
> - pip
> - ffmpeg
> - pytest
> - pip:
> - python-awips
> - mpldatacursor
> - 
> git+https://github.com/labjack/LabJackPython.git<https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Flabjack%2FLabJackPython.git&data=02%7C01%7Cbmapes%40rsmas.miami.edu%7C9dca3f2d5a014e3207ca08d5682466ad%7C2a144b72f23942d48c0e6f0f17c48e33%7C0%7C0%7C636529427918548621&sdata=UGG28pd1IfaRUyYlhBEnv%2BpMyRmfULRT1GtnQz3dXDk%3D&reserved=0>
> 
> That worked fine for me just now. If you need to follow up, can you send to 
> address@hidden<mailto:address@hidden><mailto:address@hidden>? That helps us 
> with tracking support effort (NSF, etc.)
> 
> Thanks!
> 
> Ryan
> 
> 
> On Tue, Jan 30, 2018 at 1:54 PM, Mapes, Brian Earle 
> <address@hidden<mailto:address@hidden><mailto:address@hidden>> wrote:
> Nope.
> 
> 
> On Jan 30, 2018, at 3:48 PM, Mapes, Brian Earle 
> <address@hidden<mailto:address@hidden><mailto:address@hidden>> wrote:
> 
> So I tried doing pip install from within the ATM303 environment, then
> conda export
> 
> But that’s long and hairy and more specific than I want to freeze our 
> students into (forever).
> Maybe I can just edit that down?
> 
> 
> Ticket Details
> ===================
> Ticket ID: SOK-732534
> Department: Support Python
> Priority: Low
> Status: Closed
> ===================
> NOTE: All email exchanges with Unidata User Support are recorded in the 
> Unidata inquiry tracking system and then made publicly available through the 
> web.  If you do not want to have your interactions made available in this 
> way, you must let us know in each email you send to us.
> 
> 
> 
> *********************************************
> Brian Mapes, Professor
> Department of Atmospheric Sciences
> Meteorology and Physical Oceanography Program
> RSMAS, University of Miami
> 4600 Rickenbacker Causeway
> Miami, FL 33149-1031
> 
> phone: (305) 421-4275
> fax: (305) 421-4696
> email: address@hidden<mailto:address@hidden>
> Web: http://www.rsmas.miami.edu/users/bmapes/
> **********************************************
> 
> 
> 
> 

Ticket Details
===================
Ticket ID: SOK-732534
Department: Support Python
Priority: Low
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.