Thread: [DirectPython] A huge problem with DirectPython
Status: Inactive
Brought to you by:
hsalo
From: Alain P. <ala...@ya...> - 2007-11-26 14:46:19
|
Hello, I am new to DirectPython but i have a huge problem that actually prevents me from using it at all. The problem is: installing DirectPython requires administrator rights on my machine, which i don't have (this is a machine at work). I believe this is a showstopper for most people who would like to use DirectPython professionally. Is there any change to see a DirectPython installer that would install for the current user as a fallback. Best regards Alain _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail |
From: David <dp...@sh...> - 2007-11-26 15:36:30
|
Hi, I had that problem also, so I went to a computer with Direct Python installed and copied all the dll files it needs and all the modules (and the directpy.pth file) for directpython in the site-packages folder (inside the Lib Folder of python's install dir), then put the dlls into the dlls folder in python's dir on the target computer, and the other modules (and the directpy.pth file) into the site-packages dir on the target computer. I probably took more dlls than were needed but when I did it I was in a rush. Im sure someone can make an install, but this a quick solution. Some of the dlls you need are in the system folder, and since python loads dlls from its dlls folder as well the system folders you it works to copy them to python rather than the system folder (which you might not be able to do anyways). Good Luck David >Hello, > >I am new to DirectPython but i have a huge problem >that actually prevents me from using it at all. >The problem is: installing DirectPython requires >administrator rights on my machine, which i don't have >(this is a machine at work). >I believe this is a showstopper for most people who >would like to use DirectPython professionally. >Is there any change to see a DirectPython installer >that would install for the current user as a fallback. > >Best regards > >Alain > > > _____________________________________________________________________________ >Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail > >------------------------------------------------------------------------- >This SF.net email is sponsored by: Microsoft >Defy all challenges. Microsoft(R) Visual Studio 2005. >http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ >_______________________________________________ >directpython-general mailing list >dir...@li... >https://lists.sourceforge.net/lists/listinfo/directpython-general > > > > |
From: Heikki S. <ho...@gm...> - 2007-11-26 19:20:41
|
> -----Original Message----- > From: dir...@li... > [mailto:dir...@li...] > On Behalf Of Alain Pointdexter > Sent: 26. marraskuuta 2007 16:46 > To: dir...@li... > Subject: [DirectPython] A huge problem with DirectPython > > Hello, > > I am new to DirectPython but i have a huge problem that > actually prevents me from using it at all. > The problem is: installing DirectPython requires > administrator rights on my machine, which i don't have (this > is a machine at work). > I believe this is a showstopper for most people who would > like to use DirectPython professionally. > Is there any change to see a DirectPython installer that > would install for the current user as a fallback. > > Best regards > > Alain > Hi, As David noted, it is possible to just copy certain files to a place where they are found by Python and Windows DLL loader. Administrative privileges are needed because certain D3DX dll's are installed into the system32 folder. However, this step can be ignored if the dll's are already installed (by another application or from an installer provided by Microsoft). I will list here what it needed. Absolute minimum requirements (for DirectPython 0.9): -Direct3D 9.0c installed. No way to ignore this. -D3DX dll (see d3dc._d3dx9dll, currently "d3dx9_30.dll"). This is in system32, but you can also put it in the same directory with d3d.pyd -d3d.pyd (the main DirectPython runtime .dll) So, you actually only need to distribute two files. However, the D3DX .dll should not usually be distributed like that (use the installer in directpy\redist - all those files in there really install only one .dll), but you can if you have no choice. You can also try to get your system administrator to run the setup, as it is signed and approved by Microsoft. The easiest way to make a custom "installer" is probably just to create a .zip file which contains the tree structure and required files (you can drop samples or anything else you don't need). Then unzip it into the PythonXX/Lib/site-packages/directpy-folder (or any other folder, just make sure that is it in sys.path). The real .exe installer does nothing very important, so you can safely ignore it. In short, put "d3dx9_30.dll" and "d3d.pyd" into a directory which is in sys.path. Then try to run a Python script: "import d3d" It should work. Then just add what you need (like d3dc.py, d3dx.py etc.). I can (and probably will) change the installer to work with normal users, but the D3DX issue will still remain. But at least it allows people to solve it in a way which suits them best. -- Heikki Salo |