[Ironpython-users] Strange exception in os.walk
pawel.jasinski at gmail.com
Wed Mar 4 17:55:08 CET 2015
Do you have tracing enabled?
On Wed, Mar 4, 2015 at 5:09 PM, Markus Schaber <m.schaber at codesys.com> wrote:
> One of my coworkers struggles with strange exceptions when he calls os.walk from his python script.
> The script is running in IronPython 2.7.4, hosted by CODESYS.
> 16:04:05 [Information] # Start building AC_Mechatronics at c:\jenkins\workspace\Build_Libraries\source\Application\ApplicationComposer\AC_Mechatronics\AC_Mechatronics
> 16:04:05 [Error] Unable to cast object of type 'Microsoft.Scripting.Runtime.Uninitialized' to type 'System.Exception'.
> 16:04:05 [Error] File "c:\jenkins\workspace\Build_Libraries\scripts\BuildLibraries.py", line 453, in build_library
> library_state = get_library_state(sharp_client, lib_root, dest_repo, srcpath_parsed)
> File "c:\jenkins\workspace\Build_Libraries\scripts\BuildLibraries.py", line 415, in get_library_state
> project_info = load_project_info_object(lib_root)
> File "c:\jenkins\workspace\Build_Libraries\scripts\tools.py", line 96, in load_project_info_object
> for root, dirs, files in os.walk(project_root):
> File "C:\jenkins\workspace\Build_Libraries\cds\Targets\default\ScriptLib\126.96.36.199\os.py", line 294, in walk
> for x in walk(new_path, topdown, onerror, followlinks):
> File "C:\jenkins\workspace\Build_Libraries\cds\Targets\default\ScriptLib\188.8.131.52\os.py", line 276, in walk
> names = listdir(top)
> The problem is currently reproducible on a single machine, which happens to be a build server, but unfortunately not on our developer machines.
> Googling the exception code does not help, either.
> We're currently trying to get more information, including .NET stack traces...
> In the meantime, does anyone here have any idea for further diagnosis?
> Best regards and thanks in advance,
> Markus Schaber
> CODESYS(r) a trademark of 3S-Smart Software Solutions GmbH
> Inspiring Automation Solutions
> 3S-Smart Software Solutions GmbH
> Dipl.-Inf. Markus Schaber | Product Development Core Technology
> Memminger Str. 151 | 87439 Kempten | Germany
> Tel. +49-831-54031-979 | Fax +49-831-54031-50
> E-Mail: m.schaber at codesys.com | Web: http://www.codesys.com | CODESYS store: http://store.codesys.com
> CODESYS forum: http://forum.codesys.com
> Managing Directors: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Trade register: Kempten HRB 6186 | Tax ID No.: DE 167014915
> This e-mail may contain confidential and/or privileged information. If you are not the intended recipient (or have received
> this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure
> or distribution of the material in this e-mail is strictly forbidden.
> Ironpython-users mailing list
> Ironpython-users at python.org
More information about the Ironpython-users