Jump to content
  • 0
wolverine2710

By Barum. MO doesn't find Python.

Question

Originally Nexus user Barum posted this in the Nexus MO forum. So that this discussion will not get buried on the nexus forums I created the question here and will respond to it here.

 

I have a problem with the MO:

It doesn't find the required Python 2.7.x (2.7.5 I assume is the newest one of the 2.x.x versions), even though I installed it.

Is this feature currently being worked on?

I'd be glad if someone would help me with this.

Thanks in advance.

I assume you have installed the 32-bit version of Python and did not copy it into directory. MO upon start up queries windows to check if Python is installed. MO does not search the filing system for it. In setting->plugins->Python proxy there is a variable called python_dir. Please set this to the directory where Python 32-bit is installed.

Share this post


Link to post
Share on other sites

12 answers to this question

Recommended Posts

  • 0

Please note: When python is installed properly, a python27.dll will be placed in a system directory (C:\windows\system32 on 32bit windows or c:\windows\syswow64 on 64bit windows).

MO should find this dll if it's there. This is completely automatic through the official python library I use and can NOT be influenced by me (user can influence it by placing the dll somewhere else in the dll search path but I'd advice against that UNLESS you lack the rights to install python system-wide).

 

python_dir influences only where python libraries are taken from. This should be automatic and MUST match the python version that is discovered automatically.

 

If the python plugin doesn't work at all, you most likely have NOT installed python correctly and thus the python27.dll is missing in the expected directory.

If you get cryptic error messages with backtraces that say "python" repeatedly OR if MO crashes and on next start claims that the pythonproxy plugin caused a crash then your python_dir is probably set incorrectly.

 

Thus far I'm not aware of any problems with the python plugin that are not caused by one of these issues:

- python 2.7 (32-bit) not installed (correctly)

- python_dir set incorrectly

Share this post


Link to post
Share on other sites
  • 0

I had a problem like this, caused by having a semi-colon ( ; ) in Mod Organizer's folder path. Python could not handle this as it is multi platform (In Linux it's a reserved character)

Tannin put a warning in that shows up now if you use a semi-colon.

 

Other special characters may also cause problems, so it is recommended to only use;

A to Z, a to z, 0 to 9 and - _

In file and folder names.

 

If the above or this are not the problem, we require more details.

What does Mod Organizer actually say when it can't find python?

where are they both installed.

Share this post


Link to post
Share on other sites
  • 0

Is it necessary to have Python installed to use MO though? What does it do? I just began using MO and I don't have Python installed but so far every mod I've installed is working just fine. I'll have to watch the Advance tutorial from mark hollis I guess..

Share this post


Link to post
Share on other sites
  • 0

Currently the main feature that python provides support for is the configurator that is in recent builds of MO. This configurator will not work without python. As far as I know, all of the important functions i.e. mod installation and handling work fine without python.

 

However, that is not to say python might not become more useful in the future, if not a necessity.

Share this post


Link to post
Share on other sites
  • 0

Thanks!, I'll install it then. By the way, you need to update the wiki to say 2.7.6 :-)

 

Hmm, I can't set the directory where I installed Phyton in the plugins tab. And MO didn't recognize on start that I installed it... Installed Phyton with the installer so I would think this is the "correct" way of installing?

Share this post


Link to post
Share on other sites
  • 0

If you've followed the steps recommended above then what is Mod Organizer saying about python.

Click on red triangle icon.

If it's greyed out look under left side icon with down arrow (Ini Settings Icon).

If Configurator is present then Python is working.

Usually you don't set anything in Mod Organizer it is all automatic.

Share this post


Link to post
Share on other sites
  • 0

If you've followed the steps recommended above then what is Mod Organizer saying about python.

Click on red triangle icon.

 

It says "Python not installed or not found".

If, as suggested, I go to Settings>Plugins>Python Proxy, it shows two things in the right pane: enable and python_dir. "Enable" has "true" to it's right but there's nothing showing for python_dir, and nothing happens when I right or left click it so, I can't show MO where I have python installed.

Share this post


Link to post
Share on other sites
  • 0

If you've followed the steps recommended above then what is Mod Organizer saying about python.

Click on red triangle icon.

It says "Python not installed or not found".

If, as suggested, I go to Settings>Plugins>Python Proxy, it shows two things in the right pane: enable and python_dir. "Enable" has "true" to it's right but there's nothing showing for python_dir, and nothing happens when I right or left click it so, I can't show MO where I have python installed.

In the current version of MO (1.0 RC8) the python_dir variable is not filled in when MO can find Python on start up. Saves problems when python is later installed elsewhere. You can fill in the python_dir variable in MO by clicking on the space to the right of the text python_dir, a small input field should be visible now, that should work.

 

If it does not work, locate the location of python27.dll on your filing system (see Tannins post #2 in this thread ), close MO, open file /modorganizer.ini and locate the python_dir variable in the [plugins] section and add the path there. On my system python is recognized so it is not filled in. I filled it with C:\\Windows\\SysWOW64\\python27.dll, started MO and python is recognized as normal and now the python_dir variable in settings is also filled in. Please notice use of the double \ characters instead of one, this is because the \ has a special meaning and needs to be 'escaped'.

 

Please report back what action you had to do and if it now works.

Share this post


Link to post
Share on other sites
  • 0

Well, I tried both. When I installed Python python27.dll was in the same directory as everything else Python installed (I installed it in Program Files (x86)\Python27 so I set the directory to that but MO said "invalid Python path, no guided fix". So then I moved python27.dll to SysWOW64 and set the directory to that and it still says "invalid Python path". I did use double \ characters in MO.ini.

 

Do I need to execute either python.exe or pythonw.exe first? Or configure it? I know absolutely nothing about programming so I don't want to build anything (did a little reading on Python's webpage)...

Share this post


Link to post
Share on other sites
  • 0

Well, I tried both. When I installed Python python27.dll was in the same directory as everything else Python installed (I installed it in Program Files (x86)\Python27 so I set the directory to that but MO said "invalid Python path, no guided fix". So then I moved python27.dll to SysWOW64 and set the directory to that and it still says "invalid Python path". I did use double \ characters in MO.ini.

 

Do I need to execute either python.exe or pythonw.exe first? Or configure it? I know absolutely nothing about programming so I don't want to build anything (did a little reading on Python's webpage)...

What I find strange is the python27.dll doesn´t show up in the correct place. I assume you installed Python with the installer? Have you tested it python works on its own. See here for one method to test it (or use google). To make sure you don´t get windos UAC problems I would place programming languages like Python and Java outside the program files directory.

 

Tannin has released a new 1.0.8 TEST version which has a builtin Python. See thread ´testers needed for 1.0.8´. Perhaps you can test that one out. You have to copy some files from an existing MO intance because the installer doesn´t have all the files. You have to uninstall Python 32 bits 2.7.6 first. I haven´t used the installer on an existing MO install so don´t know if that works. Most likely Tannin intends that you use it to update to a new version so all should be fine, but this real installer is brand new.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.