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

[python #WQS-960149]: metpy on centos 7



Hi!

Thanks for reaching out to us. I was not able to recreate this issue on CentOS 
7.6 1907 on my Windows Subsystem for Linux. I believe the quickest way to 
resolve this for you would be for you to update the python package `setuptools` 
via pip with

  pip install -U setuptools

to allow it to play nicely with newer install specifications. You might need to 
upgrade pip itself this way as well. Let me know if this doesn't work.

Also, just for your information: MetPy no longer supports Python 2 as of 0.12, 
so this will install the older MetPy 0.11 unless you are able to 
install/upgrade to Python 3! To handle all of the above issues in one swipe, we 
here suggest using the conda python package manager 
(https://docs.conda.io/projects/conda/en/latest/user-guide/install/) to install 
and manage Python 3 and MetPy; doing so would also likely fix this pip issue.

Either way, I hope this helps, and don't hesitate to follow up with that 
logfile if we need to dive deeper. Thanks!


All the best,

Drew


> Hello,
> 
> I am having trouble installing metpy on Centos 7, and I can’t seem to
> find any documentation at all.  pip fails with the output below.  I
> can send the logfile if needed.
> 
> =====
> ERROR: Command errored out with exit status 1:
> command: /usr/bin/python2 -c 'import sys, setuptools, tokenize;
> sys.argv[0] = '"'"'/tmp/pip-install-LTtBKP/pooch/setup.py'"'"';
> __file__='"'"'/tmp/pip-install-LTtBKP/pooch/setup.py'"'"';f=getattr(tokenize,
> '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"',
> '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))'
> egg_info --egg-base /tmp/pip-pip-egg-info-jhmmQb
> cwd: /tmp/pip-install-LTtBKP/pooch/
> Complete output (3 lines):
> /usr/lib64/python2.7/distutils/dist.py:267: UserWarning: Unknown
> distribution option: 'python_requires'
> warnings.warn(msg)
> error in pooch setup command: 'install_requires' must be a string
> or list of strings containing valid project/version requirement
> specifiers
> ----------------------------------------
> ERROR: Command errored out with exit status 1: python setup.py
> egg_info Check the logs for full command output.
> ======================
> 



Ticket Details
===================
Ticket ID: WQS-960149
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.