w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
While Sending Html Mails from my web application Recieved Mails contains Symbols like &ldquo,&rdquo, ‘
Check with another constructor for htmlView: ContentType mimeType = new System.Net.Mime.ContentType("text/html"); var htmlView = AlternateView.CreateAlternateViewFromString(bodyMessage, mimeType);

Categories : Asp Net Mvc

How to get rid off - sudo: /usr/lib/sudo/sudoers.so must be only be writable by owner sudo: fatal error, unable to load plugins
You have to login to root shell to resolve this sudoers.so permission issue. If you have root account login, directly login to root shell otherwise search something like "How do I boot into a root shell" or "Drop to root shell prompt". If you use Ubuntu you can follow this link http://askubuntu.com/questions/92556/how-do-i-boot-into-a-root-shell. Once you are in root shell change the permission of the file /usr/lib/sudo/sudoers.so to #chmod 644 /usr/lib/sudo/sudoers.so

Categories : Apache

Not able to install requests on cygwin - ImportError: No module named _io
It is probably because your Anti-Virus program deleted io.py. I just had to reinstall python on cygwin and try installing the program with the Anti-Virus turned off. I successfully installed request this way.

Categories : Python

"sudo npm install -g grunt-cli" gives me an error
I've had this problem before; sometimes for global packages your current working directory has to be ~/ (but I'm not sure why this is!). Try: cd ~/; sudo npm install -g grunt-cli

Categories : Node Js

Error : No Module named "xlwt"
To install the xlwt module in Ubuntu, try: $ sudo apt-get install python-xlwt From https://pypi.python.org/pypi/xlwt, it appears that xlwt is not compatible with Python3.

Categories : Python

Error no module named curses
Install the UniCurses module from here: https://pypi.python.org/pypi/UniCurses You may need to alter some of your code in order to use it, as it provides the functionality of NCurses, not the vanilla curses library. Unfortunately, no direct Python for Windows port of curses exists.

Categories : Python

python "No module named" error when calling a submodule
Running scripts from the middle of a package is a bad idea, for a number of reasons, the most obvious of which is the one you're running into: When you import generator.the_generator somewhere, generator ends up as a package, so an absolute import of generator.the_page, or a relative import, will work fine. But when you just run the script generator/the_generator.py, there is no generator.the_generator, just __main__, and there is no generator package. The only other way Python could know how to find generator.the_page would be if the parent directory of generator were on sys.path, which it isn't. As you can guess, you can work around this by munging sys.path to put the appropriate parent directory on there… but this is a bad idea too. There are also many other problems with this solut

Categories : Python

yum stopped working with error No module named transactioninfo
Ok, found the solution. Since I don't know exactly which python modules belongs to which rpm, I did a re-install of most of the dependent rpms. Here it goes. #!/bin/bash for file in elfutils-0.152-1.el6.x86_64.rpm elfutils-libs-0.152-1.el6.x86_64.rpm expat-2.0.1-11.el6_2.x86_64.rpm gmp-4.3.1-7.el6_2.2.x86_64.rpm libxml2-2.7.6-8.el6_3.4.x86_64.rpm libxml2-python-2.7.6-8.el6_3.4.x86_64.rpm m2crypto-0.20.2-9.el6.x86_64.rpm python-2.6.6-36.el6.x86_64.rpm python-iniparse-0.3.1-2.1.el6.noarch.rpm python-urlgrabber-3.9.1-8.el6.noarch.rpm readline-6.0-4.el6.x86_64.rpm rpm-4.8.0-32.el6.x86_64.rpm rpm-libs-4.8.0-32.el6.x86_64.rpm rpm-python-4.8.0-32.el6.x86_64.rpm

Categories : Misc

Error: No module named psycopg2.extensions django postgresql
Ensure all packages being installed are being done so using sudo; otherwise, the installation will likely fail and you may not notice the error message indicating the failure was a result of permission issues.

Categories : Python

error serving django on apache2 with mod_wsgi: No module named settings
sys.path.append(rootpathofyoursite) My wsgi file is in the root path of my site, so I cheat: sys.path.append(os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe()))))

Categories : Python

AWS Elastic Beanstalk error - ImportError: No module named flask.ext.sqlalchemy
Make sure you have included a requirements.txt file in root directory of your project. The file should include any pip package that needs to be installed Flask-SQLAlchemy=1.0 http://www.pip-installer.org/en/latest/cookbook.html#requirements-files

Categories : Python

GAE Python bulk uploader is giving error: "ImportError: No module named model"
Well, I think I found the answer, but it doesn't look like I'm going to be able to use the bulk uploader anyways since my objects use ndb. See these answers: bulkloader not importing ndb.model dowload app engine ndb entities via bulk exporter / bulk uploader

Categories : Python

Using RVM to install Ruby WITHOUT sudo
RVM by default uses number of threads equal to number to CPU cores, you can override the number of threads on command line: rvm install 1.9.2 -j 1 this will use only one thread for compiling ruby and seem safest bet if compilation fails with multiple threads.

Categories : Ruby

npm install error with connect module
The module you're trying to install requires Express, which requires Connect@2.9.0, which is unable to find the modules you're listing. Trying use npm cache clean and then reinstalling. If that doesn't work, you can alternately completely remove the node_modules folder.

Categories : Node Js

sudo in pbuilder environment to install
I found that the usage sudo is not necessary, if the package is configured correctly. I needed to add the folders, where python setup.py install needs access, to debian/*install files.... and use --install-layout=deb --root=debian/tmp During pbuilder build: run setup.py --install-layout=deb fails (no rights to write to /usr/lib/python2.7/dist-packages) Then the access permission are set correctly. Just use dh_install correctly.

Categories : Ubuntu

Using sudo to install maven projects
I'm not familiar with the specifics of these projects builds. Typically, however, mvn install is not run with elevated privileges because all it does is build the projects and put the output artifacts in ~/.m2/repository/. This allows the artifacts to be referenced as dependencies by other maven projects you want to build locally. This is useful if you need to do development against unreleased code. mvn install is not analogous to make install in that the latter will usually install binaries on system paths, where as the former installs binaries in your home directory (specifically ~/.m2/repository/ as mentioned above.

Categories : Eclipse

unable to install a module due to sql error message
I think the problem is this line: DROP TABLE IF EXISTS{$installer->getTable('training/animal')}; Add a space between EXISTS and {$installer->getTable('training/animal')}.

Categories : PHP

npm / yeoman install generator-angular without sudo
Generators are designed to be installed globally. Otherwise, you always have to install the generator you're about to use in each project, which is unnecessarily painful. Also, you don't get to see the lovely yo menu which lists you all the available generators (unless of course, you install them all locally): Setting up npm for global installation So, how do we get npm to install packages globally? As you correctly said, you should never, ever run yo with sudo. There are lots of different solutions to this problem and you can spend hours discussing their pros and cons religiously. I personally dislike installing my user packages into the global /usr/ folder. /usr/ is for software that is shared across all users on the computer. Even if it's only using using the machine, there are sti

Categories : Angularjs

Error while using Scrapy : ['scrapy.telnet.TelnetConsole': No module named conch twisted]
On Ubuntu, you should avoid using easy_install wherever you can. Instead, you should be using apt-get, aptitude, "Ubuntu Software Center", or another of the distribution-provided tools. For example, this single command is all you need to install scrapy - along with every one of its dependencies that is not already installed: $ sudo apt-get install python-scrapy easy_install is not nearly as good at installing things as apt-get. Chances are the reason you can't get it to work is that it didn't quite install things sensibly, particularly with respect to what was already installed on the system. Sadly, it also leaves no record of what it did, so uninstallation is difficult or impossible. You may now have a big mess on your system that prevents proper installations from working as well

Categories : Python

"Error: No module named haystack" after installing django haystack inside virtualenv
Found answer here: python packages not installing in virtualenv using pip The problem was that I was using sudo with pip in my virtualenv. As a result, pip was installing outside of my virtualenv.

Categories : Python

How to Install Matplotlib Basemap Module on Windows 7 with WinPython (or any Python stack install)?
I use windows. And my installation failed with official guidance, too. Finally I installed Basemap using the following method. Although I am not sure if it will go right for you, I just offer mine. First of all, you must have pip in your computer. (It is much easier to install, compared with Basemap and other things. And it can be used to install many useful packages.) Then go this great link: http://www.lfd.uci.edu/~gohlke/pythonlibs/ And download the file named "basemap‑1.0.8‑cp27‑none‑win_amd64.whl". Remove the .whl file to directory "C:Python27". (Maybe you installed your python in different disk, then change it accordingly.) Open terminal. (Use cmd or Git Bash or something else.) Use command: pip install basemap‑1.0.8‑cp27‑none‑win_amd64.whl

Categories : Python

Drupal module node type creation .install vs .module
you can create node_types using both node_type_save() and hook_node_info(). Drupal Core book module creates it in hook_install. But its more common practice to do so in hook_node_info() or hook_entity_info() ( node module uses hook_entity_info() ). if you implement using hook_node_info() you are more complaint with the way drupal works. For example node_type_rebuild() will only work with values defined in hook_node_info() and not node_type_save(). Imo you should be using hook_node_info() or hook_entity_info() and let drupal core handle the rest.

Categories : Drupal

sudo: effective uid is not 0, is sudo installed setuid root?
Your sudo binary doesn't have the setuid flag, as it correctly guessed. As root, try: chmod u+s /usr/bin/sudo OSX users: To everyone landing here from search engines: this is not the way to fix the OSX system that you broke. The question is Linux oriented - hint, lxc tag - and that is what this answer is for. The answer provided by Gustavo Matias might help :-)

Categories : Misc

no module named requests
In trying to sort this out, I have broken python, and eventually I got it going again. I think initially I had not run one of the port select --set... commands. Once I realised this might be the case, I did so, but that produced the errors at the top. MAXREPEATS, a circular reference perhaps? No idea. I have read here (macports didn't place python_select in /opt/local/bin) and here (How do I uninstall python from OSX Leopard so that I can use the MacPorts version?) about the --set command not working and to try sudo port select python python26 (i used python27) instead. I checked the PATH and python didn't appear, so I updated that as well. I got my python interpreter back and low-and-behold imports requests now works. I think at the end of it all, there were two errors: I

Categories : Python

ImportError: No module named pip
I ran into this same issue when I attempted to install the nova client. spencers-macbook-pro:python-novaclient root# python setup.py install running install /usr/bin/python: No module named pip error: /usr/bin/python -m pip.__init__ install 'pbr>=0.5.21,<1.0' 'iso8601>=0.1.4' 'PrettyTable>=0.6,<0.8' 'requests>=1.1' 'simplejson>=2.0.9' 'six' 'Babel>=0.9.6' returned 1 I use homebrew so I worked around the issue with sudo easy_install pip spencers-macbook-pro:python-novaclient root# brew search pip aespipe brew-pip lesspipe pipebench pipemeter spiped pipeviewer If you meant "pip" precisely: Homebrew provides pip via: `brew install python`. However you will then have two Pythons installed on your Mac, so alternatively you can: sudo easy_

Categories : Python

No module named 'Dajaxice'
If I remember correctly the Dajaxice tutorial leaves out the part where you actually have to install Dajaxice... If you haven't already you should try pip install django-dajaxice

Categories : Misc

No module named constants
the problem is in the resources.py file for tastypie. It has the following line: from django.db.models.constants import LOOKUP_SEP That import will only work on 1.5+. For django < 1.5, it should be: from django.db.models.sql.constants import LOOKUP_SEP Upgrading to 1.5 will definitely fix it, but for those who can't, temporarily downgrade tastypie or do that fix yourself.

Categories : Python

ImportError: No module named base
Your base module is located in the ui module. Hence from base import BasePage shoul dbe from ui.base import BasePage

Categories : Python

requirejs - Cannot define named module
You can only? fetch the module using the specified callback in require: define('myModule', [], function () { return function () {}; }); requirejs(['myModule'], function(myModule) { console.log(myModule); });

Categories : Javascript

ImportError: No module named gi.repository Mac OS X
Did you use the built Python or the one that home brew installed to /opt/python/ ? issue which python in your term. Then in python issue import sys; print sys.path.

Categories : Python

ImportError: No module named requests
Requests is not a built in module, so you will have to download it. You can get it here: https://pypi.python.org/pypi/requests OSX/Linux Use $ sudo pip install requests if you have pip installed On OSX you can also use sudo easy_install -U requests if you have easy_install installed. Windows Use > Patheasy_install.exe requests if you have a windows machine, where easy_install can be found in your Python*Scripts folder, if it was installed. (Note Patheasy_install.exe is an example, mine is C:Python32Scriptseasy_install.exe) If you don't have easy install and are running on a windows machine, you can get it here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#distribute If you manually want to add a library to a windows machine, you can download the compressed library, uncompress it,

Categories : Python

No module named using sys.path.append
From your drawing, app1 is a sibling to mysite—that is, it's in /home/jack/workspace/Project1/app1/, not /home/jack/workspace/Project1/mysite/app1/. So, sys.path.append("/home/jack/workspace/Project1/mysite") isn't going to do you any good; you need `sys.path.append("/home/jack/workspace/Project1/")'.

Categories : Python

pycharm no module named redis
As per my understanding pycharm will say "No module named redis" if you haven't set up python interpreter in pycharm or in case there is no such module you are trying to use installed in the python interpreter you are currently using for pycharm. To add python interpreter to pycharm go to File -> Settings -> Python interpreter

Categories : Python

img2pdf.py "no module named Image"
On the Pillow library link, it is written: Note: use from PIL import Image instead of import Image. But when I look to the img2pdf.py script that I've found here, it is written import Image. So I guess you have to edit your img2pdf.py as specified above.

Categories : Python

ImportError: No module named _____
You are already within the myapp module by being in the myapp folder. Therefore, you do not need to use the import myapp.modu1 syntax and instead should use import modu1. For example: import modu1 obj = modu1.TestMod1Class() obj.msg() # output: Hello World! Note: I tested in Python 3 because I don't have 2 on my machine, but it should be the same (I did edit modu1 to use the new print syntax).

Categories : Python

ImportError: No module named PyQt4
It is likely that you are running the python executable from /usr/bin (Apple version) instead of /usr/loca/bin (Brew version) You can either a) check your PATH variable or b) run brew doctor or c) run which python to check if it is the case.

Categories : Python

ImportError: No module named mechanize
Have you checked sys.path in the python shell? >>> import sys >>> sys.path # Returns a list of directories & .egg files For python to find mechanize, it needs to be in one of the places listed on sys.path. If you know where mechanize was installed, then you can check directly whether it's on sys.path (I'm not sure how to find out where it was installed automagically).

Categories : Python

No module named pycurl on mac terminal
You are using a module called pycurl that may not be installed in your machine. To test if it is installed in your machine, do the following: $ python >>> import pycurl and see if you are getting an error message. If so, download it: pip -v install pycurl

Categories : Python

Jython no module named random
Try in PyDev entering: import sys print sys.path then add the same to your script - before the problem and compare the two, if they are the same in both cases search the elements of both for random on your local machine and the one your server runs on.

Categories : Java

No Module Named pydispatch when using pyOpenGL
You need to install PyDispatcher separately. Please take a look at the required packages for the tutorial to work along with the installation instructions here: PyOpenGL Introduction Check particularly within the section named Package Installation

Categories : Python



© Copyright 2017 w3hello.com Publishing Limited. All rights reserved.