Hi,
I'm running some models on an Ubuntu 11.04 environment, and I am getting an error that I think is related to an obsolete version of Pandas installed on the environment (at the end of the email). Note that the code works fine on my local machine, and if I do things manually with IPython after ssh-ing into the environment (Ipython must have a different search path for modules).
I have tried to upgrade Pandas on the environment using Pip and have 0.9.1 installed. If I ssh into the environment and import Pandas with the terminal, it accesses the new version (e.g. if I run a python script that just says:
import pandas
print pandas.version.version
)
But if I run my picloud scripts, it imports Pandas v. 0.3.0. I have tried to upgrade using apt but it doesn't find pandas, so I don't know how this version of Pandas was installed or what I can do to upgrade it.
There seem to be two ways to deal with this: either upgrade the Pandas version in python's path, or specify which version to use. I prefer the first, but if the second is quick, I would be happy to do that. Unfortunately I don't know how to do either. Any help would be appreciated.
Thanks,
Richard
Pandas error:
Traceback (most recent call last):
File "/usr/local/picloud/.employee/pimployee/job_util.py", line 119, in process_job
result = func(*args, **kwargs)
File "/home/itchy/ecopetrol/ec-working/pecube_scripts/run_eceS1_cloud.py", line 300, in run_pecube_map
File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 125, in __init__
sdict, columns, index = self._init_dict(data, index, columns, dtype)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/frame.py", line 176, in _init_dict
v = Series(v, index=index)
File "/usr/local/lib/python2.7/dist-packages/pandas/core/series.py", line 172, in __new__
subarr.index = index
File "/usr/local/lib/python2.7/dist-packages/pandas/core/series.py", line 193, in _set_index
raise AssertionError('Lengths of index and values did not match!')
AssertionError: Lengths of index and values did not match!