ERROR: Could not find a version that satisfies the requirement while installing Zope Server

29 views
Skip to first unread message

salonimi...@gmail.com

unread,
Jul 20, 2021, 4:24:35 AMJul 20
to schedulix
Hi Ronald and Team,

I am installing schedulix for one of our local enviornment and I am at below step-


/usr/local/bin/pip install -r /home/schedulix/schedulix-2.7/etc/zope_requirements-2.13.26.txt

after running the above command I am getting below error -

[schedulix@snsl-vm-416 Zope]$ bin/pip install -r /home/schedulix/schedulix-2.7/etc/zope_requirements-2.13.26.txt

Collecting AccessControl==2.13.15

  Using cached AccessControl-2.13.15.tar.gz (93 kB)

Collecting Acquisition==2.13.11

  Using cached Acquisition-2.13.11.tar.gz (45 kB)

Collecting DateTime==2.12.8

  Using cached DateTime-2.12.8.tar.gz (74 kB)

Collecting DocumentTemplate==2.13.4

  Using cached DocumentTemplate-2.13.4.tar.gz (65 kB)

Collecting ExtensionClass==2.13.2

  Using cached ExtensionClass-2.13.2.zip (35 kB)

Collecting Jinja2==2.8.1

  Using cached Jinja2-2.8.1-py2.py3-none-any.whl (264 kB)

Collecting Missing==2.13.1

  Using cached Missing-2.13.1.zip (30 kB)

Collecting MultiMapping==2.13.0

  Using cached MultiMapping-2.13.0.zip (29 kB)

Collecting Paste==1.7.5.1

  Using cached Paste-1.7.5.1.tar.gz (523 kB)

Collecting PasteDeploy==1.3.4

  Using cached PasteDeploy-1.3.4.tar.gz (26 kB)

    ERROR: Command errored out with exit status 1:

     command: /home/schedulix/software/Zope/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-a1dq9q6h/pastedeploy_d99dd0726d8645bfb405609b981d6618/setup.py'"'"'; __file__='"'"'/tmp/pip-install-a1dq9q6h/pastedeploy_d99dd0726d8645bfb405609b981d6618/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-nxn1xtza

         cwd: /tmp/pip-install-a1dq9q6h/pastedeploy_d99dd0726d8645bfb405609b981d6618/

    Complete output (5 lines):

    Traceback (most recent call last):

      File "<string>", line 1, in <module>

      File "/tmp/pip-install-a1dq9q6h/pastedeploy_d99dd0726d8645bfb405609b981d6618/setup.py", line 9, in <module>

        execfile(finddata_py)

    NameError: name 'execfile' is not defined

    ----------------------------------------

WARNING: Discarding https://files.pythonhosted.org/packages/4b/f6/3e20ee255a1a83ee1cfaa9faff2752b71fccba8c3265c21f9fe5a51ae8c0/PasteDeploy-1.3.4.tar.gz#sha256=7732c73e445f86e5cf378bb73cb2f31cbc60f25381972c55b0c69ad946735b4f (from https://pypi.org/simple/pastedeploy/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.

ERROR: Could not find a version that satisfies the requirement PasteDeploy==1.3.4 (from versions: 0.1, 0.2, 0.3, 0.4, 0.5, 0.9.6, 1.0, 1.1, 1.3, 1.3.1, 1.3.2, 1.3.3, 1.3.4.dev0, 1.3.4, 1.5.0, 1.5.1, 1.5.2, 2.0.0, 2.0.1, 2.1.0, 2.1.1)

ERROR: No matching distribution found for PasteDeploy==1.3.4


Please let me know what could be the cause.

Thank you,
Saloni



Ronald Jeninga

unread,
Jul 20, 2021, 6:41:02 AMJul 20
to schedulix
Hi Saloni,

installing the Zope server is not the easiest task, but it's doable.
In fact, the easiest way to get it right is to have a look at the rpm scripts ($SDMSHOME/lib/zope_pre.script and $SDMSHOME/lib/zope_post.script).
Those scripts have proven to work and there doesn't exist a more accurate description of the procedure.

Having said this, I'd like to note that we use the 2.13.29 Zope release if we need to install a Zope2 with Python2 environment, which is basically only true for pretty ancient systems.
Since we've released schedulix 2.10, we regard the Zope4/5 Server, based on Python3, the better choice.
The installation of a Zope4/5 is easier than the ancient Zope2.
It also makes use of the newest Python modules which definitely contributes to the security of the system.
Should you change your mind and decide to go with Zope4/5, you'll find the instructions, again,. in the rpm scripts (zope4_pre.script and zope4_post.script).

In order to repair your situation, you might need a current release of pip.
And some modules have to be installed on themselves, before trying to install Zope2.

I hope this helps.

Best regards,

Ronald

salonimi...@gmail.com

unread,
Jul 20, 2021, 7:07:34 AMJul 20
to schedulix
Hi Ronald,

We are using schedulix 2.7 and for that we are installing Zope2 

In order to install pip latest version , what are the steps , can you please guide us?

Thank you,
Saloni

Ronald Jeninga

unread,
Jul 20, 2021, 8:12:02 AMJul 20
to schedulix
Hi Saloni,

schedulix 2.7 is a fine system and many have benefited from it, but it starts to get a little old.
Usually we issue about one release per year (where last year has been an exception for well known reasons).
This means that 2.7 is now about 4 years old (or even older).

I'm happy if you are, but we've honestly tried our best to add valuable features to the system.
Some of these features proved themselves in the migration projects I did.
That's why I recommend to upgrade to a newer release.

But that's not your issue.
Yes, for 2.7 we don't have a Zope4/5 compatible SDMS.zexp. Which means that Zope4/5 is not an option (yet) for you.
This again means that you'll have to follow the instructions as in the zope_pre and zope_post scripts.
The GUI will run with most releases of Zope though, and this includes the latest (and last AFAIK) release 2.13.29.
Even if you then have a "newer" Zope than would have been possible at time of the release of schedulix 2.7, it'll still work without issues.

The scripts also install a newer release of pip, by doing

    bin/pip install --upgrade pip

and that usually works.
But it's only one of the list of steps to take. Just read the two scripts and you'll easily find out how to install the monster.
(That monster turns out to be very tame, as soon as it's installed, and will simply do the work for you without complaints).


Best regards,

Ronald

salonimi...@gmail.com

unread,
Jul 20, 2021, 8:33:27 AMJul 20
to schedulix
Hi Ronald,

Can we use python 3.x with schedulix 2.7 and zope 2 ?

Thank you,
Saloni

salonimi...@gmail.com

unread,
Jul 20, 2021, 8:34:00 AMJul 20
to schedulix

Also what is latest stable release of schedulix we can use ?

Ronald Jeninga

unread,
Jul 20, 2021, 8:50:42 AMJul 20
to schedulix
Hi Saloni,

an answer to both questions:

> Can we use python 3.x with schedulix 2.7 and zope 2 ?
No that won't work at all. It is important to realize that Python 2 and Python 3 are similar, but certainly not source code compatible.
At the time we've issued schedulix 2.7, Python 2 was still supported.
During the lifetime of 2.9 we've migrated our "program" to Python 3 and created an experimental (but pretty stable) Zope4 port. 
With the release of schedulix 2.10, the Zope4/5 replaces the Zope2 part.
We'll continue to support Zope2 at least until we release 2.11 (probably some time in the first half of next year), probably even longer.

>  Also what is latest stable release of schedulix we can use ?
From the above, you should upgrade to at least 2.9.
The latest stable release is schedulix 2.10 though.
In my role as a system administrator I'm pretty conservative.
If something works without issues, I only upgrade such systems in case of security vulnerabilities.
Naturally if new features are required that are available in newer releases only, an upgrade is inevitable.
(like in: I'd like to use Python 3 instead of Python 2).

Best regards,

Ronald

Ronald Jeninga

unread,
Jul 20, 2021, 8:55:35 AMJul 20
to schedulix
small addition to my previous message: if I upgrade because I need new features, I usually upgrade to the latest stable release.
No need to go through the process of finding incompatibilities and other problems more often than necessary.
So this policy gives you a reason to use 2.10. But since we've fixed alll Zope4 problems we've found in 2.9, you could give that a try too if you have doubts about 2.10.

salonimi...@gmail.com

unread,
Jul 20, 2021, 9:35:29 AMJul 20
to schedulix
Hi Ronald,

if we plan to use 2.10.. does any version of python 3.x works?

Ronald Jeninga

unread,
Jul 20, 2021, 9:51:54 AMJul 20
to schedulix
Hi Saloni,

we use several different Linux distributions in our environment (RHEL7, RHEL8, CentOS7, CentOS8, Ubuntu16, Ubuntu20, ...), as well as several Windows Systems, and wherever we've installed Zope4, we've used the latest distributed release of Python3 (for that system).
The good news is that it worked without issues everywhere.
The bad news is that this "good news" doesn't prove at all that it'll work with _all_ possible Python 3 releases.
But it shows that releases that are commonly distributed by the responsible parties are very likely to work.

In short: no worries! Go ahead, and it'll work.

Best regards,

Ronald

Reply all
Reply to author
Forward
0 new messages