Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named datatables #140

Open
zju-niran opened this issue Nov 10, 2017 · 6 comments
Open

ImportError: No module named datatables #140

zju-niran opened this issue Nov 10, 2017 · 6 comments

Comments

@zju-niran
Copy link

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
Copy link
Contributor

capooti commented Nov 10, 2017

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
Copy link
Author

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
Copy link
Contributor

capooti commented Nov 13, 2017

@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:
GeoNode/geonode#3397

@zju-niran
Copy link
Author

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
Copy link
Author

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
Copy link
Collaborator

ingenieroariel commented Nov 14, 2017 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants