This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: ntpath splitdrive fails on line 161: tuple has no attribute 'replace'
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.4
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: r.david.murray, zemke
Priority: normal Keywords:

Created on 2015-07-03 20:34 by zemke, last changed 2022-04-11 14:58 by admin. This issue is now closed.

Messages (3)
msg246217 - (view) Author: Dan Zemke (zemke) Date: 2015-07-03 20:34
Traceback was:

  File "\drzblobio.py", line 70, in load full_read_path = os.path.join(read_path, fname)
  File "C:\Python34\lib\ntpath.py", line 110, in join
    p_drive, p_path = splitdrive(p)
  File "C:\Python34\lib\ntpath.py", line 161, in splitdrive
    normp = p.replace(_get_altsep(p), sep)
AttributeError: 'tuple' object has no attribute 'replace'
msg246219 - (view) Author: R. David Murray (r.david.murray) * (Python committer) Date: 2015-07-03 20:39
This error is raised because you called os.path.join incorrectly (with a tuple as one of the arguments).
msg246220 - (view) Author: Dan Zemke (zemke) Date: 2015-07-03 20:52
Sorry.  I just figured that out.  Thank you!
--------------------------------------------
On Fri, 7/3/15, R. David Murray <report@bugs.python.org> wrote:

 Subject: [issue24562] ntpath splitdrive fails on line 161: tuple has no attribute 'replace'
 To: zemke@yahoo.com
 Date: Friday, July 3, 2015, 4:39 PM

 R. David
 Murray added the comment:

 This error is raised because you called
 os.path.join incorrectly (with a tuple as one of the
 arguments).

 ----------
 nosy: +r.david.murray
 resolution:  -> not a bug
 stage:  -> resolved
 status:
 open -> closed
 type: crash ->
 behavior

 _______________________________________
 Python tracker <report@bugs.python.org>
 <http://bugs.python.org/issue24562>
 _______________________________________
History
Date User Action Args
2022-04-11 14:58:18adminsetgithub: 68750
2015-07-03 20:52:20zemkesetmessages: + msg246220
2015-07-03 20:39:21r.david.murraysetstatus: open -> closed

type: crash -> behavior

nosy: + r.david.murray
messages: + msg246219
resolution: not a bug
stage: resolved
2015-07-03 20:34:38zemkecreate