Pillow issue PlexConnect will not detect 2.7.9 python

I installed PIL / Pillow successfully and installed it on python 2.7.9 since it wouldn't install at all on 2.7.1 but for some reason PlexConnect is still using python 2.7.1. When I check the python version in terminal it says 2.7.9. When I check the PlexConnect.log it says its using 2.7.1. I rebooted my machine to be sure it was not the issue. Mac OS X 10.7.5, iBaa github latest commit as of today. PlexConnect works fine but no fanart is available due to this. Any ideas why PlexConnect is still displaying 2.7.1? I would really like to use fanart if possible.

 

MediaCenter:~ MediaCenter$ python

Python 2.7.9 (default, Dec 20 2014, 19:55:07) 

[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin

Type "help", "copyright", "credits" or "license" for more information.

>>> exit()

 

22:59:49 PlexConnect: started: 22:59:49

22:59:52 PlexConnect: Version: 0.5-dev

22:59:55 PlexConnect: Python: 2.7.1 (r271:86832, Jul 31 2011, 19:30:53) 

[GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)]

22:59:58 PlexConnect: Host OS: darwin

23:00:01 PlexConnect: PILBackgrounds: Is PIL installed? False

23:00:03 PlexConnect: IP_self: 10.0.1.15

23:00:10 DNSServer: started: 23:00:10

23:00:10 DNSServer: ***

23:00:10 DNSServer: DNSServer: Serving DNS on 10.0.1.15 port 53.

23:00:10 DNSServer: ***

23:00:10 WebServer: started: 23:00:10

23:00:10 WebServer: ***

23:00:10 WebServer: WebServer: Serving HTTP on 10.0.1.15 port 80.

23:00:10 WebServer: ***

23:00:10 WebServer: started: 23:00:10

23:00:10 WebServer: ***

23:00:10 WebServer: WebServer: Serving HTTPS on 10.0.1.15 port 443.

23:00:10 WebServer: ***

How do you start PlexConnect? As a daemon?

Try to run it in the terminal - it should run in python pointed to by "/usr/bin/env". Check which version of python this would be.

I tried to set it up for him via OpenPlex. We couldn't get it to switch to 2.7.9. It is ran with the bash.plist. I will check for him, do I need to edit any paths for it to work ~/.bash.rc or /etc/paths?

Good question, I tried to update my OSX to 2.7.8 some time ago and haven't had much success myself. Went back, hoping Apple would provide a more current version with an OS update.

There are a number of manuals online, how to update python correctly (one example: http://wolfpaulus.com/jounal/mac/installing_python_osx/). But in the end I didn't spend time on another trial yet.

I spoke to a developer and this was what he sent me:

Okay, sounds like the system Python is 2.7.1, and a custom installed version of python is 2.7.9

 
You'll need to get the path to python 2.7.9 first in the colon-delimited-list contained in the environment-variable PATH.
 
Something like:
 
export PATH=/usr/local/python/bin:$PATH
Setting this via /etc/paths.d, unfortunately, will not help you as it will append the path to the end, leaving the system Python to override.

Maybe with this we can get somewhere.....

Running it in a terminal grabs the correct python on my test machine. Maybe I need to export the path in the bash plist so it grabs the right python version. I Used the python site to install python 2.7.9.pkg. @Flipman6 used homebrew to install python 2.7.9.

23:20:17 PlexConnect: Python: 2.7.9 (v2.7.9:648dcafa7e5f, Dec 10 2014, 10:10:46)

Bingo! Adding this to the bash plist makes it find the right path for python 2.7.9 if its installed from the python.pkg or homebrew  :)

# Start PlexConnect
export PATH=/usr/local/bin:$PATH
./${APPNAME}

I just need to test on his machine to confirm that it finds pillow and python 2.7.9 as well.

His machine says pillow is installed true now and that its using 2.7.9. Once he tests I can confirm it worked :)

Unfortunately he won't be back for a week.

I found more paths to test if I can force systewide python 2.7.9 without editing the bash plist Mac OS X 64-bit/32-bit installer

~/.profile ~/.bashrc ~/.bash_profile /etc/bashrc

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.