w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
"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

Installing M2Crypto inside of virtualenv without installing swig to the system
So in the end I got this to work by letting buildout handle downloading and installing swig and M2Crypto and then just moving the built M2Crypto and EGG-INFO directories from where buildout put them to where virtualenv wanted them...this might not be the optimal solution, but hey, it worked.

Categories : Python

Installing Flask with Virtualenv
You need to source the bin/activate script first in the new flask folder to activate the virtualenv. If you are running bash (most likely) then run: cd new/flask/directory . bin/activate pip install ... When you want to get out of the virtualenv, you can quit the terminal tab, or run: deactivate Note that when you activate a virtualenv, it only is active in the one terminal tab you are in. If you don't run that command first, then pip will try to install into your system directories, thus giving the permission errors you are seeing.

Categories : Python

Installing msi files into virtualenv pythons on windows
You don't need to manipulate the registry because you can use binary installer (.exe) to install Python package into virtualenv. See Can I install Python windows packages into virtualenvs? for details.

Categories : Python

pip not installing to site-packages directory from within virtualenv when I use a requirements.txt
So I figured out the answer to my own question. Basically, if you are running Python 2.7 (and likely other versions) on Windows, some packages don't play nicely. If anyone else is having this problem, you should download Windows binaries from http://www.lfd.uci.edu/~gohlke/pythonlibs/ and remove those packages from your requirements.txt file. Once I did so, pip stopped crashing during the install process and correctly installed the rest of the packages in my requirements.txt file. The packages I needed were: pillow psycopg reportlab

Categories : Python

Django Buildout to Virtualenv
Buildout and virtualenv can work just fine together. Upload your buildout.cfg, your bootstrap.py and use the virtualenv python to run the bootstrap.py script. Kenneth Reitz (of requests fame, and Heroku's Python guy) has created a buildpack that does just that.

Categories : Django

Do I need to reinstall Django for new virtualenv?
The easiest way to go is to freeze your requirements into requirements.txt and then install them in the new virtualenv: pip freeze > requirements.txt pip install -r requirements.txt Another option is to make your virtual environment relocateable and copy each time you need a new one. This is somewhat harder to do, see: virtualenv-clone virtualenv relocatable -- does it really work Making a virtualenv based on another virtualenv FYI, virtualenvwrapper has cpvirtualenv command, but you should use it with caution: Copying virtual environments is not well supported. Each virtualenv has path information hard-coded into it, and there may be cases where the copy code does not know to update a particular file. Use with caution.

Categories : Python

Django virtualenv layout
This goes to the very heart of how you use virtualenv: cd to the virtualenv directory, then activate it (or the other way around - it doesn't really matter). The usual way to do this on linux (or cygwin) is to source ./bin/activate/ from inside the virtualenv. At that point, if you use pip or python they will be local to that virtualenv. You should only perform your installations, and run your stuff after activating the virtualenv. So, to answer your question: switch and activate before you start to install or do anything. Do everything inside the virtualenv, with it activated.

Categories : Python

How to clone a django reporsitory into a virtualenv
clone repository, if your app is has setup.py, then run python setup.py install when virtual env is actived. else copy this app inside you django project and add name of it your INSTALLED_APPS in settings.py or you can use pip install -e <repo_addr>, see doc.

Categories : Python

Emacs django-mode does not detect virtualenv
There was recent a question at Help-gnu-emacs@gnu.org whose answers pertains to your case also http://lists.gnu.org/archive/html/help-gnu-emacs/2013-06/msg00425.html WRT this answer only replace Pymacs by django-mode. For the moment, just use Emacs as editor. Otherwise see some risk to end up in frustration. IPython is great to learn Python itself, basically it provides an enhanced interactive shell. On IPython is built Enthought -- a Python Distribution providing scientists with a comprehensive set of tools to perform rigorous data analysis and visualization. Don't see it related to Django so far.

Categories : Emacs

manage.py runserver in virtualenv using wrong django version
When you run manage.py on its own, Windows is pulling it off of the main Windows PATH, and then running it off of the main Windows association with Python, which is your default installed version of Python, and thus outside your virtualenv. Inside your virtualenv, try running python manage.py runserver and see what happens.

Categories : Python

Django fails to find R when loading RPy2 under virtualenv
I believe that sys.path has little to do with the environment variable PATH, which the one that should be set (along with LD_LIBRARY_PATH if needed). I am guessing that Apache is running as a dedicated user (not your own UID for obvious security reasons), and that user does not have R in its path (other security step - by default Apache should not be able to run any executable on your system). You'll have to either allow Apache to run the system's R, or have an R install only for your server (the later being the better if considering anything beyond a prototype to play with)

Categories : Python

Virtualenv not working after Python upgrade. What to do?
I notice that you don't mention which python you upgraded from but my best guess of your problem: You are telling virtualenv that the actuall python executable is in club_env/build/python - Is it? Tell virtualenv where python really is or just accept the defaul behavour and see what that gets you. A couple of answers spring to mind but they would get me slapped.

Categories : Python

django installing dependencies from git
Python modules you can install directly from git. For example: pip install -e git+git://github.com/jschrewe/django-genericadmin.git For frontend modules you can use tools like bower. For installing Twitter Bootstrap: bower install bootstrap Both tools has config files, which can be used to track dependencies.

Categories : Python

how to: installing django on heroku
Setting up your project You'll need to add a couple of files to the root of your project: The first file, named requirements.txt, should contain the dependencies for your project (this is not really Heroku specific). At the minimum, this should include: Django Then, you'll need to add a file named Profile (this is more Heroku-specific) that tells Heroku how you run your project: web: gunicorn YOUR_PROJECT_NAME.wsgi:application YOUR_PROJECT_NAME should be whatever argument you gave manage.py startproject. This should also be the name of the folder that contains your wsgi.py file (settings.py will be there too). Deploying to Heroku Next, you should initialize a git repository for your projec:t git init Then, commit your project: git add . git commit -m "Initial commit for my pr

Categories : Python

Installing Django to Python 3.3 on Mac
I would recommend using a virtual environment, and use the -p flag to specify which python you wish to use $ virtualenv -p /usr/local/bin/python3.3 <virtual_env> Or $ virtualenv --python=/opt/python-3.3/bin/python ENV Just change the path to Python accordingly Documentation here

Categories : Python

Installing postgresql for Django
You can connect in 2 different ways to PostgreSQL: Unix sockets. They are special files on your filesystem that process can write into and read from. TCP sockets, which main purpose is to allow inter-machine communications on top of the Internet Protocol, but that can very well be used to connect 2 processes on the same machine. The error message you're getting tells you that Django attempted method one, looking for a special file representing a Unix socket, but didn't succeed. It's very likely that your PostgreSQL instance listens on TCP sockets instead of Unix sockets. To confirm this, try to connect to PostgreSQL using the psql command line client like this: psql -h localhost -U user databse_name If you're successful, then you can configure Django to connect to localhost via TCP

Categories : Django

Installing Older Version of Django
First clean your cache for anything that looks Django-like in: ~/.pip ~/tmp or place a 'clean' place to install it to using the --download-cache option for different versions use a virtualenv to install. as sudo pip install installs it globally What version of pip are you using? This should have been fixed in pip >=1.4 (the newest one currently). It might help you in the future to reinstall pip/build from source depending on where you're getting your packages from. I know currently on Debian with my config I can only install: python-pip | 1.1-3 | http://ftp.us.debian.org/debian/ wheezy/main Sources which as you can see does not include 1.4. the relevant command to generate the version #'s is apt-cache madison <package>, yup madison is actually the name of the paramet

Categories : Python

Error trying to installing django non-rel on windows 7 system
DatabaseOperations is defined by django, and used by djangotoolbox and djangoappengine. Looks like the code in djangoappengine is not matching the code in django. Make sure you have the appropriate versions of each installed. My guess is that you have the latest djangoappengine but not the latest version of djangon-nonrel.

Categories : Django

Django: djcelery Import error from celery import current_app as celery in virtualenv
Did you wrote into the settings.py?: INSTALLED_APPS = ( ... 'djcelery', ... ) If you want work with Django's enviroment you must run console as ./manage.py shell or ./manage.py shell --settings=path_to_settings_file_without_extention

Categories : Django

Installing Django "open file with" message when using the "setup.py install" command
You need to add the python.exe file to your system PATH. Heres a quick link on how to set/update your path on windows http://www.computerhope.com/issues/ch000549.htm Once you have that python.exe file added to your path you can run python from the command line.

Categories : Django

Installing and working with PHPUnit
The PHPUnit batch file should be in your path. Then running PHPUnit from the command line would be done in a shell, with the current directory being where you have installed everything, and it assumes that your User.php file is there as well. I sue a bootstrap.php file to run from my source code directory. <?php /** * This file is used to configure the basic environment for testing in PHPUnit. */ // PHP and Web server settings error_reporting(E_ALL | E_STRICT); date_default_timezone_set("America/Toronto"); // Set the default timezone $_SERVER['SERVER_NAME'] = 'http://xxx'; // Set Web Server name // Process the Include Path to allow the additional applications to be set. $IncludePaths = explode( PATH_SEPARATOR, get_include_path() ); $NewIncludePaths = array_merge( $In

Categories : PHP

Installing Git with Homebrew not working
It looks like there's a conflict with GitHub's app. I would remove it, you don't need it. A few people I spoke with about it said it was kind of buggy and that you're better off just using the terminal (which I agree with). edit: brew update brew upgrade followed by brew doctor might give more clues.

Categories : GIT

After installing curl extension php stop working
I dont now why it happened but you could just link /usr/lib/php5/20121212/ to /usr/lib/php5/20100525/ ln -s /usr/lib/php5/20121212/ /usr/lib/php5/20100525/ So you dont need to change all config files. Update: You can reinstall php with apt-get purge php5 apt-get install php5 I think a better package manager than apt-get is aptitude.

Categories : PHP

Composer not installing laravel 4 dependencies but working for other for eg twig
Perhaps try installing Laravel through Composer instead. composer create-project laravel/laravel This will do everything you need to get a new Laravel project up and running in one line, which I wrote about as a fast install for Laravel 4.

Categories : PHP

Installing subversion under /apps other than /var/www/ is not working. Centos Linux version
In the httpd.conf file your Document Root Section probally says <Directory "/var/www"> Also you can give apache ownership of that directory but only if such is placed in the document root. (If I understand you this may not work for you) chown -R apache.apache /apps Apache can access items outside the root but that is soemthing I am not familiar with and you can look into the apache Alias EDIT As the comment under your OP says SVNADMIN should be able to create the repo and you should be able to hit it. mkdir /app/svn svnadmin create /app/svn/testrepository chown svn:svn -R /app/svn Subversion also is very nice about keeping space low since it only stores revisions to projects instead or brand new versions each time. EDIT Setup Walkthrough - Posted in comments

Categories : Svn

Installing Django: Using XAMPP's MySQL, MySQL-python 1.2.3 & 1.2.4 errors?
The main problem is here: Setup script exited with error: Unable to find vcvarsall.bat It means that your Cand C++ were not compiled. If you have installed Visual Studio 2012 recently, then follow my answer here, to find the solution to your problem.

Categories : Python

Laravel 4.0 - Php Artisan Serve function not working after installing three public modules
Hi i found solution on this url. http://forums.laravel.io/viewtopic.php?pid=38246#p38246 delete scripts from your composer.json

Categories : PHP

Installing SQL objects in C# - issue when installing CLR assembly and function scripts
I have now fixed this problem. The issue turned out to be that I was using the same SQLCommand later on to execute a stored procedure (as I have given the command a SQLTransaction so I can rollback if it fails) and had forgotten to remove the parameters that were added when I run the next text command. Therefore it was running the first script file and failing afterwards.

Categories : C#

Installing setuptools prior to installing python dependencies on Mac
You command attempts to install files into system directories. You must execute the command as root or with sudo: sudo sh setuptools-0.6c11-py2.7.egg You can see this error with the: [Errno 13] Permission denied Edit: If you don't have permissions, you can try installing into your user's Library folder, or look at virtualenv. (See the part about using locally from source.)

Categories : Python

Checking and Installing .net 4.0 before while installing my forms app in SharpSetup WIX
You can check if the .NET framework is installed by linking to the NetFxExtension with light. Just add a PropertyRef to the one you want. You can find a list of those properties here. Say you want to make sure .NET framework 4.0 Full is present before installing your software, you'd add this somewhere in your source code: <PropertyRef Id="NETFRAMEWORK40FULL" /> <Condition Message=".NET Framework 4.0 Full is not installed."> NETFRAMEWORK40FULL </Condition> When running the MSI, the LaunchConditions action will run and check if the NETFRAMEWORK40FULL property is set. If it is, the installation continues, if not, the installation fails. However, if you wanted to install the .NET Framework beforehand, you'll need two WiX projects. One for your basic MSI, and one for

Categories : Dotnet

What is the difference between installing an app via homebrew or installing it "normal"?
homebrew (like Macports) is a package manager. It allows you to manage packages (update, delete etc.). Most importantly, homebrew will compile the application on your platform. That's especially important for ports, e.g. from Linux. homebrew will give you greater and more fine grained control over what you install, where, what compilation attributes you want to use etc. But this comes at the cost of a bit more complexity and the need to know your way around the command line. Downloading a binary and putting it in the Applications folder is easier by far and usually works fine. If your not a developer and don't need to manage many different tools then I'd recommend sticking with binary downloads. If you're a developer however, you will most likely not get around a package manager if you n

Categories : Osx

Django - Integrating django-profiles (and django-registration) with django-facebook
Here's how I suggest you do things. Do away with django-facebook and look into django-allauth. It will handle accounts (registration, logic, connecting social accounts). Also, django-profiles has many issues with 1.5+ for me and I don't bother with it and instead create my own profiles app and UserProfile model with any additional fields that wouldn't be handled by django-allauth. An example from one of my implementations class UserProfile(models.Model): user = models.OneToOneField(User) default_address = models.OneToOneField(Address, blank=True, null=True) default_tshirt_size = models.CharField(blank=True, null=True, choices=constants.tshirt_sizes, max_length=50) default_shoe_size = models.CharField(blank=True, null=True, choices=constants.shoe_sizes, max_length=50) Y

Categories : Python

Rails installing mysql - Error installing mysql2: ERROR: Failed to build gem native extension
I've been so annoyed by the same problem, and finally succeeded in installing mysql2. Kudos to odiszapc@github. It appears any other solution I've found via Google than below doesn't work to me. Copied and pasted from here. So no credit to me. gem uninstall mysql2 Download last MySQL connector from http://cdn.mysql.com/Downloads/Connector-C/mysql- connector-c-noinstall-6.0.2-win32.zip Extract it to C:connector-6.0.2 gem install mysql2 --platform=ruby -- '--with-mysql-lib="C:connector-6.0.2lib" --with-mysql-include="C:connector-6.0.2include" --with-mysql-dir="C:connector-6.0.2"' Additional info on mine. ruby 1.9.3p392 (2013-02-22) [i386-mingw32] Rails 3.2.13 MySQL Server 5.6 mysql2-0.3.13 P.S Even if you successfully installed mysql2, you may still need some work (e.g. mysql2

Categories : Mysql

CSS not working in Django
My first guess would be that you are overriding {% block jsscript %} in some descendant template. If that is not the case, then I would confirm that the output of {% static 'css/base.css' %} is actually giving you what you expect (can you visit that URL?) Two other thoughts: Spaces don't really matter in templates. You should probably move your CSS into something like {% block stylesheets %} instead of {% block jsscript %}.

Categories : CSS

Issues with virtualenv
Looks like I had incompatible versions of pip and virtualenv installed for my python version (2.7.5). I did the following to fix sudo pip unistall pip sudo easy_install pip sudo pip install virtualenv Notice that I installed pip via easy_install instead of brew

Categories : Python

how to install virtualenv and/or pip
You are following install guides for linux. You should try to find an install guide for pip and virtualenv on windows. First install pip systemwide and then use pip to install virtualenv systemwide. Then start using virtual environments. Start with How to install pip on W$ and Python and virtualenv on W$. An alternative is the Hitchhiker's guide to python. Edit As Ron Elliott states in the comments, you'll need to point your path to C:Python2xScripts or C:Python3xScripts in order to pick up easy_install and pip as well as any other script executables installing to that directory.

Categories : Python

Cannot install virtualenv using pip
You appear to be using Python 2.4 - try creating the virtualenv with a version of Python which includes from __future__ import absolute_import (Python 2.5 or later). You can specify which Python to use like this: virtualenv -p /usr/bin/python2.7

Categories : Python

How do I run uwsgi with virtualenv
Use -H to set virtualenv to python path. uwsgi -H /path/to/your/virtualenv http://uwsgi-docs.readthedocs.org/en/latest/Options.html#virtualenv

Categories : Python

Do I need to use virtualenv with Vagrant?
If you run one vagrant VM per project, then there is no direct reason to use virtualenv. If other contributors do not use vagrant, but do use virtualenv, then you might want to use it and support it to make their lives easier.

Categories : Python



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