Share This Page

Techbliss OwnerAdminIda Pro ExpertDeveloper

I have Builded the latest Qt PyQt-win-gpl-4.11.4 framwork from scratch.
Then made a installer that install it correct and add the right path so ida will find it.
PAckage include full PyQt4 version PyQt-win-gpl-4.11.4
And sip sip-4.16.9 that PyQt4 depends on.

NP! You have to have your Python folder at C:\python27
Works with any path now

Since many have trouble setting up python correct.
It add following regestry changes to path so ida pro will find PyQt.
Only added if its not there.

Techbliss OwnerAdminIda Pro ExpertDeveloper

Active Member

Is there a way to set the required environment variables in the bat/cmd file I use to start up IDA 6.6? (I also have 6.1 installed and need to override IDADIR, thereore the need of the CMD).
If I set them in the Windows environment variable pool, all is good.
If I set them in the CMD, I get 'IDAPython: importing "site" failed'. It behaves as if IDA is hardcoded to look at the already defined variables (in registry?) and not the currently active ones. (Though it has no problem overriding IDADIR by the one in the CMD).

I try to keep the system environment clean from Python entries. I have many apps that each use their own Python versions and cause no end of grief if they see any Python variables predefined.

Techbliss OwnerAdminIda Pro ExpertDeveloper

If you have env var table. IDADIR or IDA_DIR.
because of the ida.help file it will say wrong number if you have two versions.I normmally always set them in system envar table, not user, so its global.
if two version of ida then dont set any.

I try to keep the system environment clean from Python entries. I have many apps that each use their own Python versions and cause no end of grief if they see any Python variables predefined.

Click to expand...

the installer do not set IDADIR, but for setting the Python varibles correct it have the ones python site itself says you should have.
If you have apps that are python depended it will still work, since if the app are lets say python 3.0 it will search the appfolder, and run those.It wont break and run 2.7 insteed.

Also 2.7 is backward with 2.6, so no matter what the varibles will only help, and run both apps and python itself better.

Active Member

If you have env var table. IDADIR or IDA_DIR.
because of the ida.help file it will say wrong number if you have two versions.I normmally always set them in system envar table, not user, so its global.
if two version of ida then dont set any.

the installer do not set IDADIR, but for setting the Python varibles correct it have the ones python site itself says you should have.
If you have apps that are python depended it will still work, since if the app are lets say python 3.0 it will search the appfolder, and run those.It wont break and run 2.7 insteed.

Also 2.7 is backward with 2.6, so no matter what the varibles will only help, and run both apps and python itself better.

Click to expand...

The variable that caused a conflict with other programs, was PYTHONHOME. Some of those programs insist to use thei own PYTHONHOME loation and since the Windows PYTHONHOME can't be overriden, they failed.
I set all the above variables in the Windows environment pool except PYTHONHOME and they all work now.