From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | André Cardoso <andrekrieg(at)gmail(dot)com>, pgAdmin Support <pgadmin-support(at)postgresql(dot)org> |
Subject: | Re: pgAdmin4 - cannot run on Debian 8 |
Date: | 2016-10-24 13:50:42 |
Message-ID: | CA+OCxoyG8+N-LQ+UaRt8n9qh67S36hCbmyZHUs3yU_jnztT51w@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgadmin-support |
Please keep the list CC'd.
On Mon, Oct 24, 2016 at 2:42 PM, André Cardoso <andrekrieg(at)gmail(dot)com> wrote:
> root(at)mydebian8:/home/i1854609/pgadmin4-1.0# pip install -r
> requirements_py2.txt
> Exception:
> Traceback (most recent call last):
> File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in
> main
> status = self.run(options, args)
> File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 274,
> in run
> for req in parse_requirements(filename, finder=finder, options=options,
> session=session):
> File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1632, in
> parse_requirements
> req = InstallRequirement.from_line(line, comes_from,
> prereleases=getattr(options, "pre", None))
> File "/usr/lib/python2.7/dist-packages/pip/req.py", line 173, in from_line
> return cls(req, comes_from, url=url, prereleases=prereleases)
> File "/usr/lib/python2.7/dist-packages/pip/req.py", line 71, in __init__
> req = pkg_resources.Requirement.parse(req)
> File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2793, in
> parse
> reqs = list(parse_requirements(s))
> File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2721, in
> parse_requirements
> "version spec")
> File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2686, in
> scan_list
> raise ValueError(msg, line, "at", line[p:])
> ValueError: ('Expected version spec in', "ordereddict; python_version <
> '2.7'", 'at', "; python_version < '2.7'")
I'd guess you have an old version of pip that doesn't understand the
environment marker on the very last line of the file. I would either:
- Upgrade pip
- Edit the requirements file and remove the last line if you have
Python 2.7 or remove everything from and including the ; onwards if
you have Python 2.6. Then, re-run pip install -r requirements_py2.txt.
--
Dave Page
Blog: http://pgsnake.blogspot.com
Twitter: @pgsnake
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise PostgreSQL Company
From | Date | Subject | |
---|---|---|---|
Next Message | André Cardoso | 2016-10-24 15:01:35 | Re: pgAdmin4 - cannot run on Debian 8 |
Previous Message | Dave Page | 2016-10-24 13:35:47 | Re: pgAdmin4 - cannot run on Debian 8 |