Help trying to install Plone without Vagrant on Ubuntu 16.04

I am trying to install "Plone without vagrant" on my ubuntu 16.04 machine and all commands got successfully executed except "./bin/buildout" which got stuck giving me the following error message.

Please Help me, I want to start working ASAP.

@Arhant maybe try updating zc.buildout or setuptools.

How about this?

Add under the [buildout] section in buildout.cfg:

index = https://pypi.python.org/simple

From your screenshot it seems to be the pypi index (pypi doesn't use http:// anymore and buildout still thinks it does). @joplono's suggestion would "force" buildout to only use an https:// pypi location.

Text vs screenshots when reporting errors (a brief note)

Please don't use screenshots to share code, bugs or tracebacks containing text. Unless you're including both the screenshot and the actual text. It is far more considerate of the person who comes after you to use text, when they are googling for the issue, they'll be able to find your discussion.

Most people who use screenshots want to maintain the formatting. My little trick to keep the format of the text is to put the text between triple backticks --> ```

For example:

```
[buildout]
...
index = https://pypi.python.org/simple/


```

And this is how it will look

[buildout]
...
index = https://pypi.python.org/simple/
    

You can also indent all your text with 4 spaces (which presents everything as preformatted text) but I find that impractical when posting a traceback that I've cut and pasted from a terminal.

1 Like

Can you please tell us what all steps you have followed currently for installation?

It doesn't help !!

Got your point.Thanks. @pigeonflight

I followed below script.
. . .
sudo apt-get install python-setuptools python-virtualenv python-dev build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev libjpeg62-dev
sudo apt-get install libreadline-dev wv poppler-utils
sudo apt-get install git
brew install zlib git readline jpeg libpng libyaml
mkdir training
cd training
git clone https://github.com/collective/training_buildout.git buildout
cd buildout
virtualenv --python=python2.7 .
./bin/pip install -r requirements.txt
./bin/buildout

. . .
Everthing goes well before last step and giving this error on the execution of last step.
. . .

Creating directory '/home/raja/training/buildout/eggs'.
Couldn't find index page for 'mr.developer' (maybe misspelled?)
Getting distribution for 'mr.developer==1.38'.
Couldn't find index page for 'mr.developer' (maybe misspelled?)
While:
Installing.
Loading extensions.
Getting distribution for 'mr.developer==1.38'.
Error: Couldn't find a distribution for 'mr.developer==1.38'.
. . .

" Please Guide me !! "

What @pigeonflight meant was using backticks for code.
For instance if you enclose the code you mentioned in 3 backticks, it'll look like this:

sudo apt-get install python-setuptools python-virtualenv python-dev build-essential libssl-dev libxml2-dev libxslt1-dev libbz2-dev libjpeg62-dev
sudo apt-get install libreadline-dev wv poppler-utils
sudo apt-get install git
brew install zlib git readline jpeg libpng libyaml
mkdir training
cd training
git clone https://github.com/collective/training_buildout.git buildout
cd buildout
virtualenv --python=python2.7 .
./bin/pip install -r requirements.txt
./bin/buildout

You may want to check out this basic tutorial on Markdown, it'll help you throughout your journey with Github, Reddit, documentation and so on.

Try installing it separately using the following steps (this worked for me):

  1. (Within the zinstance directory) source bin/activate
    (This step would activate the zinstance virtualenv)
  2. pip install mr.developer==1.35
  3. ./bin/buildout -c develop.cfg

You may encounter a similar error for more packages. Repeat the same process for each. Be sure to include the correct version number while pip installing.

Obviously, you have a problem with the installation of mr.developer, version 1.38. This version is on PyPI (--> "https://pypi.python.org/pypi/mr.developer/1.38"), which likely means that the index definition in your buildout.cfg is missing, wrong or at the wrong place. Verify that is is there and in the buildout section and uses the https protocol.

Thanks @dieter
After following the above steps, it ends up giving the following error.

VersionConflict: Zope2 2.13.27 is installed but Zope2>=4.0.dev0 is required by ['Products.Sessions', 'Products.TemporaryFolder']

Please guide me now .

You avoid VersionConflict errors by so called "version pinning".

In general, packages (such as Products.Sessions, Products.TemporaryFolder) loosely specify dependencies on versions on other packages (in order to be able to work with a large set of versions). Unfortunately, this does not play well with the rather weak conflict resolution features of typical python builders (such a buildout). For an application (in contrast to a package), you typically can specify precise versions for the packages to built into the application. This is called "version pinning".

One of your buildout configuration files likely contains a section "versions". This section is typically used for version pinning: it contains a sequence of specifications package=version, telling buildout to use version for package package. Typically, each Plone version has an associated buildout configuration file (usually named versions.cfg) pinning the versions of the packages used by Plone to something known to work with this Plone version. For each extension package you put into your Plone installation, you must find out, which of its versions work (often the release notes or change log gives hints) and pin it.

That you see this kind of problem may indicate that you did not start with an optimal buildout configuration. I usually use the so called Plone "UnifiedInstaller" and up to now always got a running Plone without errors of this kind. Of course, once I start to add new extensions packages, I may see version problems and must find out which pins are necessary for this new packages.

Thanks a lot @dieter @meshde @ajayns @tulikavijay @joplono @pigeonflight.

My Plone website is up now.

It's my Pleasure to be the part of such a most helping community in open source. :heart_eyes: :heart_eyes:

1 Like

Yay!!! :tada: glad to hear you're up and running @Arhant.

1 Like