cedadev / jaspy-manager

Conda environments for JASMIN (and beyond)
Other
7 stars 3 forks source link

Error parsing URL with "!" (exclamation mark) in it #30

Closed agstephens closed 2 years ago

agstephens commented 4 years ago

Error when trying install a JASPY env:

CondaValueError: could not parse 'http://dist.ceda.ac.uk/jaspy/jaspy3.7/m3-4.7.10/linux-64/x264-1\!152.20180806-h14c3975_0.tar.bz2' in: ./bin/../environments-ceda-jaspy-envs/py3.7/m3-4.7.10/jaspy3.7-m3-4.7.10-r20191126/channel-urls.txt

Can hack a fix in conda library:

$ grep -n -A 4 "if line.find" /usr/local/jaspy/jaspy/miniconda_envs/jaspy3.7/m3-4.7.10/lib/python3.7/site-packages/conda/cli/common.py
141:                if line.find('x264-1!152') > -1:
142-                    print(line)
143-                    spec = line
144-                else:
145-                    spec = spec_from_line(line)
agstephens commented 4 years ago

Note, might be a faulty package name that just needs the "!" removing.

agstephens commented 4 years ago
                if line.find('x264-1!152') > -1:
                    print(line)
                    spec = line
                else:
                    spec = spec_from_line(line)
agstephens commented 2 years ago

Historical