ImproperlyConfigured: Error loading psycopg2 module: No module named 'psycopg2._psycopg' django - django

My site was working well in cpanel. when i add google search console for seo, after one day I am seeing such error.
Passenger.log file
My os is Windows. Please help guys. I would be very grateful.
I installed psycopg2-binary as psycopg2 didnt work.

Related

OSError: [WinError 126] The specified module could not be found. Trying to install GeoDjango on Windows 10

I am trying to install GeoDjango on my windows10 using Django 1.11.5 and Postgres SQL 10.4-1 I have downloaded the PostGis files. Created the Spatial DataBase. and followed the instructions on the install document. I am trying to follow the Django tutorial. I have made the models. When I try to run migrations. I get the error
django.core.exceptions.ImproperlyConfigured: Could not find the GDAL library
(tried "gdal201", "gdal20", "gdal111", "gdal110", "gdal19").
Is GDAL installed? If it is, try setting GDAL_LIBRARY_PATH in your settings.
I tried following a similar StackOverflowQuestion. It did not work
So I did exactly what the error told me to do. In my settings file I added
GDAL_LIBRARY_PATH = 'C:\OSGeo4W64\share\gdal'
Now I get the error:
OSError: [WinError 126] The specified module could not be found
Any ideas on how I can get this to work I have been at this for almost 3 days uninstalling and installing POstgresSQL. Resetting my Laptop nothing seems to be working

CryptoUnavailableError: No crypto library available and from oauth2client import crypt failure.

The error is in gspread authentication. Got
oauth2client.client.CryptoUnavailableError: No crypto library available
I have installed both pyOpenSSL and pycrypto. With the Crypto folder obtained after installation of pycrypto in my app directory.
I dug deeper on why the above error still persists. I found
from oauth2client import crypt
to be the cause. The following ImportError is being raised.
ImportError: No encryption library found. Please install either PyOpenSSL, or PyCrypto 2.6 or later
Please help. I earlier(few months ago) got it working by adding the following in my app.yaml. But this time it is not working.
libraries:
- name: pycrypto
version: "latest"
- name: ssl
version: latest
I use mac for development in case you need this to help me out. The thing is gspread used properly work using oauth2client. Today i tried to install google cloud storage client. I might have done something unknowningly during the installation process. After which the gspread authentication keeps failing. I have no clue on what to do next.
But note that the gspread authentication works flawlessly on production. I verified by pulling the production code.
I was able to fix this issue by reinstalling pyOpenSSL, cryptography.
But now i got another error.
ImportError: No module named cryptography.hazmat.bindings._openssl
ImportError: No module named cryptography.hazmat.bindings._openssl

django ImportError: No module named plugins

i need some help.
I searched in internet but i didn't find any response. I'n new in python nad django :) that causes that i'm here.
Maybe i start at the beginning, i have some project django on heroku hosting, and i have repository on git. I check and i don't have ftp connection to heroku :/ and i have only repository on git. In this repository is requirement.txt file but there no information about version of modules.
I want to prepare enviroment on my ubuntu, i downloaded my existing django project and i started server by command
python manage.py server
I was informed by python that i need to install some of module, and library of python etc. Everything went ok until apperad info
ImportError: No module named plugins
There is no name of plugins this showed just plugins. I installed some module like django-plugins ( i think that module have a folder i dist-package like djangoplugins ). It did not help :/, than i created new folder in dist-package ( in python library folder ) "plugins" and i copied content form djangoplugins . This did not help :/. again showed me "ImportError: No module named plugins". i don't have any idea , whats i need to install, i installed every plugins i found in internet and it didn't help.
Maybe you had this problem ? i know that django can be 1.6 version.]
=====================================
PROBLEM SOLVED
I have wrong version of django and django-cms.

Django openid (google-app-engine) error: No module named django_openid_auth

I'd like my users to be able to log in to my django project using their google accounts login (instead of having to sign up and create a new one). I found this : http://learnedstuffs.wordpress.com/2012/05/22/django-google-account-authentication/
But it doesn't work for me. After deploying my project in to Google apps engine it shows an error: ImportError: No module named django_openid_auth. I've checked many times - i did install django-openid-auth (by virtualenv). I'm new to django and I have no idea what I'm doing wrong.
Can anybody please help me with it? Thanks!
I found the solution: Packages installed in system or virtualenv environments won't get uploaded to GAE production servers. Packages should be in GAE project folder.

webfaction hosted django app, shopify module will not import

I've recently created a site with a django app hosted by webfaction. In general, things are running as expected, but I am also trying to use the ShopifyAPI, and get "Import error, no module named shopify" traced to one of my views.py. Everything worked when developing on localhost.
I SSHed into the host server and tried to install the ShopifyAPI with easy_install. It seemed to have reported being successfully installed, but I'm not sure if this actually does anything real on an external server?
Does anybody have suggestions? Any limitations on ShopifyAPI that I may not have considered?
Thanks!
The easy_install command will install the module for Python2.4. You are likely using Python2.6 or Python2.7. If you are using Python2.6, enter:
easy_install-2.6 ShopifyAPI instead of easy_install ShopifyAPI.
If you are using Python2.7, enter:
easy_install-2.7 ShopifyAPI insead of easy_install ShopifyAPI.
You can read more about using easy_install on Webfaction here
After installing the API, restart your Apache instance and it should see the module as expected.