mscross / pysplit

A package for HYSPLIT air parcel trajectory analysis.
BSD 3-Clause "New" or "Revised" License
144 stars 79 forks source link

AttributeError: module 'geopandas' has no attribute 'GeoDataFrame' #78

Closed jon-maurer closed 3 years ago

jon-maurer commented 3 years ago

Hi Melissa!

Sorry to raise another issue. When I try and run the files that I generated in bulk_traj.py in the hysplit_clustering.py example you give I get the error:

trajgroup = pysplit.make_trajectorygroup(r'C:/trajectories/quel/clippedtraj/quel*') Traceback (most recent call last):

File "", line 1, in trajgroup = pysplit.make_trajectorygroup(r'C:/trajectories/quel/clippedtraj/quel*')

File "C:\Users\maurerj\Anaconda3\lib\site-packages\pysplit\hy_processor.py", line 76, in make_trajectorygroup trajectories.append(Trajectory(data, path, datetime, head,

File "C:\Users\maurerj\Anaconda3\lib\site-packages\pysplit\traj.py", line 55, in init HyPath.init(self, trajdata, pathdata, datetime, trajheader)

File "C:\Users\maurerj\Anaconda3\lib\site-packages\pysplit\hypath.py", line 36, in init self.data = gp.GeoDataFrame(data=alongpath[:, 1:],

AttributeError: module 'geopandas' has no attribute 'GeoDataFrame'


I made sure that all of the clipped trajectories are in the proper folder and done correctly. I also tried messing around with the last part of the file path (/quel*) but the error still went on. Am I missing something easy?

Thanks!!!

mscross commented 3 years ago

Did you ever resolve this? This sounds like a turn it off, turn it back on kind of problem to me.

jon-maurer commented 3 years ago

Yes! I had to uninstall anaconda and when I reinstalled I fixed all my issues w/ geopandas.

Thanks a ton!