fedden / RenderMan

Command line C++ and Python VSTi Host library with MFCC, FFT, RMS and audio extraction and .wav writing.
The Unlicense
355 stars 44 forks source link

__init__() should return None, not 'NoneType' when instantiating RenderEngine() #14

Open alejandrok opened 5 years ago

alejandrok commented 5 years ago

Spent an entire day trying to get renderman to work. Can't figure out what's wrong. Compiled the build for MacOS, renamed the librenderman.so.dylib to .so, tried with different python envs and I get the same issue over and over. Found on some threads that it could be related to having the wrong linking to the boost lib but when inspecting it is pointing to the right one. Any ideas?

`Alejandros-MacBook-Pro:lib alek$ /usr/local/bin/python Python 2.7.16 (default, Jun 19 2019, 07:40:37) [GCC 4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.46.4)] on darwin Type "help", "copyright", "credits" or "license" for more information.

import librenderman as rm JUCE v5.2.0 rm.RenderEngine(22050,256,256) Traceback (most recent call last): File "", line 1, in TypeError: init() should return None, not 'NoneType'`

czfandyslash commented 4 years ago

Same here. It's so hard to figure it out. Hoping for a clear solution on the issue.

cyrusvahidi commented 3 years ago

I fixed this by changing the link flags in the build settings.

Go to build settings in Xcode and change -lpython2.7m to -undefined dynamic_lookup in 'Other Linker Flags'

Refer to here: https://stackoverflow.com/questions/61463744/boost-python-typeerror-init-should-return-none-not-nonetype-but-no-ob

czfandyslash commented 3 years ago

I fixed this by changing the link flags in the build settings.

Go to build settings in Xcode and change -lpython2.7m to -undefined dynamic_lookup in 'Other Linker Flags'

Refer to here: https://stackoverflow.com/questions/61463744/boost-python-typeerror-init-should-return-none-not-nonetype-but-no-ob

Vcyrus, Thank you so much! The issue fixed and works fine!