w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
Install multiple packages on linux (like pip install -r requirements.txt)
Put the list of packages in a text file(say test.txt) with package names separated by spaces, like this - python ruby foo bar then you can just install with apt-get like this - sudo apt-get install $(cat test.txt)

Categories : Linux

How do you install grunt-contrib-qunit in Ubuntu server 12.04 64?
You need to run npm install from the root of your project to install the npm dependencies. [EDIT] - After doing some more research, and after replicating this issue on a basic Ubuntu 12.04 install, I've finally figured out this issue. The dependency chain is as follows: grunt-contrib-qunit >> grunt-lib-phantomjs >> phantomjs Now the phantomjs package simply installs a local version of phantomjs, and provides a JS api wrapper around the bin application. The problem is that phantomjs has certain OS level dependencies, as mentioned in the download page: "... . It is however expected that some base libraries necessary for rendering (FreeType, Fontconfig) and the basic font files are available in the system." And this is the reason why the local phantomjs install failed. Actually, the er

Categories : Ubuntu

Cannot install grunt-contrib-imagemin (weird error 1)
This is solved by updating nodejs to version 0.10 I followed to instructions at http://slopjong.de/2012/10/31/how-to-install-the-latest-nodejs-in-ubuntu/

Categories : Node Js

Cannot install two packages that use the same namespace
After installing one of your packages and downloading the other… You're not including testsuite/__init__.py and testsuite/prettyprint/__init__.py in the source files. The docs on Namespace Packages the setuptools/pkg_resources way explains: Note, by the way, that your project's source tree must include the namespace packages' __init__.py files (and the __init__.py of any parent packages), in a normal Python package layout. If you don't actually install these files, they don't do any good. You just end up with a testsuite with nothing in it but prettyprint, and that has nothing in it but outcomes, so testsuite and testsuite.prettyprint are not packages at all, much less namespace packages.

Categories : Python

Using install.packages with custom temp dir
The documentation in help(tempdir) pretty clearly states that TMP, TMPDIR, ... are used: By default, ‘tmpdir’ will be the directory given by ‘tempdir()’. This will be a subdirectory of the per-session temporary directory found by the following rule when the R session is started. The environment variables ‘TMPDIR’, ‘TMP’ and ‘TEMP’ are checked in turn and the first found which points to a writable directory is used: if none succeeds ‘/tmp’ is used. So if setting one alone does not help, maybe you want to set several, and make sure the permissions on your 'replacement directory' are permissive enough etc pp.

Categories : R

How can I install Leiningen packages behind a firewall?
Dependency Tree In order to figure out which jars your project needs you can do: $ lein deps :tree Which will show you something that is called a "dependency tree". It will look similar to: [clj-time "0.5.0"] [joda-time "2.2"] [clojure-complete "0.2.3"] [org.myproject/some-proto "0.0.1-20130523.145830-9"] [org.flatland/protobuf "0.7.2"] [ordered-collections "0.4.0"] [org.flatland/schematic "0.1.0"] [org.flatland/useful "0.9.0"] [com.datomic/datomic-free "0.8.3862"] ... Installing Jars with Lein One simple way to install manually downloaded jars would be to use "lein-localrepo": $ lein localrepo install [-r repo-path] [-p pom-file] <filename> <[groupId/]artifactId>

Categories : Clojure

How to install Chocolatey packages offline?
Right now we don't have all of them setup. You can edit the package to point the installer to the local resource and rebuild the packages as a workaround for now. You can follow some of our feed about it here: https://groups.google.com/forum/#!searchin/chocolatey/offline

Categories : Misc

CertificateError when trying to install packages on a virtualenv
When I try to connect to pypi I get the following error: pypi.python.org uses an invalid security certificate. The certificate is only valid for the following names: *.addvocate.com , addvocate.com So either pypi is using the wrong ssl certificate or somehow my connection is being routed to the wrong server. In the meantime I have resorted to downloading directly from source URLs. See http://www.pip-installer.org/en/latest/usage.html#pip-install

Categories : Python

How to install atmosphere packages without meteorite?
You can create a directory called /packages in your project & then manually install each package and its dependencies. e.g for 'meteor router' in /packages git clone https://github.com/tmeasday/meteor-router.git mv meteor-router router git clone --recursive https://github.com/tmeasday/meteor-page-js-ie-support.git mv meteor-page-js-ie-support page-js-ie-support The second is a dependency on meteor router which you can see on the package's atmosphere page. It's recursive to make sure the submodule pages-js is also git cloned in. Meteor 0.65+ As pointed out by thatjuan: Once you do this, you just need to add the main one to your project. You don't have to add the dependencies. meteor add router

Categories : Meteor

Packages installed by `pip install -r requirements.txt` are not found
Are you doing sudo pip install django-mediasync or sudo pip install -r requirements.txt? If so, it'll install it outside of the virtualenv. See How to install which programs requires "sudo" in virtualenv?. Basically because your user should own the virtualenv directory, you don't need superuser privileges to install anything via pip. Do which pip and sudo which pip and you will see they are different. The other possibility may be that your requirements.txt is not installing correctly. It may output lines like the line you mention, but apparently pip will scan all the packages in the requirements.txt before installing anything. If there is any error, it will abort the install for all packages.

Categories : Python

Make apt install packages from a specific repository
What I ended up doing is simply install all packages and then remove the ones with an old build. I.e. sudo add-apt-repository ppa:marutter/c2d4u -y sudo add-apt-repository ppa:marutter/rrutter -y sudo apt-get update sudo apt-get install r-bioc-* sudo apt-get install r-cran- And then in R: which(installed.packages()[,"Built"] < 3.0)

Categories : R

Why does `pub install` keep creating `packages` link in all the subdirs of `web`?
When Dart sees an import like: import 'package:foo/foo.dart'; It translates it to: import '<url of your entrypoint>/packages/foo/foo.dart'; So, say your app's entrypoint is in: myapp/web/app/main.dart If it has a "package:" import, like above, it will remap it to: import 'myapp/web/app/packages/foo/foo.dart'; That means that for Dart to be able to find foo.dart, there needs to be a packages directory inside app that contains foo/foo.dart. Part of pub's job is to set that up for you. This is definitely not the nicest part of working with Dart and pub. Spewing symlinks everywhere is gross, but it deals with the limitations that the language places on us. Over time, we're hoping to move away from having to create these symlinks. More details on this here.

Categories : Dart

Can't install basic packages on Debian EC2 with Aptitude/apt-get
If you install a package using dpkg that doesn't have all it's dependencies, you can fix it by running: apt-get install -f Note that it will only find packages in your current repositories. If some are still missing, try apt-get update. If that still doesn't work, you will need to find an apt repo which hosts those packages, or install the packages manually.

Categories : Amazon

What packages do I need in order to install scikit-learn on Debian
The exact list of dependencies is written in the the documentation. scikit-learn is available in recent versions of Debian, so if you want to install all the scikit-learn build dependencies at once you can just do: sudo apt-get build-dep python-sklearn Also the Neuro Debian APT repository is updated at each scikit-learn release, so that you can get debian packages for the latest versions from there.

Categories : Python

AWS Elastic Beanstalk "composer install" fails to find packages
I found out what the problem was. The composer.lock file was in .gitignore and so composer on AWS didn't get it... See here for more details: http://www.michaelgallego.fr/blog/2013/08/19/solving-the-elastic-beanstalk-composer-deployment-problems/

Categories : Amazon

How to install new packages for pyramid without getting a pkg_resources.DistributionNotFound: once a project has been created
pip and setup.py develop should not to be mixed. The latter uses easy_install which is not compatible with pip in the case of namespace packages (these are packages that are installed as subpackages of another parent, such as zope.sqlalchemy installing only the .sqlalchemy part of the full zope.* package). Namespace packages will cause problems between pip and easy_install. On the other hand, most other packages will work fine with whatever system you choose but it's better for you to be consistent. Another thing to double check is that you are actually installing the packages into your virtualenv. You should be able to open the python cli in your virtualenv and import the package. If you can't, then it's probably not installed.

Categories : Python

Can mvn install packages globally (e.g. command line tools like nutch)?
Since maven is java based and from java you can do anything, and you can write your own life-cycles and goals, the answer is: yes, it is possible. Here you can found an example: https://community.jboss.org/wiki/CreatingACustomLifecycleInMaven It is also possible execute a custom script - or whatever you want - with Exec Maven Plugin For more, see: http://mojo.codehaus.org/exec-maven-plugin/ Or on stackoverflow: I want to execute shell commands from maven's pom.xml Regards

Categories : Java

Pip doesn't install packages to activated virtualenv, ignores requirements.txt
My usual workflow is to pip freeze > someFile.txt and then install with pip install -r someFile.txt So I'm certain that this should work just fine. Unfortunately I can't really tell you anything besides make sure to check that You really are in the virtualenv that you think you are in. Make sure to run workon yourVirtualEnvName to activate it just in case that matters. Make sure to check that pip is within your virtualenv. which pip gives me /path/to/home/.virtualenvs/myVirtEnv/bin/pip Sorry I can't give you a more concrete answer. I have to do this semi-regularly and I've never had a problem with it skipping dependencies. Best of luck!

Categories : Python

Modify preseed file to automatically install packages in /pool/extra
Why don't you create a metapackage which depends on all the packages you want installed, and simply set up the preseed to install that. equivs was designed for this sort of thing, although it's not very hard to create a metapackage from scratch with the standard packaging tools, either. To instruct the installer to install packages, you can include the line d-i pkgsel/include string package1 package2 in your preseed file. If you just want to install all the *.deb files from a directory (not a full Apt repository with Packages.gz etc) then maybe d-i preseed/late_command string in-target dpkg -i /pool/extras/*.deb but I would actually prefer a full repo; basically it just takes a run of dpgk-scanpackages.

Categories : Ubuntu

During pbuilder build: run setup.py --install-layout=deb fails (no rights to write to /usr/lib/python2.7/dist-packages)
Your debian/rules install target must never install any files outside of the build tree. Instead, it should be installing to the package build directory (which, depending on how you're building the rest of the package, is probably debian/$packagename/. With a setup.py, the right switch to accomplish this is --root=debian/$packagename. If you use dh_python2, dh_auto_install, and other debhelper tools appropriately, they will take care of that for you, plus a lot of other important housekeeping such as bytecompiling for various python installations on package install.

Categories : Ubuntu

Could not import django.contrib.syndication.views.feed. View does not exist in module django.contrib.syndication.views. using django and rss
The book I have been learning Django from is quite old. I discovered from looking at the Django Documentation that the url pattern that's required can now go straight to RecentBookmarks. I first looked here and compared it with this From this comparison I discovered that what I need to do is change the url pattern to the following. (r'^feeds/(?P<url>.*)/$', RecentBookmarks()), I also found that in RSS does not work with google chrome browser unless I installed the RSS Subscription extension After making these changes it now works correctly.

Categories : Django

python packages -- overriding built-in packages and the dreaded "Module xxxx was already imported" warning
Rename myprogramxlrd to myprogramfrozen_xlrd. Then import it with try: import xlrd except ImportError: import frozen_xlrd as xlrd Alternatively, you could tell Python to silently ignore this particular UserWarning: import warnings warnings.filterwarnings("ignore", message="Module xlrd was already imported", category=UserWarning) Place this early on in the program, before scikits gets imported.

Categories : Python

How to install all the packages that are on machine A onto machine B?
This should be a start sudo dpkg --set-selections < (ssh othermachine dpkg --get-selections) Also consider puppet Ubuntu landscape

Categories : Ubuntu

New user, can not use contrib
Yes, clojure.contrib has been deprecated. The replacement for clojure.contrib.math is clojure.math.numeric-tower. You will need to add it as a dependency in your project.clj file, as per the instructions in the README. Here's an example for the particular function you mentioned: (clojure.math.numeric-tower/expt 2 3) ;=> 8 See the Where Did Clojure.Contrib Go document for all the replacement libraries.

Categories : Clojure

Orchard Contrib.Cache does not appear to do anything
It turns out that this is because the code for caching checks for a logged in user. If you are logged in, it will not cache or show you caching. I guess in normal conditions this is good, but we were deliberately considering non-user specific pages when logged in, with the user specific bits loaded by script after the page response has been sent to the client.

Categories : Misc

Web2py and Sencha
Finally I got everything working. To ensure that the js files are rendered it is necessary to paste them in the static folder of the web2py project. With Sencha Architect I have created a project in the mentioned location, so for example to call the controller from the js view an Ext.Ajax.request is made: onDataRender: function(component, eOpts) { Ext.Ajax.request ({ url: '/r/rec/getdata', method: 'GET', params: '', success: function(response) { o=Ext.decode(response.responseText); component.setSource(o); console.log(response.responseText); }, failure: function(response) { component.setSource({"Error" : "No data"}); console.log(res

Categories : Extjs

grunt-contrib-requirejs - need a little advice
Try putting in appDir and dir properties in the grunt-contrib-requirejs config. For more details on the proprties, please refer to example.build.js in https://github.com/jrburke/r.js/blob/master/build/example.build.js

Categories : Javascript

Grunt-Contrib-Compass Not Doing Math
I'm not sure that you have a full understanding of interpolation in SASS (me neither). Check out the docs here: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#interpolation_ The way I would do this is as follows (irrelevant code omitted): margin-right: 10/10 * 1em; padding-top: 5/10 * 1em; width: 25/10 * 1em; height: 19/10 * 1em; font-size: 10/16 * 1em; This compiles to margin-right: 1em; padding-top: 0.5em; width: 2.5em; height: 1.9em; font-size: 0.625em;

Categories : CSS

Regarding details usage of mvc toolkit & mvc contrib
I am the coordinator of the Mvc Controls tookit. You may find the list of all Mvc Controls toolkit tutorials here. Moreover, the codeplex web site contains a detailed documentation of all its featuree. See here. Unluckly all asp.net mvc stuffs require a greater learning effort than the corresponding webforms stuffs because they give an higher control on the architecture of your application.

Categories : Asp Net Mvc

Equivalent to clojure.contrib's show?
I refer you to the Where Did Clojure.Contrib Go document, which says about clojure.contrib.repl-utils: Migrated to clojure.repl and clojure.java.javadoc. show functionality similar to clojure.reflect/reflect. The clojure.reflect API documentation is here, and the clojuredocs.org examples are here.

Categories : Clojure

web2py DAL complex query
I don't think you can join table and subquery, but this should give the same result SELECT f_nombre, SUM(f_monto) FROM t_proyecto, t_informe, t_gasto WHERE t_gasto.f_informe==t_informe.id AND t_proyecto.id==t_informe.f_proyecto GROUP BY t_proyecto.f_nombre; DAL query: db((db.t_proyecto.id==db.t_informe.f_proyecto) & (db.t_informe.id==db.t_gasto.f_informe)).select(db.t_gasto.f_monto.sum(), db.t_proyecto.f_nombre, groupby=db.t_proyecto.f_nombre)

Categories : Python

Writing for both PySide and web2py
In my opinion, you may be over-thinking this. Basically you will have two methods of presenting data to the end-user; 1) Via a GUI 2) Via your HTML5-candy Surely the limiting factor will be whatever limitations (if any), web2py/HTML5 place on presenting the data? If I were writing such an app, which used both PySide and web2py to present the same data but using their respective methods (gui, web), I'd probably want to abstract the data to be presented in such a way that you can feed the same stream into either the GUI function(s) or the Web function(s), with each taking that in and using their respective methods to present the data. Another alternative I can think of, is embedding a web view in your GUI presentation. Perhaps you can then dispense with a lot of concern of what widgets

Categories : Python

update image in web2py
I suggest you use a javascript slider (there are tons in Codecanyon or Github). Normally you need to generate a template like this in Web2py: <div id="slider"> <img width="400px" src = "img1" /> <img width="400px" src = "img2"/> <img width="400px" src = "img2"/> ... </div> Then you use something like this at the bottom of your template: <script type="text/javascript"> $(window).load(function() { $('#slider').activate(); }); </script>

Categories : Javascript

web2py is not starting with python 3.0/3.1
web2py is not compatible with Python 3, and there are no plans to make it so, as that would break its promise to maintain backward compatibility. There have been a couple of experimental attempts at Python 3 forks, but I do not believe they have been maintained. Work has started on a web3py (not the official name) that will be Python 3 compatible, but that is a completely new framework and still in the early stages of development (there is a plan to include a compatibility layer allowing web2py applications to run under it).

Categories : Python

web2py FORM customisation
You cannot use form.custom with FORM. If you want to use it, build your form with SQLFORM.factory instead. If you need to use FORM, you can wrap DIV around elements when creating the FORM. form = FORM( DIV( LABEL('Select a search option', _for='search_option'), SELECT(__name='search_option', _onchange="jQuery('props_ajaxholder').empty(); web2py_component(jQuery(this).val(), 'props_ajaxholder');", *[OPTION(search_options[so], _value=so.lower().strip() + '.load') for so in search_options]), INPUT(_type='submit',_value='Submit!', _class="hidden"), _id="placehlder"), _id='matchingForm',formstyle='table2cols') Showing/hiding submit button can be easily done with jQuery/CSS.

Categories : Ajax

"The gem ... has been deleted. It was installed at" Error. Bundle install doesn't install gems. How to re-install gems?
This solved it for me: "gem install" and "bundle install" do not install gem dependencies after manual gem deletion. How to inform Rubygems that gems were deleted manually? (Delete the .gemspec files for the gems you have removed).

Categories : Misc

NoMigrations exception for django.contrib.x has no migrations
It can be that you have another app named as the last part of the module in this case 'comments' or you have an entry in the database table south_migrationhistory with app_name same as the module. Found answer here Google Groups

Categories : Python

Run a single spec with grunt-contrib-jasmine
Somebody has done this for you with a filter approach, though it hasn't been pulled into master yet: https://github.com/gruntjs/grunt-contrib-jasmine/pull/70

Categories : Javascript

Application won't start when using Caliburn.Micro.Contrib
I faced the same issue. I am using VS2010, Caliburn Micro ver 1.3.1.0 and Caliburn.Micro.Contrib ver 1.0.1.0 Windows7 64 bit Fault bucket 3956564328, type 5 Event Name: CLR20r3 Response: Not available Cab Id: 0 Problem signature: P1: mcsp.exe P2: 1.0.0.0 P3: 5271fea4 P4: Caliburn.Micro.Contrib P5: 1.0.1.0 P6: 4f85ce36 P7: 1e7 P8: 0 P9: System.StackOverflowException P10: Found an entry here: Oddities in runtime evaluation of static variable initializers when debugging I will do a bit of digging to see whether it will solve this issue.

Categories : C#

Using Caliburn.Micro.Contrib Generic DialogBox
I have gone through the source code again and found the source of the problem. It lies in the DialogResult type and specifically in the Execute method of the IResult which passes a context parameter to the WindowManager.ShowDialog() which is causing the problem. I have looked a bit further and found an article written by the library author about dialogs and some one in the comments had the same problem as yours and the suggested solution was to call the following line of code in the Configure() method of your bootstrapper: FrameworkExtensions.ViewLocator.EnableContextFallback(); Here is a link to the Comment and here is the article. If this doesn't work I got nothing else to say, I did all I can.

Categories : C#



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