Edgewall Software
Modify

Opened 19 years ago

Closed 15 years ago

Last modified 15 years ago

#117 closed defect (fixed)

assert failure in <c:cppunit> if srcdir is defined

Reported by: anonymous Owned by: cmlenz
Priority: major Milestone: 0.6
Component: General Version: 0.5.3
Keywords: Cc:
Operating System:

Description

Python gives this error if srcdir is specified in <c:cppunit> command:

[ERROR   ] global name 'posixpath' is not defined
Traceback (most recent call last):
  File "/usr/local/python2.4/lib/python2.4/asyncore.py", line 69, in read
    obj.handle_read_event()
  File "/usr/local/python2.4/lib/python2.4/asyncore.py", line 391, in handle_read_event
    self.handle_read()
  File "/usr/local/python2.4/lib/python2.4/asynchat.py", line 137, in handle_read
    self.found_terminator()
  File "build/bdist.linux-i686/egg/bitten/util/beep.py", line 278, in found_terminator
  File "build/bdist.linux-i686/egg/bitten/util/beep.py", line 311, in _handle_frame
  File "build/bdist.linux-i686/egg/bitten/util/beep.py", line 465, in handle_data_frame
  File "build/bdist.linux-i686/egg/bitten/slave.py", line 152, in handle_msg
  File "build/bdist.linux-i686/egg/bitten/slave.py", line 176, in execute_build
  File "build/bdist.linux-i686/egg/bitten/recipe.py", line 125, in execute
  File "build/bdist.linux-i686/egg/bitten/recipe.py", line 70, in run
  File "build/bdist.linux-i686/egg/bitten/build/ctools.py", line 84, in cppunit
NameError: global name 'posixpath' is not defined

The attached patch will fix it.

Attachments (1)

ctools.py.diff (312 bytes) - added by joel@… 19 years ago.
fix for ctools.py

Download all attachments as: .zip

Change History (3)

Changed 19 years ago by joel@…

fix for ctools.py

comment:1 follow-up: Changed 15 years ago by osimons

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

Latest trunk already imports posixpath.

However, we shouldn't really use that module directly - instead os.path should be used to get the correct path module for the platform Python runs on. I've changed this in [677].

comment:2 in reply to: ↑ 1 Changed 15 years ago by osimons

Replying to osimons:

However, we shouldn't really use that module directly - instead os.path should be used to get the correct path module for the platform Python runs on. I've changed this in [677].

Just for the record: Not the best of ideas, and reverted again in [679]... :-)

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cmlenz.
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.