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

Using the subprocess or Command module of python for Windows command prompt
Documentation says: cmd is actually run as: { cmd ; } 2>&1 And the function getstatusoutput() is available on UNIX not on Windows.

Categories : Python

sql import export command error using pyodbc module python
db2 export is a command run in the shell, not through SQL via odbc. It's possible to write database query results to a file with python and pyodbc, but db2 export will almost certainly be faster and effortlessly handle file formatting if you need it for import.

Categories : Python

Hadoop Cygwin Windows 7 JAVA_HOME Path not found and command not found
Go to environment variable and then advance setting Go to user variable and setVariable JAVA_HOME and there Value C:Javasunjdk6.0.24 Then go to Path and set cygwin path c:cygwinin;c:cygwinusrin DO it if not done erlier, If you still facing problem then see Link for Hadoop installation on windows and follow every steps.

Categories : Hadoop

What does &hellip mean/do(from Java Generics FAQ)?
That's an HTML entity; it stands for Horizontal Ellipsis. It looks like this: … (One symbol; not three separate dots) That means that their HTML is broken.

Categories : Java

Import module into python not found
Does importing QSTK work? import QSTK How about QSTK.qstkutil? If not this is most likely a sys.path problem. Please post the result of: >>>import sys >>>sys.path It should look like: [ [...], 'C:Python27Libsite-packages', [...] ] Another thing you can check, is if 'C:Python27Libsite-packagesQSTKqstkutil' contains a file named '__init__.py'. From the module documentation: The __init__.py files are required to make Python treat the directories as containing packages; this is done to prevent directories with a common name, such as string, from unintentionally hiding valid modules that occur later on the module search path. In the simplest case, __init__.py can just be an empty file, but it can also execute initialization code for the package or set the __all__

Categories : Python

rtorrent on windows: -bash: wget: command not found
Install wget as well through the setup screen of Cygwin although it would risk having updates with other packages. You can also install a native executable manually in a place valid with path like c:windowssystem32. See http://users.ugent.be/~bpuype/wget/.

Categories : Windows

Error when using scp command "bash: scp: command not found"
Issue is with remote server, can you login to the remote server and check if "scp" works probable causes: - scp is not in path - openssh client not installed correctly for more details http://www.linuxquestions.org/questions/linux-newbie-8/bash-scp-command-not-found-920513/

Categories : Misc

OpenCV2 Python createBackgroundSubtractor module not found
Thanks for the comments all. It seems that createBackgroundSubtractorMOG2() hasn't been added to OpenCV 2.4, but it is present in master branch, which can be compiled from github. I am finding that cv2.BackgroundSubtractor() is working for what I need at the moment. See http://code.opencv.org/issues/2812#note-5 for more details.

Categories : Python

Strange error : "error loading plugin. The specified module could not be found"
Are you sure that your plugin is exporting the correct interface using the Q_INTERFACES() macro? If you get the error you have two possible things to check: 1) loader.instance() returns 0: in that case you have to investigate on the reported error. 2) qobject_cast returns 0: in that case I suppose that the problem is in the missing exported interface. Also, you should consider that both of your execution paths are executing the same code, so maybe you're not getting an error at all... I'm referring to this: if (i == NULL ) // Reports the error QMessageBox::information(0, "this", "error loading plugin." + loader.errorString()); else // Hey!? WTF!? Repots the error anyway!? QMessageBox::information(0, "this", "error loading plugin." + loader.errorString()); 3) I was for

Categories : Qt

Python setup : command not found
According to your comment, virtualenvwrapper.sh is not in /usr/local/bin. You should pass correct path to source command. source /path/to/..../Scripts/virtualenvwrapper.sh

Categories : Python

module not found error in Access 2007
I don't have Access 2013, but I assume that you need to enable the content, as we do in 2010. When the file is opened a notification bar appears below the Ribbon (in 2010) to enable content. Edited I got this the wrong way round (problem is not opening from 2013, but from 2007) but opening in 2007 you would still need to enable the content. Added Almost sounds as if the form's Has Module property has been set to No, but this seems unlikely. I don't like to open databases in different Access versions - I don't trust Access to do this successfully (I've had many problems with this). I would start a blank database in Access 2007 and import all of the database objects, then Compact and Repair.

Categories : Forms

error in django called module not found
try this instead.. from django.contrib import admin from models import Publisher, Author, Book admin.site.register(Publisher) admin.site.register(Author) admin.site.register(Book)

Categories : Python

how to construct the curl command from python requests module?
This method existed in requests once upon a time but it is far from being remotely relevant to the module. You could create a function that takes a response and inspects its request attribute. The request attribute is a PreparedRequest object so it has headers, and body attributes. The body is what you pass to curl with -d and the headers can be generated as you did above. Finally you'll want to pluck off the url attribute from the request object and send that. The hooks don't matter to you unless you're doing something with a custom authentication handler. req = response.request command = "curl -X {method} -H {headers} -d '{data}' '{uri}'" method = req.method uri = req.url data = req.body headers = ["{0}: {1}".format(k, v) for k, v in req.headers.items()] headers = " -H ".join(headers)

Categories : Misc

Run a pydev module from python or ipython or command line?
two options: 1) set $PYTHONPATH in your ~/.bash_profile. This will affect both python and ipython. 2) make ipython change the path on startup. edit your ipython startup script, very likely something like ~/.ipython/profile_default/startup/00run.ipy, and add import sys path = 'path/to/project' if not path in sys.path: sys.path.insert(1, path) del path if you are working in ipython a lot in that project, you may add %cd 'path/to/project' to the startup file as well.

Categories : Python

Error q : Command not found on Vim
man su says: `-c COMMAND' `--command=COMMAND' Pass COMMAND, a single command line to run, to the shell with a `-c' option instead of starting an interactive shell. Try su root -c "vim $1 -c ':%s/^M//g' -c 'wq'"

Categories : Linux

Dot-slash not recognized in command prompt - Trying to install Python module
try to do configure if you are in the directory where that file is located. If you aren't in the same folder do this C:usersmynamepath ameconfigure If it isn't an exe, change the filetype and windows will run it

Categories : Python

Is there any Python Bluetooth Module for Windows 7 64 bit?
I think the most popular Python Bluetooth package is pybluez. The project website mentions that it works on Linux and Windows XP, and that is what your wrote in your question. You can find pre-compiled installers for Windows x32 and x64 on Chris Gohlke's web site: link. In general if you need any Python to work on Windows x64, Chris's web site should be the first place you look. For your application, there may be additional Bluetooth system configuration, but at least this should get you started. Good luck!

Categories : Python

Installing Audiere Module on Python 2.7 Windows 7
You can try to use pyglet. This library has the capability to play using external library called Avbin. Simple example of how to use: import pyglet music = pyglet.resource.media('music.mp3') music.play() pyglet.app.run() If you have some problems with avbin, put the dll in the same directory of your code and insert this two lines before "pyglet.resource.media('music.mp3')": pyglet.lib.load_library('avbin') pyglet.have_avbin=True

Categories : Python

installing request module in python 2.7 windows
There are four options here: Get virtualenv set up. Each virtual environment you create will automatically have pip. Get pip set up globally. Learn how to install Python packages manually—in most cases it's as simple as download, unzip, python setup.py install, but not always. Use Christoph Gohlke's binary installers.

Categories : Python

Pip install error. Setuptools.command not found
Try installing: sudo apt-get install python-setuptools if this doesn't work try: curl -O http://python-distribute.org/distribute_setup.py python distribute_setup.py easy_install pip Edit: If you have several (possible conflicting) python installations or environments, the following commands can be useful to debug which executables are being used: which python which pip which easy_install They should "match". It can happen for example that you have pip installing packages for an EPD or global distribution while the current python that is being used corresponds to a local environment (or something different), in which case it might not be able to see the installed packages.

Categories : Python

How to solve `neo4j: command not found` error
You can start the neo4j server with: service neo4j-service start But, if you are able to access localhost:7474, then the server has already been started. You can check the status with: service neo4j-service status Or if you want to stop it: service neo4j-service stop

Categories : Linux

is it possible to load python module from unicode path on windows?
Yeah it is either a bug in python for not supporting windows, or a bug in windows for not being sane and using utf-8 encoding. In python27.dll you can step in and see the bogus module paths...

Categories : Python

Bundle command not found error in capistrano deployment
It looks like you need to add the /user/local/bin folder to the path on the target system. Whatever login you are logging in as with Capistrano, find the profile that contains the path, and add it. Or, add /usr/local/bin to the master path (the actual file depends on the operating system and version. If you provide the operating system and shell, we can tell you the file to look for)

Categories : Ruby On Rails

MATLAB MEX C++ file Compiling error g++ command not found
Yeah, you should install a compiler before compiling. Mex is just a tool which calls one underneath and since g++ is the C++ compiler of gcc you should install this one. As far as I know it will still not work, because matlab supports only gcc 4.3 (not sure about that). So install a gcc and run mex -setup Afterwards you should be able to compile.

Categories : C++

Install numpy for Python3 command not found error
When using sudo in redhat, /usr/local/bin is not included in the search path. To run python3 with sudo, give the full path to the executable: $ sudo /usr/local/bin/python3 setup.py install

Categories : Python

when i was creating out of tree module for gnu radio , after the command " make test" i got the following error
The test is telling you that there was no 'make' factory function found for your 'square_ff'. Did you implement your code using the private implementation used throughout GNUradio, and create a square_ff::make() factory constructor? If you aren't sure, look at other modules in GNURadio or the Ettus Research UHD software, and post your own code.

Categories : Misc

Python, Command Line, Windows
After modifying your path, did you start up a new instance of the command prompt (this has caused me much grief in the past)? To check if your path change was successful: echo %PATH% and check to see if C:Python2.7.5 was appended to it. If not then run: set PATH=%PATH%;C:Python2.7.5 To call a python script with a command line argument (assuming that your script is in the current working directory): python letter_counts.py "Your Text Goes Here" OR if you just want to be overly verbose (or your PATH still isn't right): C:Python2.7.5python.exe .letter_counts.py "Your text still goes here" EDIT: Make sure you are doing this from the command prompt and not the python interpreter. To access the command prompt you can hit: 1. Windows Key + R 2. type "cmd" (without quotes) and hit

Categories : Python

How To Run A Python File From Windows Command Line
If you want to know How do I run a .py file from the Python interpreter? this will work import sys sys.path.append("C:\Users\Myname\Desktop\Python") import Python-Test But your question says from the command line, which has been answered in the comments.

Categories : Python

'Method not found' error with Windows Service
Turns out that Joachim was onto something. The dll was an older reference but not by accident but more fault to InstallShield LE that is built into VS2012. My project was referencing the correct dll and when I was building the setup project, I made sure to select the output for my project but when it was being built, it was referencing an older version of that DLL. No matter how many times I deleted the Setup project and recreated it, it always kept that older reference. I ended up completely removing the project that created the DLL and recreating it with a different name, then InstallShield picked up the correct dll and it worked. Hope this helps someone else!

Categories : C#

How do I run Python script using arguments in windows command line
To execute your program from the command line, you have to call the python interpreter, like this : C:Python27>python hello.py 1 1 If you code resides in another directory, you will have to set the python binary path in your PATH environment variable, to be able to run it, too. You can find detailed instructions here.

Categories : Python

Execute process from the windows command line in Python
By trying your code it prints out PreprocessedTufts8199PLAIN.txt.xml file name. I'm not sure if the .txt.xml extension was the desired result. If your file has only .xml extension, then you're not stripping away the original .txt header. Try to change this line: outFile = file(inFile[(str(inFile).rfind('\'))+1:] + '.xml') Into this code: fnameext = inFile[(str(inFile).rfind('\'))+1:] fname,fext = os.path.splitext(fnameext) xmlfname = fname + '.xml' xmlfpath = os.path.join(".", xmlfname) print "xmlfname:", xmlfname, " xmlfpath:", xmlfpath print "current working directory:", os.getcwd() outFile = open(xmlfpath, "r") Answer for extension stripping.

Categories : Python

Application error in Windows event log, faulting module name is unknow, why?
The only way that the faulting module could be known is when the exception is caused by executing code in a memory address that "belongs" to a particular module (Probably based on the module's loaded address). So one way that the module could be unknown is if an application is dereferencing a pointer that is NULL or contains random data. That way it will attempt to execute code from some undefined location that cannot be tied to a particular module.

Categories : Windows

Using windows command line to run python script with passing of url argument
I think the problem is the way you specify your url, it needs to have the http:// part at the start. It works for me when I type python sys.py http://www.google.com/ but fails with python sys.py www.google.com (Note that I am using linux with python 2.7 but I think it may be the same problem for you)

Categories : Windows

How to Run a Command Line python script in IDLE in windows Environment
It doesn't seem like IDLE provides a way to do this through the GUI, but you could do something like: mocking them in your if __name__ == '__main__': where you intercept the command line arguments. try: __file__ except: sys.argv = [sys.argv[0], 'argument1', 'argument2', 'argument2'] You can also try, idle.py -r scriptname.py arg1 arg2 arg3

Categories : Python

Is there a simple method for executing command line statements, in windows, from within python?
Something like this? from subprocess import call call('mysqldump --result-file="db_dump 2013-08-05.sql" --all-databases', shell=True) Just remember, shell=True can be a security risk if you work with untrusted user supplied parameters. E.g. when you let an untrusted use specify the file name.

Categories : Python

Loading Module B on clicking command button from another Module A in Prism 4.0 using WPF and MEF
If you provide what you've tried so far, we can help in code or teaching specific ideas. To get you started on some code, please review Developer's Guide to Microsoft Prism: Navigation and also Prism v4 Region Navigation Pipeline to get you started. You can also find many examples already out there for the concept you're trying to accomplish here on StackOverflow, at Codeplex and at MSDN.

Categories : Wpf

"git pull" returns error in Windows command prompt
Make sure this isn't a path issue, as explained in this link (for windows, but valid for other OS too). Check also if you don't have any active git alias which might prevent a git pull to work properly. Regarding the path issue, the OP aladine confirms in the comments: I discover that after I reinstall git, it works as normal.

Categories : GIT

python pg module error messages
Do you know the psycopg2 module? It seems a very nice module to interact with PostgreSQL via Python. There is a tutorial available, besides the modules' documentation. In the examples given in the docs, commands that fail indeed print out error messages. I personally don't have experience in this module. But it looks very nice!

Categories : Python

Error when using the python module numba
It seems you are passing the wrong arguments to @jit, try using: @autojit def yourfunction(...): ... If you give more details about your function we can tell you what is wrong with your @jit statement.

Categories : Python



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