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

Socket.error with foreman start: Tesing deploying a simple flask app to Heroku
Soultion: from terminal: heroku config:add PORT=33507 Then change your app to: if __name__ == '__main__': import os port = int(os.environ.get('PORT', 33507)) app.run(host='0.0.0.0', port=port) It seems that heroku reserves flask's default port for its own purposes. A detailed discussion can be found here: Deploying Flask app to Heroku.

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

python virtualenv and flask installation. No module named flask
I hope you had installed virtualenv and if you have create the virtual environment (virtualenv), you have to use . . venv/bin/activate command to activate the enviroment in unix or OSx. Hope you will get information from this source http://flask.pocoo.org/docs/installation/#installation

Categories : Python

DigitalOcean Deploy - "ImportError: No module named flask.ext.wtf"
SOLUTION (Following Cathy's advice above, and dAnjou below), virtualenv must be activated from the wsgi script. Adding activate_this execution solved the problem: #!/usr/bin/python activate_this = '/var/www/try_me/venv/bin/activate_this.py' execfile(activate_this, dict(__file__=activate_this)) import sys ..

Categories : Apache

"Application Error" deploying to Heroku
heroku chokes recognizing windows ruby environment executables. bin/bundle bin/rake bin/rails all contain the line #!/usr/bin/env ruby.exe Change it to #!/usr/bin/env ruby Then you should be able to deploy

Categories : Ruby On Rails

Error deploying rails 3.2 to Heroku
It seems that you need to add the following line to config/application.rb: config.assets.initialize_on_precompile = false https://devcenter.heroku.com/articles/rails-asset-pipeline

Categories : Ruby On Rails

Error H12 Deploying Express JS App to Heroku
I can see what look like two bugs. One issue is very likely your use of localhost and a static port for accessing the database. On Heroku, you'll get the database URL via an environment variable. More important, you need to get the web port from Heroku as well, as shown here: https://devcenter.heroku.com/articles/nodejs#write-your-app

Categories : Node Js

Error while deploying application in heroku
You should generate pair of keys and add your public key to your heroku account. More info: https://devcenter.heroku.com/articles/keys ssh-keygen -t rsa and then: heroku keys:add should be enough.

Categories : Ruby On Rails

502 Bad Gateway error Nginx and uWSGI in deploying Flask app
With uwsgi_pass 127.0.0.1:9001; you declared to Nginx your intent to talk to uWSGI through TCP socket, but have not warned uWSGI about it. Try adding a corresponding socket line to your /etc/default/uwsgi file: PYTHONPATH=/var/www/reframeit-im MODULE=wsgi socket=127.0.0.1:9001

Categories : Nginx

Broken Pipe error deploying on Heroku
I realize this may be ridiculously obvious. However, I just had this error and googled it and then ended up "fixing" it on my own. For me I got this error because my internet connection was bad. I reconnected and then pushed to heroku again and it worked fine. Probably not the only solution but make sure your connection is not getting interrupted first, sometimes the simplest answer is the answer.

Categories : Ruby On Rails

"Internal Server Error" deploying Django app to Heroku
Can you please provide the output of the command heroku logs --app YOUR_APP_NAME and set DEBUG=True on settings.py ? It seems to be a valid deploy with an application error.

Categories : Django

Heroku - Flask - Bcrypt error
I was able to get around it kind of, by successfully installing the following: "Successfully installed z3c.bcrypt python-bcrypt py-bcrypt-w32". Installing one of these (likely the second one) is what probably included the main bcrypt library that I guess needed to be compiled? I not 100% sure... I noticed this post is from July, I was able to download those libraries all using PIP.

Categories : Python

PlayFramework - Error when deploying to Heroku (pgsql 'user' table)
Postgresql has a default "user" table. I would recommend naming your table something else like member. It will conflict with it otherwise. Caps might work, or tildes `user`, but even then I'd recommend using a different name for the table. Wipe your table just in case there is an evolution backup.

Categories : Java

When deploying to Heroku i get ActionView::Template::Error (Missing partial
git add admin/orders/form active_admin/resource/form inherited_resources/base/form .. git commit -m "missing partials" git push heroku master As your partials file are not pushed in heroku

Categories : Ruby On Rails

Deploying Django app on Heroku: Can I manually set environment variables in the .env file? Do I need to install tools like autoenv, heroku-config...?
I got stuck with the postgres as well, here's what I did in the settings.py to add local settings: DATABASES = { 'default': dj_database_url.config(default='postgres://<user>:<password>@<host>/<dbname>') } Of course you have to have created the database following postgres steps. Solution was from https://discussion.heroku.com/t/dj-database-url-config-is-returning-an-empty-object/55/9

Categories : Django

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

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

deploying to heroku error "! [remote rejected] master -> master (pre-receive hook declined)"
It seems there is an issue with nested comments being poorly handled by the sass compiler during asset precompilation. http://www.madflanderz.de/madblog/archives/307/heroku-rake-assetsprecompile-failed-invalid-css/ Removing nested comments in CSS (// lines within /* */ blocks) should solve the issue. This may be harder with third-party CSS libraries you've included in your project. In that case an upgrade of sass-rails could help (but this is something I've never tried).

Categories : Ruby On Rails

Error deploying to Heroku (DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins)
If you are trying to remove the plugin, you need to run rails plugin remove [your-plugin], not just delete the folder. Also, I believe heroku adds some plugins to your app, and it's possible that those are deprecated.

Categories : Ruby On Rails

How can I get rid of Error: Cannot find module 'models' on Heroku
You are missing "models" in the "dependencies" property of your package.json. (I checked the github repo). EDIT: sorry, looks like you are trying to use the module under /lib/models/ folder. So in this line https://github.com/gravityonmars/nodejs-starter/blob/master/index.js#L20 you can do this instead: require('./lib/models')(app);

Categories : Node Js

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

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

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

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

Deploying a Flask app to hosting at godaddy
Being on a shared environment means that you will most likely need to use CGI to deploy: http://flask.pocoo.org/docs/deploying/cgi/ On shared webhosting, though, you might not have access to your Apache config. In this case, a file called .htaccess, sitting in the public directory you want your app to be available, works too but the ScriptAlias directive won’t work in that case: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f # Don't interfere with static files RewriteRule ^(.*)$ /path/to/the/application.cgi/$1 [L]

Categories : Python

Deploying a TCP server to Heroku
Heroku doesn't support a generic TCP server but you should be able to get the functionality you want with socket.io. You need to put web in your Procfile. That's what lets Heroku bind an external connection to port 80 to the local port your web traffic will arrive you. You find that port by looking at the environment variable $PORT. More info, with examples, is here: https://devcenter.heroku.com/articles/nodejs

Categories : Node Js

Timeout when deploying to Heroku
It is possible to compile the binary on your machine, commit it to the Heroku-only repository and push that. Here is a script I used to deploy: #!/bin/sh -e cabal configure cabal build cd heroku # this is my Heroku-only repository git rm -r * cp ../dist/build/labyrinth-server/labyrinth-server . cp -r ../public/ . # this is the static files directory echo "web: ./labyrinth-server" > Procfile touch requirements.txt # pretend to be a Python app, otherwise Heroku doesn't know what to do git add * git commit -m "New version." git push cd - >/dev/null Note: I switched to OpenShift later, and the OpenShift deploy script has a few enhancements. Another note: you should make sure you are building on a machine with compatible architecture and link against an existing libc version. You can

Categories : Haskell

Deploying apps to Heroku
Heorku only recognizes Node.js apps via a Node Packaged Modules (NPM) package.json file. It looks like the app you're trying to deploy doesn't use NPM. See: Getting Started with Node.js on Heroku: https://devcenter.heroku.com/articles/nodejs#declare-dependencies-with-npm NPM: https://npmjs.org/

Categories : Javascript

Deploying Meteor to Heroku with Git
Have you added your computers SSH-key to your Heroku-account? This is how you generate/get the key: https://help.github.com/articles/generating-ssh-keys This is where you add it (when you're logged in to your Heroku-account): https://dashboard.heroku.com/account Though I would probably start by learning a bit more git before getting started with Heroku if I was you. This is a great place for learning git: http://git-scm.com/book/en/Getting-Started-About-Version-Control

Categories : GIT

After deploying rails app to Heroku, no dropdowns
In (most) production setups, only the files in public/assets are available for use directly in link or script tags. When you push to Heroku, it precompiles app/assets/javascripts/application.js by merging and compressing all javascript files required in application.js into a single file at public/assets/application-xxxxxx.js. Individual files, such as jquery.js, are not available. Therefore, it's recommended to use <!-- HTML --> javascript_include_tag 'application' // inside app/assets/javascripts/application.js //= require jquery //= require jquery_ujs However, if you insist on including jquery manually without requiring it in application.js, you can add it to config.assets.precompile. # config/environments/production.rb config.assets.precompile += ['jquery.js', 'jquery_ujs.js

Categories : Ruby On Rails

We're sorry, but something went wrong When Deploying Rails App to Heroku
I've fixed the formatting on your logs, but can't see the part that is causing the error. It looks like your application is starting properly, but something is causing an error when you access the web page. Try running heroku logs --tail, then watch the output as you request the page. Towards the top of the request in the logs, you should see the part of your application that is having an issue. It should start with app/... instead of vendor/bundle/.... Once you have that, you (or I) can further diagnose the issue.

Categories : Ruby On Rails

Specifying project root when deploying to Heroku
Move your Procfile back to <git_repository_root> and use: web: gunicorn <django_project_root>.myapp:myapp replacing the final "myapp" with your app's class name, presumably it is indeed "myapp". ... and read the error message: it is telling you that you can't import your worker class (app) by filename (myapp.wsgi), so of course saying dirname/myapp.wsgi won't work as well. You need a Python module:class syntax.

Categories : Django

Deploying program to Heroku. Errors
port = int(os.environ.get("PORT", 5000)) app.run(host='0.0.0.0', port=port) Source: Heroku/Python Quickstart

Categories : Python

Why does node-gyp keep failing when deploying to heroku?
../bigint.cc:9:17: warning: gmp.h: No such file or directory Seems Heroku doesn't have GMP installed, which bigint needs to compile.

Categories : Node Js

How can I give input with getpass to a Flask app when deploying with uWSGI?
Just add --honour-stdin it will disable the remapping of file descriptor 0 to /dev/null if you call --daemonize you will lose controlling terminal, so you have to postpone daemonization after the input has been read using --daemonize2

Categories : Python

Laravel 4: Running composer when deploying to Heroku
Try the following Composer Fix You need to generate and include composer.lock in the repo, but Laravel's default .gitignore ignores composer.lock Remove composer.lock from .gitignore $ composer install Add your Procfile Heroku knows which processes to run for your app based on a configuration file called a Procfile. The default apache2 process (if you don't use a Procfile) points to the web root, not to /public, so we need to create a custom Procfile to serve the site from /public. Add a file with the name Procfile that contains this line: web: vendor/bin/heroku-php-apache2 public Deploy your code to the Heroku app $ git push heroku master

Categories : PHP

bcrypt ruby gem: problems after deploying to heroku
Did you run 'rake db:migrate' after deployment to the heroku server? ActiveRecord dynamically creates attributes in your model based on columns in tables. So most probably users table just doesn't have column password_salt.

Categories : Ruby On Rails

Deploying a maven project in eclipse on Heroku
If you are using Eclipse, the Heroku Eclipse Plugin has its own WAR deployment feature. Just right-click on your app name in the My Heroku Applications view and click Deploy. It looks like you were following the command line instructions.

Categories : Eclipse



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