Warning: Can't synchronize with repository "(default)" (/home/git/ome.git does not appear to be a Git repository.). Look in the Trac log for more information.
Notice: In order to edit this ticket you need to be either: a Product Owner, The owner or the reporter of the ticket, or, in case of a Task not yet assigned, a team_member"

Task #977 (new)

Opened 16 years ago

Last modified 14 years ago

Need absolute PYTHONPATH for scripts

Reported by: jamoore Owned by: jamoore
Priority: major Milestone: Unscheduled
Component: Scripting Version: 3.0-M1
Keywords: icegrid, icepatch, blitz Cc: dzmacdonald, cxallan
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 1.0d
Sprint: n.a.

Description

Adding a workaround to omero/processor.py:

+        # WORKAROUND
+        # Currently duplicating the logic here as in the PYTHONPATH
+        # setting of the grid application descriptor (see etc/grid/*.xml)
+        # This should actually be taken care of in the descriptor itself
+        # by having setting PYTHONPATH to an absolute value. This is
+        # not currently possible with IceGrid (without using icepatch --
+        # see 39.17.2 "node.datadir).
+        self.env.append("PYTHONPATH", os.path.join(os.getcwd(), "lib"))

Optimal would be to simply start using icepatch such that all nodes only need:

  icegridnode --Ice.Config=NODENAME.config

and they then download their configuration and are ready to go using ${node.datadir}.

Change History (4)

comment:1 Changed 15 years ago by jmoore

  • Milestone changed from OMERO-Beta4 to OMERO-Beta4.2

Moving to other build/script/analysis fixes in 4.2

comment:2 Changed 14 years ago by jmoore

  • Type changed from Bug to Task

comment:3 Changed 14 years ago by jmoore

  • Remaining Time set to 1

comment:4 Changed 14 years ago by jmoore

  • Milestone changed from OMERO-Beta4.2 to Unscheduled
Note: See TracTickets for help on using tickets. You may also have a look at Agilo extensions to the ticket.

1.3.13-PRO © 2008-2011 Agilo Software all rights reserved (this page was served in: 0.65371 sec.)

We're Hiring!