This is a snapshot of Indico's old Trac site. Any information contained herein is most probably outdated. Access our new GitHub site here.

Opened 2 years ago

Closed 18 months ago

#1427 closed defect (fixed)

error installing indico 1.1.1 on RHEL6 "No module named persistent"

Reported by: bartelt Owned by: pferreir
Priority: normal Milestone: v1.1
Component: General Version: 1.1
Keywords: Cc:

Description

This is my first time installing indico (or anything) with easy_install. I am a python newby. I am working on a newly installed RHEL6.4 (64-bit) server.
I did:
easy_install pip
pip install reportlab PIL

Those went fine. Then I did
easy_install indico
which did a lot of things, but then:

Installed /usr/lib/python2.6/site-packages/six-1.4.1-py2.6.egg
Searching for BTrees
Reading http://pypi.python.org/simple/BTrees/
Best match: BTrees 4.0.8
Downloading https://pypi.python.org/packages/source/B/BTrees/BTrees-4.0.8.tar.gz#md5=7f5df4cf8dd50fb0c584c0929a406c92
Processing BTrees-4.0.8.tar.gz
Running BTrees-4.0.8/setup.py -q bdist_egg --dist-dir /tmp/easy_install-UjaTjH/BTrees-4.0.8/egg-dist-tmp-EQHj8N
warning: no previously-included files matching '*.dll' found anywhere in distribution
warning: no previously-included files matching '*.pyc' found anywhere in distribution
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.so' found anywhere in distribution
Traceback (most recent call last):

File "/usr/bin/easy_install", line 9, in <module>

load_entry_point('distribute==0.6.10', 'console_scripts', 'easy_install')()

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 1715, in main

with_ei_usage(lambda:

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 1696, in with_ei_usage

return f()

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 1719, in <lambda>

distclass=DistributionWithoutHelpCommands?, kw

File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup

dist.run_commands()

File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands

self.run_command(cmd)

File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command

cmd_obj.run()

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 236, in run

self.easy_install(spec, not self.no_deps)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 472, in easy_install

return self.install_item(spec, dist.location, tmpdir, deps)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 504, in install_item

self.process_distribution(spec, dist, deps)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 545, in process_distribution

[requirement], self.local_index, self.easy_install

File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 538, in resolve

dist = best[req.key] = env.best_match(req, self, installer)

File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 780, in best_match

return self.obtain(req, installer) # try and download/install

File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 792, in obtain

return installer(requirement)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 472, in easy_install

return self.install_item(spec, dist.location, tmpdir, deps)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 502, in install_item

dists = self.install_eggs(spec, download, tmpdir)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 681, in install_eggs

return self.build_and_install(setup_script, setup_base)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 958, in build_and_install

self.run_setup(setup_script, setup_base, args)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 947, in run_setup

run_setup(setup_script, args)

File "/usr/lib/python2.6/site-packages/setuptools/sandbox.py", line 29, in run_setup

lambda: execfile(

File "/usr/lib/python2.6/site-packages/setuptools/sandbox.py", line 70, in run

return func()

File "/usr/lib/python2.6/site-packages/setuptools/sandbox.py", line 31, in <lambda>

{'file':setup_script, 'name':'main'}

File "setup.py", line 158, in <module>
File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup

dist.run_commands()

File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands

self.run_command(cmd)

File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command

cmd_obj.run()

File "/usr/lib/python2.6/site-packages/setuptools/command/bdist_egg.py", line 174, in run

cmd = self.call_command('install_lib', warn_dir=0)

File "/usr/lib/python2.6/site-packages/setuptools/command/bdist_egg.py", line 161, in call_command

self.run_command(cmdname)

File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command

self.distribution.run_command(command)

File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command

cmd_obj.run()

File "/usr/lib/python2.6/site-packages/setuptools/command/install_lib.py", line 20, in run

self.build()

File "/usr/lib64/python2.6/distutils/command/install_lib.py", line 119, in build

self.run_command('build_ext')

File "/usr/lib64/python2.6/distutils/cmd.py", line 333, in run_command

self.distribution.run_command(command)

File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command

cmd_obj.run()

File "/usr/lib/python2.6/site-packages/setuptools/command/build_ext.py", line 46, in run

_build_ext.run(self)

File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 340, in run

self.build_extensions()

File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 449, in build_extensions

self.build_extension(ext)

File "/usr/lib/python2.6/site-packages/setuptools/command/build_ext.py", line 182, in build_extension

_build_ext.build_extension(self,ext)

File "/usr/lib64/python2.6/distutils/command/build_ext.py", line 499, in build_extension

depends=ext.depends)

File "/usr/lib64/python2.6/distutils/ccompiler.py", line 613, in compile

depends, extra_postargs)

File "/usr/lib64/python2.6/distutils/ccompiler.py", line 371, in _setup_compile

pp_opts = gen_preprocess_options(macros, incdirs)

File "/usr/lib64/python2.6/distutils/ccompiler.py", line 1146, in gen_preprocess_options

pp_opts.append ("-I%s" % dir)

File "setup.py", line 49, in str
File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 862, in resource_filename

return get_provider(package_or_requirement).get_resource_filename(

File "/usr/lib/python2.6/site-packages/pkg_resources.py", line 180, in get_provider

import(moduleOrReq)

ImportError?: No module named persistent

Please advise on how to proceed with the installation.
thanks, John

Change History (9)

comment:1 Changed 2 years ago by jbenito

  • Milestone set to v1.1

comment:2 Changed 2 years ago by pferreir

  • Owner set to pferreir
  • Status changed from new to assigned

comment:3 Changed 2 years ago by pferreir

Hi,

Indico 1.1.2 has just been released. It should fix this issue. You should, however clean up your Zope python packages first, so, generally the ones starting with z* or Z* in your site-packages dir (e.g. /usr/lib/python2.7/site-packages/), as well as persistent.

comment:4 Changed 2 years ago by bartelt

Thanks. What exactly do you mean by "clean up"? Can I just delete the .egg files?

Last edited 2 years ago by bartelt (previous) (diff)

comment:5 Changed 2 years ago by bartelt

I googled and learned to use 'pip' to uninstall packages.

However, when I tried 'easy_install indico', I again got version 1.1.1.
When will the repository be updated to 1.1.2?

comment:6 Changed 2 years ago by bartelt

Never mind, I forgot to uninstall indico itself.

comment:7 Changed 2 years ago by bartelt

Indico 1.1.2 fails also:

# easy_install -n indico
Searching for indico
Reading http://pypi.python.org/simple/indico/
Reading http://indico-software.org
Reading http://indico-software.org/wiki/Releases/Indico0.98-rc1
Reading http://indico-software.org/wiki/Releases/Indico0.98.0
Reading http://indico-software.org/wiki/Releases/Indico0.98.1
Reading http://indico-software.org/wiki/Releases/Indico0.98.2
Reading http://indico-software.org/wiki/Releases/Indico0.99
Reading http://indico-software.org/wiki/Releases/Indico1.0
Reading http://indico-software.org/wiki/Releases/Indico1.1
Best match: indico 1.1.2
Downloading http://indico-software.org/download/indico/indico-1.1.2-py2.6.egg
Processing indico-1.1.2-py2.6.egg
creating /usr/lib/python2.6/site-packages/indico-1.1.2-py2.6.egg
Extracting indico-1.1.2-py2.6.egg to /usr/lib/python2.6/site-packages
Traceback (most recent call last):

File "/usr/bin/easy_install", line 9, in <module>

load_entry_point('distribute==0.6.10', 'console_scripts', 'easy_install')()

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 1715, in main

with_ei_usage(lambda:

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 1696, in with_ei_usage

return f()

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 1719, in <lambda>

distclass=DistributionWithoutHelpCommands?, kw

File "/usr/lib64/python2.6/distutils/core.py", line 152, in setup

dist.run_commands()

File "/usr/lib64/python2.6/distutils/dist.py", line 975, in run_commands

self.run_command(cmd)

File "/usr/lib64/python2.6/distutils/dist.py", line 995, in run_command

cmd_obj.run()

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 236, in run

self.easy_install(spec, not self.no_deps)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 472, in easy_install

return self.install_item(spec, dist.location, tmpdir, deps)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 502, in install_item

dists = self.install_eggs(spec, download, tmpdir)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 645, in install_eggs

return [self.install_egg(dist_filename, tmpdir)]

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 722, in install_egg

return self.egg_distribution(destination)

File "/usr/lib/python2.6/site-packages/setuptools/command/easy_install.py", line 687, in egg_distribution

metadata = EggMetadata?(zipimport.zipimporter(egg_path))

zipimport.ZipImportError?: not a Zip file

comment:8 Changed 2 years ago by bartelt

OK, weird. "easy_install -n indico" failed but "easy_install indico" succeeded.

comment:9 Changed 18 months ago by pferreir

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.