poppopjmp / shedskin

Automatically exported from code.google.com/p/shedskin
0 stars 0 forks source link

"IMPORT" namespace error #82

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Details:

E:\test>cat testosgetcwda.py
import os,sys

E:\test>cat testosgetcwd.py
from testosgetcwda import *
print os.getcwd(),sys.argv[0]

E:\test>ss -v testosgetcwd.py
[iterative type analysis..]
***
iterations: 3 templates: 80
[generating c++ code..]
*WARNING* testosgetcwd.py:2: variable 'os' has no type
*WARNING* testosgetcwd.py:2: variable 'sys' has no type
Elapsed Time:  0H 00M 04S

E:\test>nmake

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl  /Ox  /EHsc /TP /MT /nologo /W3 /WX- /O2 /Oi /Oy- /GL /Gm- /EHsc /GS /Gy /fp:precise /Zc:
wchar_t /Zc:forScope /D "and"="&&" /D "or"="||" /D "not"="!" /D "WIN32" /D 
"_CONSOLE" /D "ALL_INTERI
OR_POINTERS" /D "GC_NOT_DLL" /D "_UNICODE" /D "PCRE_STATIC" /I. 
/I"C:\Downloads\tools\shedskin\sheds
kin-r1493"\lib.msvc10 /I"C:\Downloads\tools\shedskin\shedskin-r1493"\lib.msvc10 
-I. -IC:/Downloads/t
ools/shedskin/shedskin-r1493/shedskin/lib 
C:/Downloads/tools/shedskin/shedskin-r1493/shedskin/lib/st
at.cpp testosgetcwd.cpp 
C:/Downloads/tools/shedskin/shedskin-r1493/shedskin/lib/sys.cpp C:/Downloads
/tools/shedskin/shedskin-r1493/shedskin/lib/builtin.cpp testosgetcwda.cpp 
C:/Downloads/tools/shedski
n/shedskin-r1493/shedskin/lib/os/__init__.cpp 
C:/Downloads/tools/shedskin/shedskin-r1493/shedskin/li
b/os/path.cpp C:/Downloads/tools/shedskin/shedskin-r1493/shedskin/lib/re.cpp  
/link libbz2.lib gc.li
b pcre.lib user32.lib 
/libpath:"C:\Downloads\tools\shedskin\shedskin-r1493"\lib.msvc10 /libpath:"C:\
Downloads\tools\shedskin\shedskin-r1493"\lib.msvc10  /subsystem:console  
/OPT:REF /OPT:ICF /LARGEADD
RESSAWARE /NODEFAULTLIB:msvcrt /out:testosgetcwd.exe
stat.cpp
testosgetcwd.cpp
testosgetcwd.cpp(12) : error C2227: left of '->getcwd' must point to 
class/struct/union/generic type

        type is 'void *'
testosgetcwd.cpp(12) : error C2227: left of '->argv' must point to 
class/struct/union/generic type
        type is 'void *'
testosgetcwd.cpp(12) : error C2227: left of '->__getfirst__' must point to 
class/struct/union/generi
c type
sys.cpp
builtin.cpp
testosgetcwda.cpp
__init__.cpp
C:/Downloads/tools/shedskin/shedskin-r1493/shedskin/lib/os/__init__.cpp(292) : 
warning C4244: '=' :
conversion from '__time64_t' to '__shedskin__::__ss_int', possible loss of data
C:/Downloads/tools/shedskin/shedskin-r1493/shedskin/lib/os/__init__.cpp(293) : 
warning C4244: '=' :
conversion from '__time64_t' to '__shedskin__::__ss_int', possible loss of data
C:/Downloads/tools/shedskin/shedskin-r1493/shedskin/lib/os/__init__.cpp(294) : 
warning C4244: '=' :
conversion from '__time64_t' to '__shedskin__::__ss_int', possible loss of data
path.cpp
re.cpp
NMAKE : fatal error U1077: 'cl' : return code '0x2'
Stop.

Original issue reported on code.google.com by jason.mi...@gmail.com on 21 Jun 2010 at 10:26

GoogleCodeExporter commented 8 years ago
ah yes, this code is a bit ugly of course, but it should work.. :-)

Original comment by mark.duf...@gmail.com on 30 Jun 2010 at 4:26

GoogleCodeExporter commented 8 years ago
fixed in GIT (see gitorious.org/shedskin). thanks again for reporting!

Original comment by mark.duf...@gmail.com on 2 Jul 2010 at 12:25