[Kiwiviewer] Paraview to Kiwi (windows)

Casey Goodlett casey.goodlett at kitware.com
Mon May 19 09:07:46 EDT 2014


You could try changing line170 of the script from

timestamp = datetime.datetime.now().replace(microsecond=0).isoformat()

to

timestamp =
datetime.datetime.now().replace(microsecond=0).isoformat().replace(':','_')


On Mon, May 19, 2014 at 8:57 AM, Casey Goodlett
<casey.goodlett at kitware.com>wrote:

> Roel,
>
> Mixed backward and forward slashes should be fine.  I think its more
> likely the timestamp putting a colon in the filename.
>
>
> On Mon, May 19, 2014 at 6:37 AM, Roel Eijg <roelantspam at gmail.com> wrote:
>
>>  Dear community,
>>
>> First off, I love kiwi-viewer, thanks!
>> I'm having a problem with exporting paraview-scene's using the
>> paraview_to_kiwi.py macro on Windows 7. On the Mac this script worked like
>> a charm, but on windows I get the following error:
>>
>> Traceback (most recent call last):
>>
>> File "<string>", line 202, in <module>
>>
>> File "<string>", line 192, in exportToDesktop
>>
>> File "<string>", line 179, in exportInDirectory
>>
>> File "<string>", line 112, in exportViewToDirectory
>>
>> File "C:\Program Files (x86)\ParaView 4.1.0\bin\lib\os.py", line 150, in
>> makedirs
>>
>> makedirs(head, mode)
>>
>> File "C:\Program Files (x86)\ParaView 4.1.0\bin\lib\os.py", line 157, in
>> makedirs
>>
>> mkdir(name, mode)
>>
>> WindowsError: [Error 123] The filename, directory name, or volume label
>> syntax is incorrect:
>> 'C:\\Users\\username/Desktop\\PVExport-2014-05-19T12:29:55'
>>
>>
>> I would say it's an issue with back/forward- slashes, but my python
>> knowledge is insufficient to resolve the issue. Could someone please take a
>> look at it?
>>
>>
>> Kind regards, Roelant
>>
>> _______________________________________________
>> Kiwiviewer mailing list
>> Kiwiviewer at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/kiwiviewer
>>
>>
>
>
> --
> Casey B. Goodlett, Ph.D.
> Technical Leader
> Kitware, Inc. - North Carolina Office
> http://www.kitware.com
> (919) 969-6990 x310
>



-- 
Casey B. Goodlett, Ph.D.
Technical Leader
Kitware, Inc. - North Carolina Office
http://www.kitware.com
(919) 969-6990 x310
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/kiwiviewer/attachments/20140519/5fb35011/attachment-0002.html>


More information about the Kiwiviewer mailing list