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 #4488 (closed)

Opened 13 years ago

Closed 11 years ago

OMERO-web.bat fails due to PYTHONPATH

Reported by: jamoore Owned by:
Priority: minor Milestone: Unscheduled
Component: General Version: 4.4.9
Keywords: n.a. Cc: atarkowska
Resources: n.a. Referenced By: n.a.
References: n.a. Remaining Time: 0.0d
Sprint: n.a.

Description

C:\hudson\workspace\OMERO-trunk-components\component\web\label\x86-windows\src>python dist\bin\omero web unittest --test=webadmin 
No handlers could be found for logger "manage"
Error: Can't find the file 'settings.py' in the directory containing 'manage.py'. It appears you've customized things.
You'll have to run django-admin.py, passing it your settings module.
(If the file settings.py does indeed exist, it's causing an ImportError somehow.)

This is caused by the call to "self.ctx.call":

        if testpath is None:
            location = self.ctx.dir / "lib" / "python" / "omeroweb"
                    
        if testpath is not None and len(testpath) > 1:
            cargs = [testpath]
        else:
            cargs = ['python']
        
        cargs.extend([ "manage.py", "test"])
        if test:
            cargs.append(test)
        self.set_environ()
        rv = self.ctx.call(cargs, cwd = location)

call sets up the environment for Popen internally, so the call to set_environ does nothing. Instead, "." should be added to PYTHONPATH in call. Perhaps we need a flag.

Change History (11)

comment:1 Changed 13 years ago by jburel

  • Owner set to atarkowska

comment:2 Changed 13 years ago by atarkowska

  • Sprint changed from 2011-03-10 (7) to 2011-03-24 (8)

comment:3 Changed 13 years ago by jburel

  • Sprint changed from 2011-03-24 (8) to 2011-04-07 (9)

Moved from sprint 2011-03-24 (8)

comment:4 Changed 13 years ago by cxallan

  • Sprint changed from 2011-04-07 (9) to 2011-04-21 (10)

Moved from sprint 2011-04-07 (9)

comment:5 Changed 13 years ago by atarkowska

  • Owner changed from atarkowska to jmoore

comment:6 Changed 13 years ago by jburel

  • Sprint changed from 2011-04-21 (10) to 2011-05-05 (11)

Moved from sprint 2011-04-21 (10)

comment:7 Changed 13 years ago by jmoore

  • Sprint 2011-05-05 (11) deleted

comment:8 Changed 13 years ago by jmoore

  • Sprint set to 2011-06-02 (13)
  • Status changed from new to accepted

Evaluating.

comment:9 Changed 13 years ago by jmoore

  • Milestone changed from OMERO-Beta4.3 to Unscheduled
  • Owner jmoore deleted
  • Sprint 2011-06-02 (13) deleted
  • Summary changed from Bug: OMERO-web.bat fails due to PYTHONPATH to OMERO-web.bat fails due to PYTHONPATH

The job was failing because of a blank in the email address from git. I'm pushing this to unscheduled with the rest of the #1736 work, and taking off "Bug:" because it's internal infrastructure and nothing user facing.

comment:10 Changed 12 years ago by jmoore

Referencing ticket #1736 has changed sprint.

comment:11 Changed 11 years ago by jamoore

  • Remaining Time changed from 0.25 to 0
  • Resolution set to invalid
  • Status changed from accepted to closed
  • Version set to 4.4.9
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.68150 sec.)

We're Hiring!