Skip to main content

Questions tagged [package]

Package broadly refers to two things: 1) a usable unit/component of built/compiled software, or 2) a partition of the global namespace (Java).

Filter by
Sorted by
Tagged with
73 votes
5 answers
60k views

Brew error: Could not symlink, path is not writable

When I try to install a library with homebrew (brew install aLibrary), I got the following error: Could not symlink lib/pkgconfig/aFile /usr/local/lib/pkgconfig is not writable. What should I do? ...
arthur.sw's user avatar
  • 11.5k
73 votes
3 answers
22k views

Namespace vs regular package

What's the difference between a namespace Python package (no __init__.py) and a regular Python package (has an __init__.py), especially when __init__.py is empty for a regular package? I am curious ...
darkfeline's user avatar
  • 10.3k
72 votes
5 answers
81k views

Simple statistics - Java packages for calculating mean, standard deviation, etc [closed]

Could you please suggest any simple Java statistics packages? I don't necessarily need any of the advanced stuff. I was quite surprised that there does not appear to be a function to calculate the ...
Peter Perháč's user avatar
72 votes
12 answers
6k views

What do you expect from a package manager for Emacs? [closed]

Although several thousand Emacs Lisp libraries exist, GNU Emacs, until version 24.1 did not have an (internal) package manager. I guess that most users would agree that it is currently rather ...
71 votes
3 answers
139k views

Import struct from another package and file golang

I have a problem trying to import a type from another package and file. The struct that I'm trying to import is the one underneath. type PriorityQueue []*Item type Item struct { value string ...
Jakob Svenningsson's user avatar
71 votes
4 answers
83k views

Does it make sense to have two packages in the same directory?

I have a project that provides a library (exports some funcs) and also must provide a command-line interface (there must be an executable file). Example of directory structure: whatever.io/ ...
xrash's user avatar
  • 951
70 votes
22 answers
37k views

Error while creating new React app ("You are running `create-react-app` 4.0.3, which is behind the latest release (5.0.0)")

I am getting this create React app error again and again even after doing the uninstall part. npm uninstall -g create-react-app up to date, audited 1 package in 570ms found 0 vulnerabilities npx ...
Newbie learner's user avatar
70 votes
5 answers
72k views

Go, go get, go install, local packages, and version control

I am having trouble understanding the workflow for creating a go project that has local packages. Say I create a new project, using git for version control, which has a main.go file and a tools.go ...
Seth Hoenig's user avatar
  • 7,257
70 votes
1 answer
4k views

How can my Haskell program or library find its version number?

I would like my cabalised program to have a --version switch. I would like it to report the same version as is present in the .cabal file. If I have to update the version number separately in my ...
dave4420's user avatar
  • 46.9k
69 votes
2 answers
9k views

Warning about UTF-8 with roxygen2

I have a problem about UTF-8. After conducting roxygen2::roxygenise() for my package, it showed the warning message 'roxygen2 requires Encoding: UTF-8'. How can I fix it? roxygen2::roxygenise() &...
Lann's user avatar
  • 795
69 votes
3 answers
121k views

Create object from class in separate file

I have done several tutorials on Python and I know how to define classes, but I don't know how to use them. For example I create the following file (car.py): class Car(object): condition = 'New' ...
Trenera's user avatar
  • 1,495
68 votes
9 answers
64k views

How to check if Facebook is installed Android

I am modifying my app to be able to catch if a user tries to publish without having the facebook app installed (required for SSO). Here is the code I am using: try{ ApplicationInfo info = ...
easycheese's user avatar
  • 5,889
68 votes
12 answers
89k views

How to use Go with a private GitLab repo

GitLab is a free, open-source way to host private .git repositories but it does not seem to work with Go. When you create a project it generates a URL of the form: [email protected]:private-developers/...
James Fremen's user avatar
  • 2,250
67 votes
9 answers
142k views

Error in installation a R package

Please help me, I cannot install "MASS" package. > library(MASS) Error in library(MASS) : there is no package called ‘MASS’ I tried to install MASS package from local: > utils:::...
parvij's user avatar
  • 1,390
67 votes
2 answers
43k views

using __init__.py

I am having difficulty understanding the usage scenarios or design goals of python's __init__.py files in my projects. Assume that I have 'model' directory (refers as a package) which contains the ...
user avatar
67 votes
4 answers
29k views

Cannot install R-forge package using install.packages

This, question, is, asked, over, and, over, and, over, on the R-sig-finance mailing list, but I do not think it has been asked on stackoverflow. It goes like this: Where can I obtain the latest ...
GSee's user avatar
  • 49.5k
66 votes
3 answers
38k views

Install a locally developed npm package globally

I'm developing a node package that needs to be run from shell. I know I have to install the package globally, but running $> npm install -g ./my_module Does not give me the desired result, that ...
Kuba Orlik's user avatar
  • 3,460
66 votes
3 answers
34k views

Is the use of Java's default package a bad practice?

Is the use of Java's default package a bad practice?
H2ONaCl's user avatar
  • 11.1k
65 votes
7 answers
60k views

Python package name conventions

Is there a package naming convention for Python like Java's com.company.actualpackage? Most of the time I see simple, potentially colliding package names like "web". If there is no such convention, ...
deamon's user avatar
  • 91.3k
64 votes
5 answers
156k views

Python can't find my module

I have a python project (which I run within a virtualenv) and that has the following structure: Project ├───.git ├───venv └───src ├───__init__.py ├───mymodules │ ├───__init__.py │ ...
CrazyJony's user avatar
  • 985
64 votes
2 answers
32k views

what does grunt "test command" do on npm init

I'm trying to learn grunt. When I run npm init, I get a prompt in the process of creating a package.json file that asks for "test command" - I'm not sure how to utilize this, or what it's expecting. ...
mheavers's user avatar
  • 30k
63 votes
8 answers
67k views

Global NPM package installed but command not found

I have globally installed two npm packages "download" and "enigmavirtualbox" via command line: npm install -g download and npm install -g engimavirtualbox I'm trying to use them in a batch file to ...
bendulum's user avatar
  • 1,837
63 votes
5 answers
40k views

Python: import the containing package

In a module residing inside a package, i have the need to use a function defined within the __init__.py of that package. how can i import the package within the module that resides within the package, ...
user avatar
63 votes
2 answers
14k views

Multiple functions in one .Rd file

Short version: Can I emulate the documentation of Normal in package stats using roxygen? Long version: I'm working on a package and was trying make the documentation more readable by having a number ...
dardisco's user avatar
  • 5,244
62 votes
4 answers
42k views

How to register a local git package in Bower?

How can I register a local git package in bower? My current component.json is as follows { "name": "myproject", "version": "1.0.0", "dependencies": { "jquery": "1.8.0", "twitter/...
user391986's user avatar
  • 30.5k
62 votes
2 answers
29k views

inst and extdata folders in R Packaging

In the documentation, R suggests that raw data files (not Rdata nor Rda) should be placed in inst/extdata/ From the first paragraph in: http://cran.r-project.org/doc/manuals/R-exts.html#Data-in-...
Brandon Bertelsen's user avatar
62 votes
4 answers
51k views

How to list/download the recursive dependencies of a debian package?

I need to list/download all the recursive dependencies of a debian package. Suppose i need to install package a.deb and it depends on package b.deb and again package b.deb depends on package c.deb. ...
Bharat Bhansali's user avatar
62 votes
2 answers
36k views

Access main package from other package

I want to access the main package from another package, but this is impossible because the main file isn't in a directory. I already tried putting the main file in a directory, but when I try to ...
Jan Wytze's user avatar
  • 3,457
62 votes
1 answer
56k views

Python packages - import by class, not file

Say I have the following file structure: app/ app.py controllers/ __init__.py project.py plugin.py If app/controllers/project.py defines a class Project, app.py would import it like ...
Ellen Teapot's user avatar
  • 1,600
62 votes
5 answers
172k views

R not finding package even after package installation

I have always worked with the zoo package, that I have installed a long time ago. Today, I created a new R script, and ran library(zoo) and got the following error: > library(zoo) Error in ...
Mayou's user avatar
  • 8,728
62 votes
13 answers
69k views

Which Eclipse package should I download for PyDev?

Which Eclipse package should I choose for Python development with PyDev? Nothing on the Eclipse homepage tells me what to choose, and the PyDev documentation assumes I already have Eclipse installed. ...
Markus Johansson's user avatar
62 votes
9 answers
40k views

How to install python package with a different name using PIP

When installing a new python package with PIP, can I change the package name because there is another package with the same name? Or, how can I change the existing package's name?
user3562812's user avatar
  • 1,811
61 votes
6 answers
35k views

Listing R Package Dependencies Without Installing Packages

Is there a simple way to get a list of R package dependencies (all recursive dependencies) for a given package, without installing the package and it's dependencies? Something similar to a fake ...
Jonathan Lisic's user avatar
61 votes
3 answers
39k views

Organizing Python classes in modules and/or packages

I like the Java convention of having one public class per file, even if there are sometimes good reasons to put more than one public class into a single file. In my case I have alternative ...
deamon's user avatar
  • 91.3k
61 votes
6 answers
47k views

Don't include dependencies from packages.config file when creating NuGet package

I am using Nuget to create packages. I would like to create a package which does not contain any dependencies (in the .nuspec) file to any other NuGet packages. My project does have NuGet package ...
Jesse Webb's user avatar
  • 44.7k
61 votes
7 answers
52k views

How to install dependencies when using "R CMD INSTALL" to install R packages?

I'm developing my first R package (using R 2.13, Ubuntu 10.10). Let's call it foo and let's say that the code in the R/ directory begins with the line library(bar), where bar is an existing package ...
neilfws's user avatar
  • 33.5k
60 votes
5 answers
49k views

Hyphenated company name in Java packages

Say you're working on the core module of the foo project for BarBaz Incorporated. Your code fragment might look like this: package com.barbaz.foo.core; import com.barbaz.foo.util; What would the ...
corsiKa's user avatar
  • 82.2k
59 votes
4 answers
63k views

Making an executable in Cython

Been playing with cython. Normally program in Python, but used C in a previous life. I can't figure out how to make a free-standing executable. I've downloaded cython, and I can make a .pyx file (...
Paul Nelson's user avatar
  • 1,321
59 votes
4 answers
46k views

How to load latex .sty files from a subdirectory?

I use some .sty-files that are not part of texlive and want to have them in a subdirectory of the folder with my main.tex. I used the following line to load the package: \usepackage{sty/prettythesis} ...
Bruno's user avatar
  • 728
58 votes
5 answers
37k views

Install a local R package with dependencies from CRAN mirror

I have built an R package, i.e. I have the mypackage.tar.gz file. This package depends on several other packages, all downloadable and installable from any CRAN mirror. Now I want to install this ...
WoDoSc's user avatar
  • 2,608
58 votes
2 answers
3k views

Rd file name conflict when extending a S4 method of some other package

Actual question How do I avoid Rd file name conflicts when a S4 generic and its method(s) are not necessarily all defined in the same package (package containing (some of) the custom method(s) ...
Rappster's user avatar
  • 13k
57 votes
4 answers
43k views

Programmatically install NLTK corpora / models, i.e. without the GUI downloader?

My project uses the NLTK. How can I list the project's corpus & model requirements so they can be automatically installed? I don't want to click through the nltk.download() GUI, installing ...
Bluu's user avatar
  • 5,426
57 votes
4 answers
157k views

Python error: AttributeError: 'module' object has no attribute

I'm totally new to Python and I know this question was asked many times, but unfortunately it seems that my situation is a bit different... I have created a package (or so I think). The catalog tree ...
Alex's user avatar
  • 571
57 votes
5 answers
68k views

What's the difference between "package" and "module"?

I use Java where we only have packages. I know there are other programming languages that also include modules. What's the difference?
OscarRyz's user avatar
  • 198k
56 votes
5 answers
39k views

Is there any way to access private fields of a struct from another package?

I have a struct in one package that has private fields: package foo type Foo struct { x int y *Foo } And another package (for example, a white-box testing package) needs access to them: ...
Matt's user avatar
  • 21.7k
56 votes
7 answers
38k views

How to reference python package when filename contains a period

I am using django and I have a file named models.admin.py and I want to do the following idea in models.py: from "models.admin" import * however, I get a syntax error for having double quotes. But ...
Alexander Bird's user avatar
55 votes
4 answers
74k views

How to use a package constant in SQL SELECT statement?

How can I use a package variable in a simple SELECT query statement in Oracle? Something like SELECT * FROM MyTable WHERE TypeId = MyPackage.MY_TYPE Is it possible at all or only when using PL/SQL (...
blerontin's user avatar
  • 3,074
55 votes
14 answers
423k views

Java Package Does Not Exist Error

So there's a folder /usr/share/stuff in the root directory in stuff there are a bunch of java files with package org.name definitions at the top I am running javac test.java where test.java is in a ...
algorithmicCoder's user avatar
54 votes
5 answers
26k views

What's the convention for java package names without a domain association?

I can't find a Q/A on SO that answers my exact question, so I figure I'd post it and see what comes back. As far as the naming convention goes for Java packages, I understand that it's supposed to be ...
Mike's user avatar
  • 48.6k
54 votes
1 answer
16k views

What is the difference between PEAR and Composer?

PEAR is used to install a PHP software package and Composer is used for the same thing. I believe Composer handles dependencies better but is that the only difference? Can anybody explain the ...
Sohel Ahmed Mesaniya's user avatar