Comments (6)
Thank you for reporting. We will have to evaluate whether we "officially support" editable installs, but it would certainly be desirable.
from aiidalab-docker-stack.
Hmm, I think I've actually been doing this. In which environment was this? The root
or the aiida
(base)?
As a sidenote: it would be nice if the apps
that ship by default are actually installed in editable mode. Makes it easier to start developing. 😁
from aiidalab-docker-stack.
As a sidenote: it would be nice if the
apps
that ship by default are actually installed in editable mode. Makes it easier to start developing. 😁
Apps are just a set of notebooks so they are installed by being placed within the apps/
directory. This means they are essentially installed "editable" by default. This concerns the app dependencies which we generally don't want to install in editable mode.
from aiidalab-docker-stack.
This means they are essentially installed "editable" by default.
You're right, my bad. The "editable" install I had to do was for the aiidalab-qe-workchain
. :)
from aiidalab-docker-stack.
I confirm this issue
(base) aiida@1d12ef3a1eb7:~/pgsu$ pip install -e .
Defaulting to user installation because normal site-packages is not writeable
Obtaining file:///home/aiida/pgsu
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: click in /opt/conda/lib/python3.7/site-packages (from pgsu==0.2.1) (7.1.2)
Requirement already satisfied: psycopg2-binary>=2.8.3 in /opt/conda/lib/python3.7/site-packages (from pgsu==0.2.1) (2.8.6)
Installing collected packages: pgsu
Running setup.py develop for pgsu
ERROR: Command errored out with exit status 1:
command: /opt/conda/bin/python3.7 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/aiida/pgsu/setup.py'"'"'; __file__='"'"'/home/aiida/pgsu/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix=
cwd: /home/aiida/pgsu/
Complete output (28 lines):
running develop
WARNING: The user site-packages directory is disabled.
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/opt/conda/lib/python3.7/site-packages/test-easy-install-3443.write-test'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/opt/conda/lib/python3.7/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://setuptools.readthedocs.io/en/latest/deprecated/easy_install.html
Please make the appropriate changes for your system and try again.
----------------------------------------
ERROR: Command errored out with exit status 1: /opt/conda/bin/python3.7 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/aiida/pgsu/setup.py'"'"'; __file__='"'"'/home/aiida/pgsu/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps --user --prefix= Check the logs for full command output.
At first, it looks like pip realizes what it should do (Defaulting to user installation because normal site-packages is not writeable
) but then it still ends up trying to write to the system directory.
It turns out that this pip
issue is known since April 2020 and still not fixed.
For packages that don't use the pyproject.toml
, you can work around it for the moment by using pip install --no-use-pep517 -e .
.
For those that do, you'll need to do a manual fix, e.g. like here.
from aiidalab-docker-stack.
This issue is no longer present in the new docker stack, since pip can install into the system-wide environment under jovyan
user.
from aiidalab-docker-stack.
Related Issues (20)
- singlesshagent section in .bashrc is duplicated upon each container startup
- bash completion does not work for git, conda and other commands
- Add support to arm64 architecture with CI test HOT 1
- Publish new version of the old docker stack with updated aiidalab and aiidalab-home HOT 3
- docker container stuck at loading the start page HOT 1
- The demo images with QE installed HOT 1
- Configure Jupyter server to kill idle python kernels HOT 7
- Can not start the container if the aiida daemon is not properly stopped HOT 5
- Re-introduce openbabel back to docker stack? HOT 8
- Missing joblib dependency HOT 1
- Update traitlets for faster app loading
- QE image install and set aiida-pseudo in advance HOT 1
- Move QE container to aiidalab-qe repo? HOT 3
- Set caching as default for the profile config HOT 2
- Add `rsync` in to the image HOT 4
- Slow build test and push HOT 14
- The DB migration message is hidden from the user
- Set reasonable timeout on self-hosted arm64 runners HOT 1
- accelerate loading by clean init scripts
- Migrate to GHA M1 runners HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiidalab-docker-stack.