Export issue

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Re: Export issue

Postby ardent red » Mon Jan 26, 2009 9:15 pm

Okay, I've tried installing yaml. The installation went without errors and the tests work- yet when I try to 'import yaml' with the blender command line (or IDLE) it can't find the yaml module. The modules have been installed into tom's imac/library/python/2.5/site-packages.

When I try to install PyCrypto, in the step where I run python2.5 setup.py build, it throws up this error:
Code: Select all
lipo: can't open input file: /var/folders/eD/eDjtrawBH44FeVa6FSJNUk+++TI/-Tmp-//cc1YaY1i.out (No such file or directory)
error: command 'gcc' failed with exit status 1
ardent red
 
Posts: 150
Joined: Fri Apr 18, 2008 3:41 pm
Location: The big little New Zealand

Re: Export issue

Postby Christian Walther » Tue Jan 27, 2009 5:07 am

ardent red wrote:Okay, I've tried installing yaml. The installation went without errors and the tests work- yet when I try to 'import yaml' with the blender command line (or IDLE) it can't find the yaml module. The modules have been installed into tom's imac/library/python/2.5/site-packages.

But when you run python2.5 on the system command line (Terminal) and try import yaml, it works? What's the output when you type import sys; sys.path there?

Maybe Blender doesn't use the same Python 2.5 install after all? Can you run System > System Information… from the Help menu in Blender and post the resulting text file (use Save As in the text editor to get it out of the Blender file into a standalone text file)?

When I try to install PyCrypto, in the step where I run python2.5 setup.py build, it throws up this error:
Code: Select all
lipo: can't open input file: /var/folders/eD/eDjtrawBH44FeVa6FSJNUk+++TI/-Tmp-//cc1YaY1i.out (No such file or directory)
error: command 'gcc' failed with exit status 1

Doesn't tell me a lot. Can you post the whole output? I assume you have the developer tools installed, otherwise it probably wouldn't even get that far.
Christian Walther
 
Posts: 443
Joined: Sun Jun 08, 2008 3:10 am
Location: Switzerland

Re: Export issue

Postby ardent red » Tue Jan 27, 2009 3:26 pm

System > System Information returns a python error. Console Says:
Code: Select all
28/Jan/09 11:17:26 AM [0x0-0x1a01a].org.blenderfoundation.blender[139] Traceback (most recent call last):
28/Jan/09 11:17:26 AM [0x0-0x1a01a].org.blenderfoundation.blender[139]   File "<string>", line 1, in <module>
28/Jan/09 11:17:26 AM [0x0-0x1a01a].org.blenderfoundation.blender[139]   File "/Applications/blender/scripts/sysinfo.py", line 171, in <module>
28/Jan/09 11:17:26 AM [0x0-0x1a01a].org.blenderfoundation.blender[139]     configdir = bsys.join(Blender.Get('datadir'), 'config')
28/Jan/09 11:17:26 AM [0x0-0x1a01a].org.blenderfoundation.blender[139] TypeError: expected string argument


When I try python2.5 then import yaml on the command line, it seems to work. import sys; sys.path after importing yaml returns:
Code: Select all
>>> import sys; sys.path
['', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages', '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload', '/Library/Python/2.5/site-packages', '/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyObjC']


and here's the full Crypto compile stuff, including the error:
Code: Select all
Toms-iMac:~ Tom$ python2.5 setup.py build
running build
running build_py
running build_ext
building 'Crypto.Hash.MD2' extension
gcc -fno-strict-aliasing -Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common -dynamic -DNDEBUG -g -Os -Wall -Wstrict-prototypes -DMACOSX -I/usr/include/ffi -DENABLE_DTRACE -arch i386 -arch ppc -pipe -Isrc/ -I/System/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 -c src/MD2.c -o build/temp.macosx-10.5-i386-2.5/src/MD2.o
src/MD2.c:14:20: error: string.h: No such file or directory
src/MD2.c:15:20: error: Python.h: No such file or directory
src/MD2.c: In function ‘hash_init’:
src/MD2.c:31: warning: implicit declaration of function ‘memset’
src/MD2.c:31: warning: incompatible implicit declaration of built-in function ‘memset’
src/MD2.c: In function ‘hash_copy’:
src/MD2.c:61: warning: implicit declaration of function ‘memcpy’
src/MD2.c:61: warning: incompatible implicit declaration of built-in function ‘memcpy’
src/MD2.c: In function ‘hash_update’:
src/MD2.c:73: warning: incompatible implicit declaration of built-in function ‘memcpy’
src/MD2.c: At top level:
src/MD2.c:102: error: syntax error before ‘*’ token
src/MD2.c:104: warning: return type defaults to ‘int’
src/MD2.c: In function ‘hash_digest’:
src/MD2.c:110: warning: incompatible implicit declaration of built-in function ‘memcpy’
src/MD2.c:115: warning: implicit declaration of function ‘PyString_FromStringAndSize’
src/MD2.c:115: warning: return makes pointer from integer without a cast
In file included from src/MD2.c:118:
src/hash_template.c: At top level:
src/hash_template.c:29: error: syntax error before ‘PyObject_HEAD’
src/hash_template.c:29: warning: no semicolon at end of struct or union
src/hash_template.c:31: warning: type defaults to ‘int’ in declaration of ‘ALGobject’
src/hash_template.c:31: warning: data definition has no type or storage class
src/hash_template.c:33: error: syntax error before ‘PyTypeObject’
src/hash_template.c:33: warning: type defaults to ‘int’ in declaration of ‘ALGtype’
src/hash_template.c:33: warning: data definition has no type or storage class
src/hash_template.c:37: error: syntax error before ‘*’ token
src/hash_template.c:39: warning: return type defaults to ‘int’
src/hash_template.c: In function ‘newALGobject’:
src/hash_template.c:40: error: ‘new’ undeclared (first use in this function)
src/hash_template.c:40: error: (Each undeclared identifier is reported only once
src/hash_template.c:40: error: for each function it appears in.)
src/hash_template.c:42: warning: implicit declaration of function ‘PyObject_New’
src/hash_template.c: At top level:
src/hash_template.c:49: error: syntax error before ‘*’ token
src/hash_template.c:50: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_dealloc’:
src/hash_template.c:51: error: ‘self’ undeclared (first use in this function)
src/hash_template.c:51: error: syntax error before ‘)’ token
src/hash_template.c:54: warning: incompatible implicit declaration of built-in function ‘memset’
src/hash_template.c:55: warning: implicit declaration of function ‘PyObject_Del’
src/hash_template.c:55: error: ‘ptr’ undeclared (first use in this function)
src/hash_template.c: At top level:
src/hash_template.c:64: error: syntax error before ‘*’ token
src/hash_template.c:65: error: syntax error before ‘*’ token
src/hash_template.c:66: warning: return type defaults to ‘int’
src/hash_template.c:66: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_copy’:
src/hash_template.c:67: error: ‘newobj’ undeclared (first use in this function)
src/hash_template.c:69: warning: implicit declaration of function ‘PyArg_ParseTuple’
src/hash_template.c:69: error: ‘args’ undeclared (first use in this function)
src/hash_template.c:70: error: ‘NULL’ undeclared (first use in this function)
src/hash_template.c:76: error: ‘self’ undeclared (first use in this function)
src/hash_template.c:77: error: ‘PyObject’ undeclared (first use in this function)
src/hash_template.c:77: error: syntax error before ‘)’ token
src/hash_template.c: At top level:
src/hash_template.c:83: error: syntax error before ‘*’ token
src/hash_template.c:84: error: syntax error before ‘*’ token
src/hash_template.c:85: warning: return type defaults to ‘int’
src/hash_template.c:85: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_digest’:
src/hash_template.c:86: error: ‘args’ undeclared (first use in this function)
src/hash_template.c:87: error: ‘NULL’ undeclared (first use in this function)
src/hash_template.c:89: error: ‘PyObject’ undeclared (first use in this function)
src/hash_template.c:89: error: syntax error before ‘)’ token
src/hash_template.c: At top level:
src/hash_template.c:95: error: syntax error before ‘*’ token
src/hash_template.c:96: error: syntax error before ‘*’ token
src/hash_template.c:97: warning: return type defaults to ‘int’
src/hash_template.c:97: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_hexdigest’:
src/hash_template.c:98: error: ‘PyObject’ undeclared (first use in this function)
src/hash_template.c:98: error: ‘value’ undeclared (first use in this function)
src/hash_template.c:98: error: ‘retval’ undeclared (first use in this function)
src/hash_template.c:98: warning: left-hand operand of comma expression has no effect
src/hash_template.c:98: warning: statement with no effect
src/hash_template.c:102: error: ‘args’ undeclared (first use in this function)
src/hash_template.c:103: error: ‘NULL’ undeclared (first use in this function)
src/hash_template.c:106: error: syntax error before ‘)’ token
src/hash_template.c:107: warning: implicit declaration of function ‘PyString_Size’
src/hash_template.c:108: warning: implicit declaration of function ‘PyString_AsString’
src/hash_template.c:108: warning: assignment makes pointer from integer without a cast
src/hash_template.c:112: warning: assignment makes pointer from integer without a cast
src/hash_template.c:123: warning: implicit declaration of function ‘Py_DECREF’
src/hash_template.c: At top level:
src/hash_template.c:130: error: syntax error before ‘*’ token
src/hash_template.c:131: error: syntax error before ‘*’ token
src/hash_template.c:132: warning: return type defaults to ‘int’
src/hash_template.c:132: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_update’:
src/hash_template.c:136: error: ‘args’ undeclared (first use in this function)
src/hash_template.c:137: error: ‘NULL’ undeclared (first use in this function)
src/hash_template.c:139: error: ‘self’ undeclared (first use in this function)
src/hash_template.c:141: warning: implicit declaration of function ‘Py_INCREF’
src/hash_template.c:141: error: ‘Py_None’ undeclared (first use in this function)
src/hash_template.c: At top level:
src/hash_template.c:145: error: syntax error before ‘ALG_methods’
src/hash_template.c:145: warning: type defaults to ‘int’ in declaration of ‘ALG_methods’
src/hash_template.c:146: warning: braces around scalar initializer
src/hash_template.c:146: warning: (near initialization for ‘ALG_methods[0]’)
src/hash_template.c:146: warning: initialization makes integer from pointer without a cast
src/hash_template.c:146: error: ‘PyCFunction’ undeclared here (not in a function)
src/hash_template.c:146: warning: excess elements in scalar initializer
src/hash_template.c:146: warning: (near initialization for ‘ALG_methods[0]’)
src/hash_template.c:146: error: syntax error before ‘ALG_copy’
src/hash_template.c:146: error: ‘METH_VARARGS’ undeclared here (not in a function)
src/hash_template.c:146: warning: excess elements in scalar initializer
src/hash_template.c:146: warning: (near initialization for ‘ALG_methods[0]’)
src/hash_template.c:146: warning: excess elements in scalar initializer
src/hash_template.c:146: warning: (near initialization for ‘ALG_methods[0]’)
src/hash_template.c:147: warning: braces around scalar initializer
src/hash_template.c:147: warning: (near initialization for ‘ALG_methods[1]’)
src/hash_template.c:147: warning: initialization makes integer from pointer without a cast
src/hash_template.c:147: warning: excess elements in scalar initializer
src/hash_template.c:147: warning: (near initialization for ‘ALG_methods[1]’)
src/hash_template.c:147: error: syntax error before ‘ALG_digest’
src/hash_template.c:147: warning: excess elements in scalar initializer
src/hash_template.c:147: warning: (near initialization for ‘ALG_methods[1]’)
src/hash_template.c:147: warning: excess elements in scalar initializer
src/hash_template.c:147: warning: (near initialization for ‘ALG_methods[1]’)
src/hash_template.c:148: warning: braces around scalar initializer
src/hash_template.c:148: warning: (near initialization for ‘ALG_methods[2]’)
src/hash_template.c:148: warning: initialization makes integer from pointer without a cast
src/hash_template.c:148: warning: excess elements in scalar initializer
src/hash_template.c:148: warning: (near initialization for ‘ALG_methods[2]’)
src/hash_template.c:148: error: syntax error before ‘ALG_hexdigest’
src/hash_template.c:148: warning: excess elements in scalar initializer
src/hash_template.c:148: warning: (near initialization for ‘ALG_methods[2]’)
src/hash_template.c:149: warning: excess elements in scalar initializer
src/hash_template.c:149: warning: (near initialization for ‘ALG_methods[2]’)
src/hash_template.c:150: warning: braces around scalar initializer
src/hash_template.c:150: warning: (near initialization for ‘ALG_methods[3]’)
src/hash_template.c:150: warning: initialization makes integer from pointer without a cast
src/hash_template.c:150: warning: excess elements in scalar initializer
src/hash_template.c:150: warning: (near initialization for ‘ALG_methods[3]’)
src/hash_template.c:150: error: syntax error before ‘ALG_update’
src/hash_template.c:150: warning: excess elements in scalar initializer
src/hash_template.c:150: warning: (near initialization for ‘ALG_methods[3]’)
src/hash_template.c:150: warning: excess elements in scalar initializer
src/hash_template.c:150: warning: (near initialization for ‘ALG_methods[3]’)
src/hash_template.c:151: warning: braces around scalar initializer
src/hash_template.c:151: warning: (near initialization for ‘ALG_methods[4]’)
src/hash_template.c:151: error: ‘NULL’ undeclared here (not in a function)
src/hash_template.c:151: warning: excess elements in scalar initializer
src/hash_template.c:151: warning: (near initialization for ‘ALG_methods[4]’)
src/hash_template.c:152: warning: data definition has no type or storage class
src/hash_template.c:154: error: syntax error before ‘*’ token
src/hash_template.c:155: error: syntax error before ‘*’ token
src/hash_template.c:156: warning: return type defaults to ‘int’
src/hash_template.c:156: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_getattr’:
src/hash_template.c:157: warning: implicit declaration of function ‘strcmp’
src/hash_template.c:157: error: ‘name’ undeclared (first use in this function)
src/hash_template.c:158: warning: implicit declaration of function ‘PyInt_FromLong’
src/hash_template.c:158: warning: return makes pointer from integer without a cast
src/hash_template.c:160: warning: implicit declaration of function ‘Py_FindMethod’
src/hash_template.c:160: error: ‘self’ undeclared (first use in this function)
src/hash_template.c:160: warning: return makes pointer from integer without a cast
src/hash_template.c: At top level:
src/hash_template.c:163: error: syntax error before ‘ALGtype’
src/hash_template.c:163: warning: type defaults to ‘int’ in declaration of ‘ALGtype’
src/hash_template.c:164: warning: implicit declaration of function ‘PyObject_HEAD_INIT’
src/hash_template.c:165: error: initializer element is not constant
src/hash_template.c:165: error: (near initialization for ‘ALGtype’)
src/hash_template.c:165: error: syntax error before numeric constant
src/hash_template.c:166: warning: excess elements in scalar initializer
src/hash_template.c:166: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:167: warning: excess elements in scalar initializer
src/hash_template.c:167: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:168: warning: excess elements in scalar initializer
src/hash_template.c:168: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:170: warning: excess elements in scalar initializer
src/hash_template.c:170: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:171: warning: excess elements in scalar initializer
src/hash_template.c:171: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:172: warning: excess elements in scalar initializer
src/hash_template.c:172: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:173: warning: excess elements in scalar initializer
src/hash_template.c:173: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:174: warning: excess elements in scalar initializer
src/hash_template.c:174: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:175: warning: excess elements in scalar initializer
src/hash_template.c:175: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:176: warning: excess elements in scalar initializer
src/hash_template.c:176: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:177: warning: data definition has no type or storage class
src/hash_template.c:188: error: syntax error before ‘*’ token
src/hash_template.c:189: error: syntax error before ‘*’ token
src/hash_template.c:190: warning: return type defaults to ‘int’
src/hash_template.c:190: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_new’:
src/hash_template.c:191: error: ‘new’ undeclared (first use in this function)
src/hash_template.c:191: error: invalid operands to binary *
src/hash_template.c:191: warning: statement with no effect
src/hash_template.c:198: error: ‘args’ undeclared (first use in this function)
src/hash_template.c:204: error: request for member ‘st’ in something not a structure or union
src/hash_template.c:204: warning: passing argument 1 of ‘hash_init’ from incompatible pointer type
src/hash_template.c:206: warning: implicit declaration of function ‘PyErr_Occurred’
src/hash_template.c:211: error: request for member ‘st’ in something not a structure or union
src/hash_template.c:211: warning: passing argument 1 of ‘hash_update’ from incompatible pointer type
src/hash_template.c:213: error: ‘PyObject’ undeclared (first use in this function)
src/hash_template.c:213: error: syntax error before ‘)’ token
src/hash_template.c: At top level:
src/hash_template.c:219: error: array type has incomplete element type
src/hash_template.c:220: error: syntax error before ‘ALG_new’
src/hash_template.c: In function ‘initMD2’:
src/hash_template.c:236: error: ‘PyObject’ undeclared (first use in this function)
src/hash_template.c:236: error: ‘m’ undeclared (first use in this function)
src/hash_template.c:236: error: invalid operands to binary *
src/hash_template.c:236: warning: statement with no effect
src/hash_template.c:238: error: request for member ‘ob_type’ in something not a structure or union
src/hash_template.c:238: error: ‘PyType_Type’ undeclared (first use in this function)
src/hash_template.c:238: warning: statement with no effect
src/hash_template.c:239: warning: implicit declaration of function ‘Py_InitModule’
src/hash_template.c:239: warning: statement with no effect
src/hash_template.c:242: error: ‘o’ undeclared (first use in this function)
src/hash_template.c:242: error: invalid operands to binary *
src/hash_template.c:242: warning: statement with no effect
src/hash_template.c:242: warning: implicit declaration of function ‘PyDict_SetItemString’
src/hash_template.c:242: warning: implicit declaration of function ‘PyModule_GetDict’
src/hash_template.c:246: warning: implicit declaration of function ‘Py_FatalError’
src/MD2.c:14:20: error: string.h: No such file or directory
src/MD2.c:15:20: error: Python.h: No such file or directory
src/MD2.c: In function ‘hash_init’:
src/MD2.c:31: warning: implicit declaration of function ‘memset’
src/MD2.c:31: warning: incompatible implicit declaration of built-in function ‘memset’
src/MD2.c: In function ‘hash_copy’:
src/MD2.c:61: warning: implicit declaration of function ‘memcpy’
src/MD2.c:61: warning: incompatible implicit declaration of built-in function ‘memcpy’
src/MD2.c: In function ‘hash_update’:
src/MD2.c:73: warning: incompatible implicit declaration of built-in function ‘memcpy’
src/MD2.c: At top level:
src/MD2.c:102: error: syntax error before ‘*’ token
src/MD2.c:104: warning: return type defaults to ‘int’
src/MD2.c: In function ‘hash_digest’:
src/MD2.c:110: warning: incompatible implicit declaration of built-in function ‘memcpy’
src/MD2.c:115: warning: implicit declaration of function ‘PyString_FromStringAndSize’
src/MD2.c:115: warning: return makes pointer from integer without a cast
In file included from src/MD2.c:118:
src/hash_template.c: At top level:
src/hash_template.c:29: error: syntax error before ‘PyObject_HEAD’
src/hash_template.c:29: warning: no semicolon at end of struct or union
src/hash_template.c:31: warning: type defaults to ‘int’ in declaration of ‘ALGobject’
src/hash_template.c:31: warning: data definition has no type or storage class
src/hash_template.c:33: error: syntax error before ‘PyTypeObject’
src/hash_template.c:33: warning: type defaults to ‘int’ in declaration of ‘ALGtype’
src/hash_template.c:33: warning: data definition has no type or storage class
src/hash_template.c:37: error: syntax error before ‘*’ token
src/hash_template.c:39: warning: return type defaults to ‘int’
src/hash_template.c: In function ‘newALGobject’:
src/hash_template.c:40: error: ‘new’ undeclared (first use in this function)
src/hash_template.c:40: error: (Each undeclared identifier is reported only once
src/hash_template.c:40: error: for each function it appears in.)
src/hash_template.c:42: warning: implicit declaration of function ‘PyObject_New’
src/hash_template.c: At top level:
src/hash_template.c:49: error: syntax error before ‘*’ token
src/hash_template.c:50: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_dealloc’:
src/hash_template.c:51: error: ‘self’ undeclared (first use in this function)
src/hash_template.c:51: error: syntax error before ‘)’ token
src/hash_template.c:54: warning: incompatible implicit declaration of built-in function ‘memset’
src/hash_template.c:55: warning: implicit declaration of function ‘PyObject_Del’
src/hash_template.c:55: error: ‘ptr’ undeclared (first use in this function)
src/hash_template.c: At top level:
src/hash_template.c:64: error: syntax error before ‘*’ token
src/hash_template.c:65: error: syntax error before ‘*’ token
src/hash_template.c:66: warning: return type defaults to ‘int’
src/hash_template.c:66: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_copy’:
src/hash_template.c:67: error: ‘newobj’ undeclared (first use in this function)
src/hash_template.c:69: warning: implicit declaration of function ‘PyArg_ParseTuple’
src/hash_template.c:69: error: ‘args’ undeclared (first use in this function)
src/hash_template.c:70: error: ‘NULL’ undeclared (first use in this function)
src/hash_template.c:76: error: ‘self’ undeclared (first use in this function)
src/hash_template.c:77: error: ‘PyObject’ undeclared (first use in this function)
src/hash_template.c:77: error: syntax error before ‘)’ token
src/hash_template.c: At top level:
src/hash_template.c:83: error: syntax error before ‘*’ token
src/hash_template.c:84: error: syntax error before ‘*’ token
src/hash_template.c:85: warning: return type defaults to ‘int’
src/hash_template.c:85: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_digest’:
src/hash_template.c:86: error: ‘args’ undeclared (first use in this function)
src/hash_template.c:87: error: ‘NULL’ undeclared (first use in this function)
src/hash_template.c:89: error: ‘PyObject’ undeclared (first use in this function)
src/hash_template.c:89: error: syntax error before ‘)’ token
src/hash_template.c: At top level:
src/hash_template.c:95: error: syntax error before ‘*’ token
src/hash_template.c:96: error: syntax error before ‘*’ token
src/hash_template.c:97: warning: return type defaults to ‘int’
src/hash_template.c:97: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_hexdigest’:
src/hash_template.c:98: error: ‘PyObject’ undeclared (first use in this function)
src/hash_template.c:98: error: ‘value’ undeclared (first use in this function)
src/hash_template.c:98: error: ‘retval’ undeclared (first use in this function)
src/hash_template.c:98: warning: left-hand operand of comma expression has no effect
src/hash_template.c:98: warning: statement with no effect
src/hash_template.c:102: error: ‘args’ undeclared (first use in this function)
src/hash_template.c:103: error: ‘NULL’ undeclared (first use in this function)
src/hash_template.c:106: error: syntax error before ‘)’ token
src/hash_template.c:107: warning: implicit declaration of function ‘PyString_Size’
src/hash_template.c:108: warning: implicit declaration of function ‘PyString_AsString’
src/hash_template.c:108: warning: assignment makes pointer from integer without a cast
src/hash_template.c:112: warning: assignment makes pointer from integer without a cast
src/hash_template.c:123: warning: implicit declaration of function ‘Py_DECREF’
src/hash_template.c: At top level:
src/hash_template.c:130: error: syntax error before ‘*’ token
src/hash_template.c:131: error: syntax error before ‘*’ token
src/hash_template.c:132: warning: return type defaults to ‘int’
src/hash_template.c:132: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_update’:
src/hash_template.c:136: error: ‘args’ undeclared (first use in this function)
src/hash_template.c:137: error: ‘NULL’ undeclared (first use in this function)
src/hash_template.c:139: error: ‘self’ undeclared (first use in this function)
src/hash_template.c:141: warning: implicit declaration of function ‘Py_INCREF’
src/hash_template.c:141: error: ‘Py_None’ undeclared (first use in this function)
src/hash_template.c: At top level:
src/hash_template.c:145: error: syntax error before ‘ALG_methods’
src/hash_template.c:145: warning: type defaults to ‘int’ in declaration of ‘ALG_methods’
src/hash_template.c:146: warning: braces around scalar initializer
src/hash_template.c:146: warning: (near initialization for ‘ALG_methods[0]’)
src/hash_template.c:146: warning: initialization makes integer from pointer without a cast
src/hash_template.c:146: error: ‘PyCFunction’ undeclared here (not in a function)
src/hash_template.c:146: warning: excess elements in scalar initializer
src/hash_template.c:146: warning: (near initialization for ‘ALG_methods[0]’)
src/hash_template.c:146: error: syntax error before ‘ALG_copy’
src/hash_template.c:146: error: ‘METH_VARARGS’ undeclared here (not in a function)
src/hash_template.c:146: warning: excess elements in scalar initializer
src/hash_template.c:146: warning: (near initialization for ‘ALG_methods[0]’)
src/hash_template.c:146: warning: excess elements in scalar initializer
src/hash_template.c:146: warning: (near initialization for ‘ALG_methods[0]’)
src/hash_template.c:147: warning: braces around scalar initializer
src/hash_template.c:147: warning: (near initialization for ‘ALG_methods[1]’)
src/hash_template.c:147: warning: initialization makes integer from pointer without a cast
src/hash_template.c:147: warning: excess elements in scalar initializer
src/hash_template.c:147: warning: (near initialization for ‘ALG_methods[1]’)
src/hash_template.c:147: error: syntax error before ‘ALG_digest’
src/hash_template.c:147: warning: excess elements in scalar initializer
src/hash_template.c:147: warning: (near initialization for ‘ALG_methods[1]’)
src/hash_template.c:147: warning: excess elements in scalar initializer
src/hash_template.c:147: warning: (near initialization for ‘ALG_methods[1]’)
src/hash_template.c:148: warning: braces around scalar initializer
src/hash_template.c:148: warning: (near initialization for ‘ALG_methods[2]’)
src/hash_template.c:148: warning: initialization makes integer from pointer without a cast
src/hash_template.c:148: warning: excess elements in scalar initializer
src/hash_template.c:148: warning: (near initialization for ‘ALG_methods[2]’)
src/hash_template.c:148: error: syntax error before ‘ALG_hexdigest’
src/hash_template.c:148: warning: excess elements in scalar initializer
src/hash_template.c:148: warning: (near initialization for ‘ALG_methods[2]’)
src/hash_template.c:149: warning: excess elements in scalar initializer
src/hash_template.c:149: warning: (near initialization for ‘ALG_methods[2]’)
src/hash_template.c:150: warning: braces around scalar initializer
src/hash_template.c:150: warning: (near initialization for ‘ALG_methods[3]’)
src/hash_template.c:150: warning: initialization makes integer from pointer without a cast
src/hash_template.c:150: warning: excess elements in scalar initializer
src/hash_template.c:150: warning: (near initialization for ‘ALG_methods[3]’)
src/hash_template.c:150: error: syntax error before ‘ALG_update’
src/hash_template.c:150: warning: excess elements in scalar initializer
src/hash_template.c:150: warning: (near initialization for ‘ALG_methods[3]’)
src/hash_template.c:150: warning: excess elements in scalar initializer
src/hash_template.c:150: warning: (near initialization for ‘ALG_methods[3]’)
src/hash_template.c:151: warning: braces around scalar initializer
src/hash_template.c:151: warning: (near initialization for ‘ALG_methods[4]’)
src/hash_template.c:151: error: ‘NULL’ undeclared here (not in a function)
src/hash_template.c:151: warning: excess elements in scalar initializer
src/hash_template.c:151: warning: (near initialization for ‘ALG_methods[4]’)
src/hash_template.c:152: warning: data definition has no type or storage class
src/hash_template.c:154: error: syntax error before ‘*’ token
src/hash_template.c:155: error: syntax error before ‘*’ token
src/hash_template.c:156: warning: return type defaults to ‘int’
src/hash_template.c:156: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_getattr’:
src/hash_template.c:157: warning: implicit declaration of function ‘strcmp’
src/hash_template.c:157: error: ‘name’ undeclared (first use in this function)
src/hash_template.c:158: warning: implicit declaration of function ‘PyInt_FromLong’
src/hash_template.c:158: warning: return makes pointer from integer without a cast
src/hash_template.c:160: warning: implicit declaration of function ‘Py_FindMethod’
src/hash_template.c:160: error: ‘self’ undeclared (first use in this function)
src/hash_template.c:160: warning: return makes pointer from integer without a cast
src/hash_template.c: At top level:
src/hash_template.c:163: error: syntax error before ‘ALGtype’
src/hash_template.c:163: warning: type defaults to ‘int’ in declaration of ‘ALGtype’
src/hash_template.c:164: warning: implicit declaration of function ‘PyObject_HEAD_INIT’
src/hash_template.c:165: error: initializer element is not constant
src/hash_template.c:165: error: (near initialization for ‘ALGtype’)
src/hash_template.c:165: error: syntax error before numeric constant
src/hash_template.c:166: warning: excess elements in scalar initializer
src/hash_template.c:166: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:167: warning: excess elements in scalar initializer
src/hash_template.c:167: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:168: warning: excess elements in scalar initializer
src/hash_template.c:168: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:170: warning: excess elements in scalar initializer
src/hash_template.c:170: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:171: warning: excess elements in scalar initializer
src/hash_template.c:171: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:172: warning: excess elements in scalar initializer
src/hash_template.c:172: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:173: warning: excess elements in scalar initializer
src/hash_template.c:173: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:174: warning: excess elements in scalar initializer
src/hash_template.c:174: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:175: warning: excess elements in scalar initializer
src/hash_template.c:175: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:176: warning: excess elements in scalar initializer
src/hash_template.c:176: warning: (near initialization for ‘ALGtype’)
src/hash_template.c:177: warning: data definition has no type or storage class
src/hash_template.c:188: error: syntax error before ‘*’ token
src/hash_template.c:189: error: syntax error before ‘*’ token
src/hash_template.c:190: warning: return type defaults to ‘int’
src/hash_template.c:190: warning: function declaration isn’t a prototype
src/hash_template.c: In function ‘ALG_new’:
src/hash_template.c:191: error: ‘new’ undeclared (first use in this function)
src/hash_template.c:191: error: invalid operands to binary *
src/hash_template.c:191: warning: statement with no effect
src/hash_template.c:198: error: ‘args’ undeclared (first use in this function)
src/hash_template.c:204: error: request for member ‘st’ in something not a structure or union
src/hash_template.c:204: warning: passing argument 1 of ‘hash_init’ from incompatible pointer type
src/hash_template.c:206: warning: implicit declaration of function ‘PyErr_Occurred’
src/hash_template.c:211: error: request for member ‘st’ in something not a structure or union
src/hash_template.c:211: warning: passing argument 1 of ‘hash_update’ from incompatible pointer type
src/hash_template.c:213: error: ‘PyObject’ undeclared (first use in this function)
src/hash_template.c:213: error: syntax error before ‘)’ token
src/hash_template.c: At top level:
src/hash_template.c:219: error: array type has incomplete element type
src/hash_template.c:220: error: syntax error before ‘ALG_new’
src/hash_template.c: In function ‘initMD2’:
src/hash_template.c:236: error: ‘PyObject’ undeclared (first use in this function)
src/hash_template.c:236: error: ‘m’ undeclared (first use in this function)
src/hash_template.c:236: error: invalid operands to binary *
src/hash_template.c:236: warning: statement with no effect
src/hash_template.c:238: error: request for member ‘ob_type’ in something not a structure or union
src/hash_template.c:238: error: ‘PyType_Type’ undeclared (first use in this function)
src/hash_template.c:238: warning: statement with no effect
src/hash_template.c:239: warning: implicit declaration of function ‘Py_InitModule’
src/hash_template.c:239: warning: statement with no effect
src/hash_template.c:242: error: ‘o’ undeclared (first use in this function)
src/hash_template.c:242: error: invalid operands to binary *
src/hash_template.c:242: warning: statement with no effect
src/hash_template.c:242: warning: implicit declaration of function ‘PyDict_SetItemString’
src/hash_template.c:242: warning: implicit declaration of function ‘PyModule_GetDict’
src/hash_template.c:246: warning: implicit declaration of function ‘Py_FatalError’
lipo: can't open input file: /var/folders/eD/eDjtrawBH44FeVa6FSJNUk+++TI/-Tmp-//ccD6b0pW.out (No such file or directory)
error: command 'gcc' failed with exit status 1
ardent red
 
Posts: 150
Joined: Fri Apr 18, 2008 3:41 pm
Location: The big little New Zealand

Re: Export issue

Postby Christian Walther » Wed Jan 28, 2009 5:30 am

ardent red wrote:System > System Information returns a python error.

That looks like a bug in the sysinfo.py script. Different question: what version of Blender do you have / how did you install it? (I used blender-2.48a-OSX-10.4-py2.5-intel.zip from the official Blender download page.) You could also run the import sys; sys.path commands in the Blender Interactive Python Console to find out what Python installation it is using (to retrieve the output in a copyable form, right-click on the console and choose Write Output Data (blue), then go to a text editor window and open the file it created).

Code: Select all
>>> import sys; sys.path
['', '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip', …

Looks good. This is the default Python installation that comes with Mac OS X.

and here's the full Crypto compile stuff, including the error:
Code: Select all

src/MD2.c:14:20: error: string.h: No such file or directory
src/MD2.c:15:20: error: Python.h: No such file or directory

Hmm, you have gcc but not string.h or Python.h? Strange. Have you installed the Apple Developer Tools (from your Mac OS X DVD), including the optional UNIX Development Support package? If you are not sure, I guess it can't hurt doing it again. (If you feel like persevering - again, as far as I understand, PyCrypto is optional for PyPRP and not needed unless you want to read/write Myst V ages or create ages for Alcugs servers.)

Don't worry, we'll eventually get to the root of this, although it may take us a while if we continue at our current pace of one question per day… :lol:
Christian Walther
 
Posts: 443
Joined: Sun Jun 08, 2008 3:10 am
Location: Switzerland

Re: Export issue

Postby ardent red » Wed Jan 28, 2009 10:09 pm

Woo! I reinstalled XCode (I already had it, must've deleted those files in a crazy file-cleaning rampage :shock:), and PyCrypto installs fine. So, now I have PyYAML, PyCrypto, and the PIL installed. Not too sure which Blender version I had and how it was installed, so I grabbed your version of Blender (blender-2.48a-OSX-10.4-py2.5-intel.zip). I extracted the .zip and placed the Blender folder into applications. PyPRP still doesn't work, and Blender still can't find PyYAML, PyCrypto, or PIL. However, System > System information does work! Here's what it said:
Code: Select all
=====================================
=  Blender 2.48 System Information  =
=====================================


Built on 2008-10-22 18:21:01, Rev-17179M    Version darwin dynamic

Platform: darwin
========

Python:
======

- Version: 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)]

- Paths:

/Applications/blender 2.48a/blender.app/Contents/MacOS
/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-darwin
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/plat-mac/lib-scriptpackages
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-tk
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/lib-dynload
/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages
/Applications/blender/scripts
/Applications/blender 2.48a/blender.app/Contents/MacOS/.blender/scripts
/Applications/blender 2.48a/blender.app/Contents/MacOS/.blender/scripts/bpymodules

- Directories:

 Blender home dir:
  /Applications/blender 2.48a/blender.app/Contents/MacOS/.blender

 Default dir for scripts:
  /Applications/blender 2.48a/blender.app/Contents/MacOS/.blender/scripts

 Default "bpydata/" data dir for scripts:
  /Applications/blender 2.48a/blender.app/Contents/MacOS/.blender/scripts/bpydata

 User defined dir for scripts:
  <NOTICE> -- not found

 Data dir "bpydata/" inside user defined dir:
  <NOTICE> -- not found

 Default config data "bpydata/config/" dir:
  /Applications/blender 2.48a/blender.app/Contents/MacOS/.blender/scripts/bpydata/config

- Modules: all basic ones were found.

OpenGL:
======

- Renderer:   ATI Radeon HD 2600 PRO OpenGL Engine
- Vendor:     ATI Technologies Inc.
- Version:    2.0 ATI-1.5.36

- Extensions:

GL_ARB_transpose_matrix GL_ARB_vertex_program GL_ARB_vertex_blend
GL_ARB_window_pos GL_ARB_shader_objects GL_ARB_vertex_shader
GL_ARB_shading_language_100 GL_EXT_multi_draw_arrays
GL_EXT_clip_volume_hint GL_EXT_rescale_normal
GL_EXT_draw_range_elements GL_EXT_fog_coord
GL_EXT_gpu_program_parameters GL_EXT_geometry_shader4
GL_EXT_transform_feedback GL_APPLE_client_storage
GL_APPLE_specular_vector GL_APPLE_transform_hint
GL_APPLE_packed_pixels GL_APPLE_fence GL_APPLE_vertex_array_object
GL_APPLE_vertex_program_evaluators GL_APPLE_element_array
GL_APPLE_flush_render GL_APPLE_aux_depth_stencil
GL_NV_texgen_reflection GL_NV_light_max_exponent GL_IBM_rasterpos_clip
GL_SGIS_generate_mipmap GL_ARB_imaging GL_ARB_point_parameters
GL_ARB_texture_env_crossbar GL_ARB_texture_border_clamp
GL_ARB_multitexture GL_ARB_texture_env_add GL_ARB_texture_cube_map
GL_ARB_texture_env_dot3 GL_ARB_multisample GL_ARB_texture_env_combine
GL_ARB_texture_compression GL_ARB_texture_mirrored_repeat
GL_ARB_shadow GL_ARB_depth_texture GL_ARB_shadow_ambient
GL_ARB_fragment_program GL_ARB_fragment_program_shadow
GL_ARB_fragment_shader GL_ARB_occlusion_query GL_ARB_point_sprite
GL_ARB_texture_non_power_of_two GL_ARB_vertex_buffer_object
GL_ARB_pixel_buffer_object GL_ARB_draw_buffers
GL_ARB_shader_texture_lod GL_EXT_compiled_vertex_array
GL_EXT_framebuffer_object GL_EXT_framebuffer_blit
GL_EXT_framebuffer_multisample GL_EXT_texture_rectangle
GL_ARB_texture_rectangle GL_EXT_texture_env_add GL_EXT_blend_color
GL_EXT_blend_minmax GL_EXT_blend_subtract GL_EXT_texture_lod_bias
GL_EXT_abgr GL_EXT_bgra GL_EXT_stencil_wrap
GL_EXT_texture_filter_anisotropic GL_EXT_separate_specular_color
GL_EXT_secondary_color GL_EXT_blend_func_separate GL_EXT_shadow_funcs
GL_EXT_stencil_two_side GL_EXT_texture_compression_s3tc
GL_EXT_texture_compression_dxt1 GL_EXT_texture_sRGB
GL_EXT_blend_equation_separate GL_EXT_texture_mirror_clamp
GL_EXT_packed_depth_stencil GL_EXT_draw_buffers2
GL_APPLE_flush_buffer_range GL_APPLE_ycbcr_422
GL_APPLE_vertex_array_range GL_APPLE_texture_range
GL_APPLE_float_pixels GL_ATI_texture_float GL_ARB_texture_float
GL_ARB_half_float_pixel GL_APPLE_pixel_buffer
GL_APPLE_object_purgeable GL_NV_blend_square GL_NV_fog_distance
GL_ATI_texture_mirror_once GL_ATI_blend_equation_separate
GL_ATI_blend_weighted_minmax GL_ATI_texture_env_combine3
GL_ATI_separate_stencil GL_ATI_texture_compression_3dc
GL_SGIS_texture_edge_clamp GL_SGIS_texture_lod GL_SGI_color_matrix


- Simplistic almost useless benchmark:

Redrawing all areas 10 times took 0.1280 seconds.

..

(*) Found 2 notices, documented in the text above.


You may have me as a contact on MSN- I go as Sehltahn on the MOUL forums, you helped me out over MSN to get my Myst V working. My MSN is also located to the left, underneath my username.
ardent red
 
Posts: 150
Joined: Fri Apr 18, 2008 3:41 pm
Location: The big little New Zealand

Re: Export issue

Postby Christian Walther » Thu Jan 29, 2009 12:50 pm

ardent red wrote:
Code: Select all
- Paths:

/Applications/blender 2.48a/blender.app/Contents/MacOS
/Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip

Ah ha! See, it's what I suspected - it uses a different Python installation than you installed things into: a third-party one that lives in /Library, while in the Terminal you used the Apple-provided one in /System/Library. Do you have any idea how that one got there and if it's needed by anything else?

You have two options now: 1. Throw out /Library/Frameworks/Python.framework (move it somewhere outside of a Frameworks folder, or delete it altogether), unless you need it for anything else. Blender should then automatically switch to using the other one.
2. Install PyYAML etc. again, into the /Library installation, by running /Library/Frameworks/Python.framework/Versions/2.5/bin/python setup.py install.

You may have me as a contact on MSN

Yes, that occurred to me yesterday, and I left Adium open while I was online, but didn't see you. Since I seem to remember that at one point I didn't see you online when you were, feel free to ping me if you see me.
Christian Walther
 
Posts: 443
Joined: Sun Jun 08, 2008 3:10 am
Location: Switzerland

Re: Export issue

Postby ardent red » Thu Jan 29, 2009 11:03 pm

WOOOO! Thanks so much Christian- I can now export ages again, and I'm still relatively sane :D! Oh, one question: is it possible to see what the plugin is doing when it exports? There's no console window like there was on windows blender...

EDIT: never mind, I worked it out EDIT2: thanks paradox, only just checked back on the thread.
Last edited by ardent red on Fri Jan 30, 2009 12:05 am, edited 2 times in total.
ardent red
 
Posts: 150
Joined: Fri Apr 18, 2008 3:41 pm
Location: The big little New Zealand

Re: Export issue

Postby Paradox » Thu Jan 29, 2009 11:09 pm

ardent red wrote:WOOOO! Thanks so much Christian- I can now export ages again, and I'm still relatively sane :D! Oh, one question: is it possible to see what the plugin is doing when it exports? There's no console window like there was on windows blender...


You can start Blender.app from the terminal, rather than just double clicking. That will keep the terminal open in the background, allowing you to see the debug information and any errors that it outputs.

Glad you got it working! :D
Paradox
 
Posts: 1295
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Export issue

Postby Christian Walther » Fri Jan 30, 2009 11:40 am

Great! 8-)

To expand on Paradox' suggestion (in case that wasn't what you figured out), you need to invoke …blender.app/Contents/MacOS/blender for that - open blender.app doesn't work, as it's equivalent to double-clicking it in the Finder.

When you launch it the usual way, the output appears in the console log and the system log that you can view using /Applications/Utilities/Console (or by opening /var/log/system.log with a text editor or tail or the like).
Christian Walther
 
Posts: 443
Joined: Sun Jun 08, 2008 3:10 am
Location: Switzerland

Previous

Return to Building

Who is online

Users browsing this forum: No registered users and 6 guests