Re: [Cython] ImportError: DLL load failed: The specified module could not be found.
Adrian, If the import works when the module is in your working directory, the problem is probably your path. Have you tried adding the folder containing the module to your PYTHONPATH environment variable? Sent from my iPhone (please pardon brevity) On Oct 21, 2011, at 3:51 PM, Adrian MartÃnez Vargas wrote: > I'm 90% sure that the problem is that the pyd file is not registered (it > works if I put the module in my working directory). I'm trying to registered > in windows 7 with regsvr32 but don't work. > > I need HELP guys! > > Regards > Adrian > > On 19/10/2011 12:45 PM, Alexander T. Berghage wrote: >> Adrian >> >> I'm a little unclear on the big picture here. Are you trying to >> distribute a module (a .pyd / .dll) that you or someone else can >> import from a .py script, or are you looking to compile a .exe that >> runs your cython code on execution? >> >> >> >> Just interpreting the error you're describing (ImportError: DLL load >> failed: could not be found), the dynamic linker couldn't find a >> library it needed. Most likely this is either a symptom of missing >> dependencies or a path problem. Here's my suggestions for diagnosing >> and fixing the problem: >> >> Missing Dependencies: >> One very simple way to confirm that all the dependencies of your >> cython module are >> available is to point the dependency walker utility[1] at it, and >> look for missing DLLs. >> >> Directory Structure: >> Is the .pyd file you built from your cython module in the >> PYTHONPATH (or your current >> working directory? If it's not, there's your issue. >> >> [1] http://www.dependencywalker.com/ >> >> >> Hope that helps! >> >> Best, >> -Alex >> ___ >> cython-devel mailing list >> cython-devel@python.org >> http://mail.python.org/mailman/listinfo/cython-devel >> > > ___ > cython-devel mailing list > cython-devel@python.org > http://mail.python.org/mailman/listinfo/cython-devel ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel
[Cython] Compiler crash at parsing stage
Hi! This simple code crashes compiler: lambda i=1: i """ File "/home/vitja/work/cython-vitek-git/Cython/Compiler/Parsing.py", line 122, in p_test return p_lambdef(s) File "/home/vitja/work/cython-vitek-git/Cython/Compiler/Parsing.py", line 102, in p_lambdef s, terminator=':', annotated=False) File "/home/vitja/work/cython-vitek-git/Cython/Compiler/Parsing.py", line 2741, in p_varargslist annotated = annotated) File "/home/vitja/work/cython-vitek-git/Cython/Compiler/Parsing.py", line 2388, in p_c_arg_list annotated = annotated)) File "/home/vitja/work/cython-vitek-git/Cython/Compiler/Parsing.py", line 2435, in p_c_arg_decl print s.level AttributeError: 'PyrexScanner' object has no attribute 'level' """ I'm not sure what's the best way to fix this. -- vitja. ___ cython-devel mailing list cython-devel@python.org http://mail.python.org/mailman/listinfo/cython-devel