Problems using shedskin

62 views
Skip to first unread message

Shaunak De

unread,
Sep 12, 2013, 2:36:24 AM9/12/13
to shedskin...@googlegroups.com
Hi,
I have a simple file called test.py whic consists of this line:
print("Shaunak")

When I run shedskin I get this error:

K:\>shedskin test
*** SHED SKIN Python-to-C++ Compiler 0.9.4 ***
Copyright 2005-2011 Mark Dufour; License GNU GPL version 3 (See LICENSE)

Traceback (most recent call last):
  File "K:\shedskin-0.9.4\shedskin\shedskin\__init__.py", line 146, in <module>
    main()
  File "K:\shedskin-0.9.4\shedskin\shedskin\__init__.py", line 138, in main
    start(gx, main_module_name)
  File "K:\shedskin-0.9.4\shedskin\shedskin\__init__.py", line 126, in start
    analyze(gx, main_module_name)
  File "K:\shedskin-0.9.4\shedskin\shedskin\infer.py", line 1394, in analyze
    gx.main_module = graph.parse_module(module_name, gx)
  File "K:\shedskin-0.9.4\shedskin\shedskin\graph.py", line 1628, in parse_modul
e
    absolute_name, filename, relative_filename, builtin = find_module(gx, name,
module_paths)
  File "K:\shedskin-0.9.4\shedskin\shedskin\python.py", line 243, in find_module

    absolute_import_path = next(
NameError: global name 'next' is not defined

Jérémie Roquet

unread,
Sep 12, 2013, 6:13:39 AM9/12/13
to shedskin-discuss
Hi Shaunak,

2013/9/12 Shaunak De <shau...@gmail.com>:
> When I run shedskin I get this error:
> <snip>
>> NameError: global name 'next' is not defined

I guess you're using a version of CPython which is older than 2.6.
Please update to CPython 2.6 or 2.7.

Best regards,

--
Jérémie
Reply all
Reply to author
Forward
0 new messages