Processing dependencies for tg.devtools
error: Installed distribution WebOb 1.0.8 conflicts with requirement
WebOb>=1.1.1
Any hints?
We are already working at fixing this, in the mean time you can work
around this issue by installing TG with:
easy_install -i http://www.turbogears.org/2.1/downloads/current/index
tg.devtools
> --
> You received this message because you are subscribed to the Google Groups "TurboGears" group.
> To post to this group, send email to turbo...@googlegroups.com.
> To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
>
On Dec 15, 1:35 pm, Alessandro Molina <alessandro.mol...@gmail.com>
wrote:
> I'm sorry for the inconvenience, this is caused by the fact that the
> day after the release of TG2.1.4, Pylons 1.0.1 got released and the
> two require a different version of WebOb.
>
> We are already working at fixing this, in the mean time you can work
> around this issue by installing TG with:
>
> easy_install -ihttp://www.turbogears.org/2.1/downloads/current/index
By the way, that's actually not a workaround, but the recommended
installation method anyway.
-- Christoph
The issue is that we have two recommended installations methods.
It depends on which guide you read:
http://www.turbogears.org/2.1/docs/main/DownloadInstall.html#installation-for-the-impatient
Suggests using the private index
while
http://www.turbogears.org/book/part1/install.html#installing-turbogears2
Suggests using pypi
As the book is more recent it is often considered as the way to go.
I think that should be changed, we should always recommend our index for
beginners who need a running system and don't want to bother with
incompatibilites in the latest required packages.
-- Christoph
I agree with you,
but I think that new users will probably feel more comfortable with
being able to use pypi, this would also enable "python setup.py
develop" inside a project to install the full TG stack without issues.
That is the reason why I think that setting the precise version number
inside requirements of the TurboGears package would make life easier
for new users. They can even avoid reading the install guide at all
and go with a plain "easy_install tg.devtools" having a working
environment which probably would be perceived as a good thing by
people that just want to give a try to the framework.
Yes, we discussed this already. Assume we had hardwired a Pylons 1.0
requirement and 1.0.1 brings substantial fixes, would it still be
possible to upgrade or would you get requirement conflict errors? With
the private index and lax requirements a fresh installation works out of
the box, but people still have the freedom to update dependencies from
PyPI. This is particularly important if there is no TG update for month
(which happened in the past) or if people are stuck with older TG
versions when our API changes and they don't find the time to adapt
their applications. They still want to be able to update individual
components if these have important fixes.
-- Christoph
Right, you would get a conflict error.
even though I think this is greatly reduced by a frequent release cycle.
> With the private
> index and lax requirements a fresh installation works out of the box, but
> people still have the freedom to update dependencies from PyPI. This is
> particularly important if there is no TG update for month (which happened in
> the past) or if people are stuck with older TG versions when our API changes
> and they don't find the time to adapt their applications. They still want to
> be able to update individual components if these have important fixes.
Can't we provide both?
Nothing prevents us from releasing on pypi a package with frozen
versions and keep the private index with a package that has minimum
versions requirements. I think that this is the way that would make
easy for newcomers to install the framework and possible for experts
to tune it.
It just requires a very little extra effort from us when preparing a
new release.
I guess the actual difficulties of raw recruits is that they don't
understand the Python packaging system and virtual envs, and may not
even have setuptools or virtualenvs installed. In TG1 we tried to solve
this problem with a tgsetup.py script which also installed setuptools.
But this caused more problems than it solved.
I still think it's better if the docs properly explain and motivate only
one recommended way of installing. If we provide two different methods
or even two different variants of the package, I fear it will evoke
confusion and maintenance trouble.
-- Christoph
I agree, tgsetup.py causes only more confusion.
> I still think it's better if the docs properly explain and motivate only one
> recommended way of installing. If we provide two different methods or even
> two different variants of the package, I fear it will evoke confusion and
> maintenance trouble.
>
I still think that making install process as easy as possible is a
really important issue, but I can see your point.
If we really want to be stuck with the private index only solution we
should update the TG Book as quickly as possible so that people won't
follow the wrong install guide.
And I would also suggest to add to the quickstart template a new
command on setup.cfg like "python setup.py tg-install" that installs
the right TurboGears version for the project from the private index.
So that installing a project is as easy as:
python setup.py tg-install
python setup.py develop
Right, I was thinking along these lines, too. The command could also
check for an already installed project whether the right versions of TG
and its dependencies from the private index are installed, and make
recommendations or upgrade/downgrade automatically.
-- Christoph
Have you tried asking on the distutils-sig mailing list if the
behavior we expect is the correct one?
I'm agree that if distribute/setuptools cared about the setup.cfg file
of tg whe wouldn't have this issue.
I'm not really proficient with distribute, but as far as I have been
able to see it cares about it only if you have tg.devtools already
installed, not while you are installing it. As I never changed the
version of setuptools that I use, I suspect that it has always been
like this and we just didn't notice it for 2.1.1.
Have you tried asking on the distutils-sig mailing list if the
behavior we expect is the correct one?
-Toshio
easy_install -i http://tg.gy tg.devtools
easy_install -i http://tg.gy/214 tg.devtools
easy_install -i http://tg.gy/213 tg.devtools
and so on...
at least as soon as the dns updates for you :)
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/turbogears/-/LBbjUCpY1IUJ.
I think you are missing the point.
easy_install tg.devtools is never going to work reliably. The best we can do is to create a hudson script to test the install daily (hourly?), and notify us if the install fails. It seems like the last release (2.1.4) may have missed the critical step of testing the install in a clean environment before it was shipped, which would have caught this WebOb versioning issue.
Just for notice, as the private package index long url has always been
the worst issue of having a private package index I registered a short
domain for that purpose. Now it is possible to install tg using:
easy_install -i http://tg.gy tg.devtools
easy_install -i http://tg.gy/214 tg.devtools
easy_install -i http://tg.gy/213 tg.devtools
and so on...
at least as soon as the dns updates for you :)
tg.org is actually owned by some company currently.
If you mean turbogears.org I think it would mess with the web site
having the index that points to the last release private index.
Otherwise if you mean setting an url lik
turbogears.org/somewhere/{213,214} and making tg.gy redirect there
instead of having to specify each rewrite, that is fine for me, let me
know where to point the redirect.
tg.org is actually owned by some company currently.If you mean turbogears.org I think it would mess with the web site
having the index that points to the last release private index.
> --
> You received this message because you are subscribed to the Google Groups
> "TurboGears" group.
Switched the dns record to 91.121.1.84
>
> When I do this, I can then run "easy_install -i http://tg.gy/current/index
> tg.devtools" and get a fully functioning installation.
>
> Better rewrite rules or suggestions will be gladly accepted :)
I think we can shorten it a bit, in the rewrite rules I did I removed
the need for "index" at the end which looks more clean and easy to
remember:
easy_install -i http://tg.gy/214/index tg.devtools
VS
easy_install -i http://tg.gy/214 tg.devtools
also:
easy_install -i http://tg.gy/current/index tg.devtools
VS
easy_install -i http://tg.gy/current tg.devtools
You can actually enforce index inside the rewritten rule as the
packages will be downloaded from turbogears.org and not from tg.gy as
you are rewriting the domain too.
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
rewrite ^/(.*) http://www.turbogears.org/2.1/downloads/current/index/$1;
rewrite ^/214/(.*) http://www.turbogears.org/2.1/downloads/2.1.4/index/$1;
"where" was off course a "were", but as I'm unable to use a keyboard
I'll never be able to write something that makes sense :D
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
Just reporting that I tried starting a new project with:
easy_install -i http://tg.gy/current tg.devtools
and it fails.
It works only if I specify "/index" after "current"
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
No luck,
it still doesn't work :/
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
Now it seems to work correctly /current but not /214
--
You received this message because you are subscribed to the Google Groups "TurboGears" group.
To post to this group, send email to turbo...@googlegroups.com.
To unsubscribe from this group, send email to turbogears+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.
This is also related to the fact that an user reported today that
install following the docs didn't work due to the fact that
http://tg.gy/current/index/ gives a 404.