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 6 years ago

Closed 6 years ago

Last modified 5 years ago

#124 closed defect (fixed)

indico_initial_setup: Cannot find etc/indico.conf.sample

Reported by: sylvestre Owned by: Pedro Ferreira <jose.pedro.ferreira@…>
Priority: low Milestone: v0.97.0
Component: Installation Version: 0.97.0
Keywords: Cc:

Description

After
$ easy_install cds-indico
I try:
$ indico_initial_setup

I accept to copy the "default values in etc/indico.conf.sample to a new etc/indico.conf".
I get the backtrace:
Traceback (most recent call last):

File "/usr/bin/indico_initial_setup", line 8, in <module>

load_entry_point('cds-indico==0.97b', 'console_scripts', 'indico_initial_setup')()

File "/usr/lib/python2.5/site-packages/cds_indico-0.97b-py2.5.egg/MaKaC/consoleScripts/indicoInitialSetup.py", line 84, in main

targetDirs = indico_pre_install('/opt/indico', False, existingConfig=existingPath)

File "/usr/lib/python2.5/site-packages/cds_indico-0.97b-py2.5.egg/MaKaC/consoleScripts/installBase.py", line 422, in indico_pre_install

return fresh_install(defaultPrefix)

File "/usr/lib/python2.5/site-packages/cds_indico-0.97b-py2.5.egg/MaKaC/consoleScripts/installBase.py", line 460, in fresh_install

shutil.copy(PWD_INDICO_CONF + '.sample', indicoconfpath)

File "/usr/lib/python2.5/shutil.py", line 80, in copy

copyfile(src, dst)

File "/usr/lib/python2.5/shutil.py", line 46, in copyfile

fsrc = open(src, 'rb')

IOError: [Errno 2] No such file or directory: 'etc/indico.conf.sample'

Applying this crappy patch fixes the issue:

--- /usr/lib/python2.5/site-packages/cds_indico-0.97b-py2.5.egg/MaKaC/consoleScripts/installBase.py.orig 2010-01-13 22:17:58.000000000 +0100
+++ /usr/lib/python2.5/site-packages/cds_indico-0.97b-py2.5.egg/MaKaC/consoleScripts/installBase.py 2010-01-13 22:18:44.000000000 +0100
@@ -44,7 +44,7 @@

INDICO_INSTALL = False


LOCALDATABASEDIR = '/opt/indico/db'

-PWD_INDICO_CONF = 'etc/indico.conf'
+PWD_INDICO_CONF = '/usr/lib/python2.5/site-packages/cds_indico-0.97b-py2.5.egg/etc/indico.conf'


def setIndicoInstallMode(newmode):

Change History (3)

comment:1 Changed 6 years ago by pferreir

  • Milestone set to v0.97

comment:2 Changed 6 years ago by jose.pedro.ferreira@…

  • Resolution set to fixed
  • Status changed from new to closed

commit ba4522f5a3ce55142c3eb6f0247f9da257e51d20
Author: Pedro Ferreira <jose.pedro.ferreira@…>
Date: Thu Jan 14 15:14:52 2010 +0100

[FIXED] Egg path problem with (indico.conf.sample)


  • fixes #124
  • also fixed an exception due to an unexisting db path

comment:3 Changed 5 years ago by Pedro Ferreira <jose.pedro.ferreira@…>

  • Owner set to Pedro Ferreira <jose.pedro.ferreira@…>

In [ba4522f5a3ce55142c3eb6f0247f9da257e51d20]:

[FIXED] Egg path problem with (indico.conf.sample)

  • fixes #124
  • also fixed an exception due to an unexisting db path
Note: See TracTickets for help on using tickets.