Modify

Opened 7 years ago

Closed 7 years ago

#12416 closed defect (invalid)

Trac 1.0.5 and AdvancedTicketWorkflowPlugin-1.2.0-py2.7.egg

Reported by: eldon_chang@… Owned by: Eli Carter
Priority: normal Component: AdvancedTicketWorkflowPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description (last modified by Jun Omae)

please help me ~

I just install a Advanced Ticket Workflow Plugin 1.2 I install ver 0.11 0.12 1.2 same error come my log Traceback (most recent call last):

  • OS: CentOS7
  • Trac: 1.0.5
  • Python: 2.7

I fallow this command

  1. # python setup.py bdist_egg
  2. mv dist/AdvancedTicketWorkflowPlugin-1.2.0-py2.7.egg /trac/myprojact/plugins/
  3. EDIT Trac.ini
    # vi trac.ini
    [components]
    advancedworkflow.* = enabled
    
  4. start Tracd
    #tracd -p 80 --basic-auth="ttfb-trac,/var/trac/ttfb-trac/auth/passwords,ttfb-trac" /var/trac/ttfb-trac`
    

same error from my console

Exception happened during processing of request from ('192.168.0.180', 52824)
Traceback (most recent call last):
  File "/usr/lib64/python2.7/SocketServer.py", line 593, in process_request_thread
    self.finish_request(request, client_address)
  File "/usr/lib64/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/usr/lib64/python2.7/SocketServer.py", line 649, in __init__
    self.handle()
  File "/usr/lib64/python2.7/BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "build/bdist.linux-x86_64/egg/trac/web/wsgi.py", line 192, in handle_one_request
    gateway.run(self.server.application)
  File "build/bdist.linux-x86_64/egg/trac/web/wsgi.py", line 92, in run
    response = application(self.environ, self._start_response)
  File "build/bdist.linux-x86_64/egg/trac/web/standalone.py", line 59, in __call__
    return self.application(environ, start_response)
  File "build/bdist.linux-x86_64/egg/trac/web/standalone.py", line 91, in __call__
    return self.application(environ, start_response)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 413, in dispatch_request
    env_paths)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 667, in send_project_index
    use_cache=not environ['wsgi.run_once'])
  File "build/bdist.linux-x86_64/egg/trac/env.py", line 884, in open_environment
    env = env_cache.setdefault(env_path, open_environment(env_path))
  File "build/bdist.linux-x86_64/egg/trac/env.py", line 888, in open_environment
    env = Environment(env_path)
  File "build/bdist.linux-x86_64/egg/trac/core.py", line 124, in __call__
    self.__init__(*args, **kwargs)
  File "build/bdist.linux-x86_64/egg/trac/env.py", line 284, in __init__
    self.setup_config()
  File "build/bdist.linux-x86_64/egg/trac/env.py", line 652, in setup_config
    load_components(self, plugins_dir and (plugins_dir,))
  File "build/bdist.linux-x86_64/egg/trac/loader.py", line 114, in load_components
    loadfunc(env, search_path, auto_enable=plugins_dir)
  File "build/bdist.linux-x86_64/egg/trac/loader.py", line 90, in _load_py_files
    module = imp.load_source(plugin_name, plugin_file)
  File "/var/trac/ttfb-trac/plugins/setup.py", line 26, in <module>
    install_requires=[],
  File "/usr/lib64/python2.7/distutils/core.py", line 140, in setup
    raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
SystemExit: usage: tracd [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
   or: tracd --help [cmd1 cmd2 ...]
   or: tracd --help-commands
   or: tracd cmd --help

error: option -p not recognized

Attachments (0)

Change History (5)

comment:1 Changed 7 years ago by Jun Omae

Description: modified (diff)

comment:2 Changed 7 years ago by Jun Omae

Priority: highestnormal
Severity: criticalnormal

That's an installation issue. You've wrongly located setup.py file to /var/trac/ttfb-trac/plugins/setup.py.

...
  File "/var/trac/ttfb-trac/plugins/setup.py", line 26, in <module>
    install_requires=[],
  File "/usr/lib64/python2.7/distutils/core.py", line 140, in setup
    raise SystemExit, gen_usage(dist.script_name) + "\nerror: %s" % msg
SystemExit: usage: tracd [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]

Remove /var/trac/ttfb-trac/plugins/setup.py.

comment:3 in reply to:  description Changed 7 years ago by Ryan J Ollos

Replying to eldon_chang@…:

I just install a Advanced Ticket Workflow Plugin 1.2 I install ver 0.11 0.12 1.2 same error come my log

Use 0.12 with Trac 1.0. The 1.2 branch is for the forthcoming Trac 1.2. The 1.2 branch may work with Trac 1.0 at this time, but no guarantees for the future.

comment:4 Changed 7 years ago by anonymous

Thanks rjollos You're right, I wronged install in my plugin folder I have solved the problem. Thank's

comment:5 Changed 7 years ago by Ryan J Ollos

Resolution: invalid
Status: newclosed

Well, that was jun66j5 who spotted the issue, but thanks for reporting back :)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Eli Carter.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.