ImportError: No module named regex


$ ./topy.py /home/sanu/horizon/horizon/view.py

Traceback (most recent call last):
File "./topy.py", line 21, in <module>
import regex
ImportError: No module named regex

$ sudo apt-get install python-dev

[sudo] password for sanu:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libexpat1-dev libpython-dev libpython2.7-dev python2.7-dev
The following NEW packages will be installed:
libexpat1-dev libpython-dev libpython2.7-dev python-dev python2.7-dev
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 22.4 MB of archives.
After this operation, 35.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty/main libexpat1-dev amd64 2.1.0-4ubuntu1 [115 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu/ trusty/main libpython2.7-dev amd64 2.7.6-8 [22.0 MB]
Get:3 http://in.archive.ubuntu.com/ubuntu/ trusty/main libpython-dev amd64 2.7.5-5ubuntu3 [7,078 B]
Get:4 http://in.archive.ubuntu.com/ubuntu/ trusty/main python2.7-dev amd64 2.7.6-8 [269 kB]
Get:5 http://in.archive.ubuntu.com/ubuntu/ trusty/main python-dev amd64 2.7.5-5ubuntu3 [1,166 B]
Fetched 22.4 MB in 6min 49s (54.7 kB/s)
Selecting previously unselected package libexpat1-dev:amd64.
(Reading database ... 231082 files and directories currently installed.)
Preparing to unpack .../libexpat1-dev_2.1.0-4ubuntu1_amd64.deb ...
Unpacking libexpat1-dev:amd64 (2.1.0-4ubuntu1) ...
Selecting previously unselected package libpython2.7-dev:amd64.
Preparing to unpack .../libpython2.7-dev_2.7.6-8_amd64.deb ...
Unpacking libpython2.7-dev:amd64 (2.7.6-8) ...
Selecting previously unselected package libpython-dev:amd64.
Preparing to unpack .../libpython-dev_2.7.5-5ubuntu3_amd64.deb ...
Unpacking libpython-dev:amd64 (2.7.5-5ubuntu3) ...
Selecting previously unselected package python2.7-dev.
Preparing to unpack .../python2.7-dev_2.7.6-8_amd64.deb ...
Unpacking python2.7-dev (2.7.6-8) ...
Selecting previously unselected package python-dev.
Preparing to unpack .../python-dev_2.7.5-5ubuntu3_amd64.deb ...
Unpacking python-dev (2.7.5-5ubuntu3) ...
Processing triggers for doc-base (0.10.5) ...
Processing 1 added doc-base file...
Registering documents with scrollkeeper...
Processing triggers for man-db (2.6.7.1-1) ...
Setting up libexpat1-dev:amd64 (2.1.0-4ubuntu1) ...
Setting up libpython2.7-dev:amd64 (2.7.6-8) ...
Setting up libpython-dev:amd64 (2.7.5-5ubuntu3) ...
Setting up python2.7-dev (2.7.6-8) ...
Setting up python-dev (2.7.5-5ubuntu3) ...

$ easy_install regex

Searching for regex
Reading https://pypi.python.org/simple/regex/
Best match: regex 2014.06.28
Downloading https://pypi.python.org/packages/source/r/regex/regex-2014.06.28.tar.gz#md5=3d9667eac4222be0ac412a3e508f767a
Processing regex-2014.06.28.tar.gz
Writing /tmp/easy_install-7PZarl/regex-2014.06.28/setup.cfg
Running regex-2014.06.28/setup.py -q bdist_egg --dist-dir /tmp/easy_install-7PZarl/regex-2014.06.28/egg-dist-tmp-KKo6N3
zip_safe flag not set; analyzing archive contents...
/home/sanu/virt_env/virt1/local/lib/python2.7/site-packages/setuptools/command/bdist_egg.py:384: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
symbols = dict.fromkeys(iter_symbols(code))
Adding regex 2014.06.28 to easy-install.pth file
Installed /home/sanu/virt_env/virt1/lib/python2.7/site-packages/regex-2014.06.28-py2.7-linux-x86_64.egg
Processing dependencies for regex
Finished processing dependencies for regex



Comments

  1. I have checked your new blog and I want to say that it is really awesome! 
    928bet

    ReplyDelete

Post a Comment

Popular posts from this blog

AttributeError: Got AttributeError when attempting to get a value for field `abc` on serializer `PfleSerializer`. The serializer field might be named incorrectly and not match any attribute or key on the `QuerySet` instance. Original exception text was: 'QuerySet' object has no attribute 'abc'.