Closed gabrielecirulli closed 10 years ago
It turns out my application was running without any useful information in ENV["PATH"], so it couldn't find python.
I added an initializer that sets ENV["PATH"] = "/usr/local/bin:/usr/bin:#{ENV["PATH"]}"
and it now works fine.
I checked issue #45 but it doesn't seem to be the same case. I'm running my Rails app in production using Passenger and Nginx and I'm trying to highlight a piece of Ruby code. When I submit the code, I get a 500 error from my app. Looking at the Nginx logs, I see:
I have checked all the python executables available on my Ubuntu server. They're all Python 2.7.6, which I installed from source a few hours ago.
There's also another weird issue, where if I try using pygments from a ruby console, everything works fine:
And even from the Rails console of the actual application:
I am running Ruby 2.1.0, I have Ubuntu and Python installed from source. Does anyone know what could be the cause?