Re: [Pyars-users] Cannot load dll
Brought to you by:
ergorion
From: <ax...@er...> - 2012-07-31 07:58:55
|
Hi, Marco! As you have already found out, apart from using the right binaries (32bit vs 64bit) and setting the PATH environment variable, there is not really much that you can do (and that can go wrong either). As I wrote in another email, please look at the output of ars.py, it prints out the path settings where the dlls are really searched. There is another situation, that I can think of: when the Remedy libraries are referencing another lib, and they cannot find that one. But under Windows, I'm used to getting a descriptive error message when this happens. I believe, I used a tool called dependency walker to identify such issues: http://dependencywalker.com/ http://dependencywalker.com/ Good luck! Axel ----- Ursprüngliche Nachricht ----- Von: Marco Matarazzo Gesendet: 31.07.12 07:04 Uhr An: Seibert Axel Betreff: Re: [Pyars-users] Cannot load dll On Mon, Jul 30, 2012 at 10:03 PM, Seibert Axel < ax...@er... > wrote: Hi Axel, Hi, Marco! You are saying you are using Win7 x64 with 32 bit Remedy libraries. What I still would need to know, what kind of python are you running? 32bit or 64bit? If you are running 64bit, then it cannot load the 32bit Remedy libraries (and pyARS currently does not support 64bit, just yet). I'm running python 32bit, as I read about pyARS not working with 64bit yet (but I see checks in cars.py for architecture, and change of the library names in case 64bit is detected, so I'm sure it's looking only at 32bit libs) If you are running python as 32 bit, then you'd have to check the PATH environment variable. Try e.g. python ars.py it will print out the path where it is looking for the libs; make sure that the Remedy libs can be found there. That's the first thing I checked, the libraries can be found in the path. I also copied them in more than one folder in the path, just to be sure ;) I even moved them to a non 'program files' folder, in case it was a privilege problem, to no avail. I don't think I can trace into CDLL to see exactly what's happening, I see there's a bunch of debug print statements commented out in the code, will try to enable them and see what can I do. Thanks! ]\/[arco Hope this helps, Axel Am 30.07.2012 um 19:08 schrieb Marco Matarazzo: > Hi all, > > I wanted to try this fantastic pyArs project, but having problems with the basic, as it won't find the Remedy dlls. I'm using Remedy 7.6.4, so it should look for: > > arapi7604_build002.dll > arrpc7604_build002.dll > arutl7604_build002.dll > > but everytime I try to import the pyars module, I get: > > FATAL ERROR: Could not load ARS shared libraries (with a bunch of details on which path it was looking for etc. etc.) > > I traced the code, and all the attempts to load any of the dlls, included the three above, throw an OSError 126 'Module not found'. Of course I triple checked the three dlls are at least in one of the folders included in the path. > I'm using Win7 x64 with x32 Remedy libraries. Any hint on what to try? > > Thanks! > ]\/[arcoa > > -- > I'm Winston Wolf, I solve problems. > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/_______________________________________________ > Pyars-users mailing list > Pya...@li... > https://lists.sourceforge.net/lists/listinfo/pyars-users -- I'm Winston Wolf, I solve problems. |