Task #5583 (closed)
Opened 13 years ago
Closed 13 years ago
Bug: OmeroPy TempFileManager fails on Windows
Reported by: | jamoore | Owned by: | jamoore |
---|---|---|---|
Priority: | minor | Milestone: | OMERO-Beta4.3 |
Component: | OmeroPy | Version: | n.a. |
Keywords: | n.a. | Cc: | |
Resources: | n.a. | Referenced By: | n.a. |
References: | n.a. | Remaining Time: | 0.0d |
Sprint: | 2011-06-02 (13) |
Description
Wed, 25 May 2011 19:14:01 omero.util.TempFileManager WARNING Invalid tmp dir: ~ Traceback (most recent call last): File "C:\OMERO.server-4.3.0-DEV-c68442cd\lib\python\omero\util\temp_files.py", line 167, in tmpdir name = self.mkstemp(prefix=".lock_test", suffix=".tmp", dir=target) File "C:\OMERO.server-4.3.0-DEV-c68442cd\lib\python\omero\util\temp_files.py", line 251, in mkstemp fd, name = tempfile.mkstemp(prefix = prefix, suffix = suffix, dir = dir, text = text) File "C:\Python25\Lib\tempfile.py", line 302, in mkstemp return _mkstemp_inner(dir, prefix, suffix, flags) File "C:\Python25\Lib\tempfile.py", line 236, in _mkstemp_inner fd = _os.open(file, flags, 0600) OSError: [Errno 2] No such file or directory: '~\\.lock_testw23l2w.tmp'
Change History (2)
comment:1 Changed 13 years ago by jmoore
- Remaining Time set to 0.1
- Status changed from new to accepted
comment:2 Changed 13 years ago by jmoore <josh@…>
- Remaining Time changed from 0.1 to 0
- Resolution set to fixed
- Status changed from accepted to closed
(In [d6184553c7af11fb4d2fc46fd683102aaba9f090/ome.git] on branch develop) Catching unexpanded ~ in get_user_dir (See #3194, Fix #5583)
Note: See
TracTickets for help on using
tickets.
You may also have a look at Agilo extensions to the ticket.
This is a bit odd since only an import error should try to expand the tilde, but to silence the error in the OMEROweb.log, we'll check specifically for "~" and throw.