ImportError: No module named robobrowser - python-2.7

When i am trying run a python script with following code
from robobrowser import RoboBrowser
I have got following error:
from robobrowser import RoboBrowser
ImportError: No module named robobrowser

This usually happens when the library was not installed correctly, make sure you have installed it.
Python robobrowser 0.5.3
It's easy to install, go to your terminal and type easy_install robobrowser or if you have installed pip then you can also install by doing pip install robobrowser
Requirements: python >= 2.6

Related

How to resolve ImportError: No module named urls

I get this error whenever I run my code:
File "...", line 6, in <module> from django.urls import reverse
ImportError: No module named urls
So I look at that file and check the line and it says that this has an error:
from django.urls import reverse
I don't know where the error is coming from because when I delete the line of code, it returns me this error:
django.core.exceptions.ImproperlyConfigured: Error loading MySQLdb module: No module named MySQLdb
I also tried adding MySQLdb in the interpreter but this time, it gives me this error:
Non-zero exit code (1)
please confirm the from django.conf.urls import include, url is added in your header or not.
For MySQl error, you may need to install the Python and MySQL.
sudo apt-get install python-dev default-libmysqlclient-dev #Ubuntu
Then install the mysql client using pip command.
pip install mysqlclient # for python 2.x
pip3 install mysqlclient # for python 3.x
Finally
pip install PyMySQL #for python 2.x
pip3 install PyMySQL #for python 3.x

ImportError: cannot import name OrderedDict; downgrade kombu

I am trying to install and import pytplot, which is a package that can plot IDL save files using python. I have Python 2.7 on Windows 10. If I try importing pytplot, I get an import error saying: ImportError: cannot import name OrderedDict. This question has already been answered here: Getting ImportError: cannot import name OrderedDict.
However, I can't figure out how to complete the first step: downgrade kombu to the 2.5.16 version. I have uninstalled my current version of kombu and I'm trying to use:
"pip install kombu-2.5.16"
This fails and my prompt says that it could not find a version that satisfies this requirement.
Try:
pip install -U kombu==2.5.16
otherwise pip -U kombu==3.5.x
will show you all available versions

import error; no module named Quandl

I am am trying to run the Quandl module on a virtualenv which I have uninstalled packages only pandas and then Quandl,
I am running Python 2.7.10 - I have uninstalled all other python versions, but its still giving me the issue of 'ImportError: No module named Quandl'. Do you know what might be wrong? Thanks
Try with lower case, import is case sensitive and it's as below:
import quandl
Did you install with pip? If so ensure quandl is among the listed installed modules with
pip list
Otherwise try
help('modules')
To make sure it was installed properly. If you don't see quandl listed , try to reinstall.
Use below syntax all in lower case
import quandl
If the solutions above is not working for you (it means you are using python 3), do the following (on Linux);
sudo apt install python3-pip
Then do ;
pip3 install quandl
you should be able to import and use quandl now
check whether it exists with the installed modules by typing
pip list
in the command prompt and if there is no module with the name quandl then type
pip install quandl
in the command prompt . Worked for me in the jupyter
I am following a Youtube tutorial where they use 'Quandl'. It should be quandl. Change it and it won't throw error.
I'm having a related issue with the capitalisation of "Q" in Pycharm IDE (Quandl 3.0.1):
import quandl as q
The above will correctly import however auto-completion will not function.
import Quandl as q
The above will not import but will allow auto-completion.
My solution is to use autocomplete when working and then comment out the second import for running.
import quandl as q
#import Quandl as q
Solved the issue by installing the below one:
conda install -c dhirschfeld quandl=3.0.1
install quandl for version 3.1.0
Check package path where you installed, make sure it's name is quandl not Quandl (my previous name is Quandl, so when I use import quandl, it always said "no module named quandl")
If your package's name is Quandl, delete it and reinstall it. (I use anaconda to install my package, it's covenient!)
With Anaconda\Jupyter notebook go to the install directory (C:\Users\<USER_NAME>\AppData\Local\Continuum\anaconda3) where <USER_NAME> is your logged in Username. Then execute in command prompt:
python -m pip install Quandl
import quandl
If someone running Jupyter image on docker and facing the same issue,
you can open terminal in Jupyter
and then type
pip install quandl
it will install the quandl where jupyter kernelspec list points.
then import as
import quandl
(q lowercase)
I did not find this solution anywhere else hence mentioned this
Finally got to make it work. Installed quandl through Anaconda Powershell Prompt (not the regular Anaconda Prompt). It depreciated some of my libraries, but finally it is working! Spent 1.5 days to fix this!! Thanks. Original post: Quandl not working in Jupyter Notebook (but working at command-prompt)
quandl has now changed, you require an api key, go the site and register your email.
import quandl
quandl.ApiConfig.api_key = 'your_api_key_here'
df = quandl.get('WIKI/GOOGL')
i had the same error message ' ImportError: No module named Quandl ' so what i did was to just change it to
import quandl
print(df.head())
None of the solutions listed here worked for me. I ended up installing it from Jupyter Notebook itself.
import sys
!{sys.executable} -m pip install quandl
import quandl
Sometimes the quandl module is present with "Quandl" in following location
C:\Program Files (x86)\Anaconda\lib\site-packages\Quandl.
But the scripts from Quandl refer to quandl in import statements.
So, renaming folder Quandl to quandl worked for me.
New path:
"C:\Program Files (x86)\Anaconda\lib\site-packages**quandl**".

Virtualenv and import six module erro in django 1.4

We install virtualenv inside every project in server:
virtualenv env
source env/bin/activate
pip install -r requirements.txt
But I have stil from django.utils.six import with_metaclass ImportError: No module named six
error in syncdb. I have this problem with django-modeltranslation.
Why I have this error? I could import six in python.
Django 1.4 is a very old version. django-modeltranslation clearly relies on a more recent version of Django.

How do I install markupsafe into my Flask virtualenv?

I've been doing the following tutorial and looking it over may help you figure out what I haven't been able to:
http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world/
I'm working on a OS X (10.6.8) with Python 2.7.6. I'm pretty sure that I followed all the instructions (on page 1) to a T and have checked that the required libraries are indeed in the modules list in the python virtualenv however, I get this error message when I try to run 'run.py':
File "/Users/user1/Desktop/flasktut/microblog/flask/lib/python2.7/site-packages/jinja2/utils.py", line 520, in <module>
from markupsafe import Markup, escape, soft_unicode
ImportError: No module named markupsafe
I need markupsafe in my virtualenv - how do I get it in there?
The command to check what packages you have installed is:
$ pip freeze
If you don't see an entry for MarkupSafe there then you can install it with:
$ pip install markupsafe