cga-harvard / worldmap

WorldMap GeoNode Project
GNU General Public License v3.0
13 stars 7 forks source link

ImportError: No module named datatables #140

Open zju-niran opened 7 years ago

zju-niran commented 7 years ago

When i try to install the WorldMap module with make sync, actually using python manage.py makemigration, it gets some trouble: ImportError: no module named 'datatables' I am sure about the geonode has been installed, but in my python environment, there is no datatables in geonode.contrib, this is some settings in settings.py of WorldMap: image this is my geonode.contrib, and I can't find the part of geonode.contrib.datatables [mentioned above]. image ------how can I solve this problem?

capooti commented 7 years ago

Did you follow instruction on README.md? It insatall GeoNode with this line: git clone -b wm-develop https://github.com/cga-harvard/cga-worldmap.git

that branch contains datatables

zju-niran commented 7 years ago

When I try to install Geonode at the step of pip install -r requirements.txt, this throw an error about could not found pdb==0.1, and then stop the install of the other configuration: image and then I try to install pdb separately by pip install pip, it also return an error showing there is no matching version: image ------- does it have something to do with the lost od datatables?

capooti commented 7 years ago

@Niran814804102 try to upgrade pip before: pip install --upgrade pip let me know if this works and I will update the documentation.

Anyway it should be safe not to install it, as it is not needed anymore by GeoNode: https://github.com/GeoNode/geonode/issues/3397

zju-niran commented 7 years ago

It still can't find pdb after using pip install --upgrade pip. In addition, I try to remove pdb=0.1 from cga-worldmap\requirements.txt ,meanwhile removing pdb<=0.1 from cga-worldmap\setup.py. And then, everything runs soomthly, and the Worldmap program is displayed normally in the browser.

zju-niran commented 7 years ago

I found that python==2.7.11 has already contained the package --pdb, and pip in python2.7 cannot install the pdb nowadays. --------- We can search pdb packages in python's official website, and there is no retrieval results.

ingenieroariel commented 7 years ago

Niran, we need to update our python repo to remove the dependency on pdb.

We will do it in the next couple of hours and update this ticket.

-a

On Nov 14, 2017, at 1:54 AM, Niran814804102 notifications@github.com wrote:

I found that python==2.7.11 has already contained the package --pdb, and pip in python2.7 cannot install the pdb nowadays. --------- We can search pdb packages in python's official website, and there is no retrieval results.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.