Modify

Opened 7 months ago

Closed 7 months ago

#11667 closed defect (fixed)

invalid syntax current version

Reported by: anonymous Owned by: rjollos
Priority: high Component: DuplicateTicketSearchPlugin
Severity: critical Keywords:
Cc: Trac Release:

Description

Please fix the invalid syntax.

trunk/duplicateticketsearch/__init__.py

 19     def get_htdocs_dirs(self):
 20         import pkg_resources import resource_filename

to

 19     def get_htdocs_dirs(self):
 20         from pkg_resources import resource_filename

Attachments (0)

Change History (3)

comment:1 Changed 7 months ago by anonymous

I try install this component, but caught the this error.

[root@tracserver tracuser]# easy_install http://trac-hacks.org/svn/duplicateticketsearchplugin/trunk/
Downloading http://trac-hacks.org/svn/duplicateticketsearchplugin/trunk/

Doing subversion checkout from http://trac-hacks.org/svn/duplicateticketsearchplugin/trunk/ to /tmp/easy_install-twzGX5/trunk
Processing trunk
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-twzGX5/trunk/egg-dist-tmp-4wgiJJ
SyntaxError: ('invalid syntax', ('build/bdist.linux-x86_64/egg/duplicateticketsearch/__init__.py', 20, 35, '        import pkg_resources import resource_filename\n'))

zip_safe flag not set; analyzing archive contents...
SyntaxError: ('invalid syntax', ('/usr/lib/python2.6/site-packages/DuplicateTicketSearch-1.0.2_r13761-py2.6.egg/duplicateticketsearch/__init__.py', 20, 35, '        import pkg_resources import resource_filename\n'))

Adding DuplicateTicketSearch 1.0.2-

...

comment:2 Changed 7 months ago by rjollos

  • Status changed from new to accepted

Thanks for catching that. I was careless when tidying up the code base.

comment:3 Changed 7 months ago by rjollos

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

In 13804:

1.0.3: Fixed syntax error from [13760]. Fixes #11667.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.