Comments (14)
Not sure how this is supposed to work.
You want to just grab setup.py without having Atomic/atomic.py in the same directory?
What is
python setup.py develop
do?
python setup.py develop
usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: setup.py --help [cmd1 cmd2 ...]
or: setup.py --help-commands
or: setup.py cmd --help
error: invalid command 'develop'
from atomic.
python setup.py develop
allows one to installs the package (typically just a source folder) in a way that allows you to conveniently edit your code after its installed to the (virtual) environment and have the changes take effect immediately. (w.r.t. http://stackoverflow.com/a/19048754)
http://pythonhosted.org//setuptools/setuptools.html#develop-deploy-the-project-source-in-development-mode
from atomic.
@rtnpro Thanks. I figured out what you were talking about when I saw your pull requests.
from atomic.
@rhatdan :)
from atomic.
I am trying to setup this repo from scratch again, today, and I ran into this error:
(atomic)[rtnpro@rtnpro atomic]$ python setup.py develop
Traceback (most recent call last):
File "setup.py", line 9, in <module>
from Atomic import __version__
File "/home/rtnpro/workspace/projectatomic/atomic/Atomic/__init__.py", line 3, in <module>
from .pulp import PulpServer, PulpConfig
File "/home/rtnpro/workspace/projectatomic/atomic/Atomic/pulp.py", line 2, in <module>
import requests
ImportError: No module named requests
(atomic)[rtnpro@rtnpro atomic]$ python setup.py install
Traceback (most recent call last):
File "setup.py", line 9, in <module>
from Atomic import __version__
File "/home/rtnpro/workspace/projectatomic/atomic/Atomic/__init__.py", line 3, in <module>
from .pulp import PulpServer, PulpConfig
File "/home/rtnpro/workspace/projectatomic/atomic/Atomic/pulp.py", line 2, in <module>
import requests
ImportError: No module named requests
It seems that this bug got introduced by 1068788
I do not see a way to execute
from Atomic import __version__
without installing requests beforehand. The fix in this pull request to fetch version from a common place seemed to work fine.
Please share your thoughts.
from atomic.
Why not install the requests package on the system? E.g. $pkg install python-requests
?
from atomic.
Is there a way we can make python setup.py develop
not require pkg_resources
at runtime? If not, I think we should stop caring about python setup.py develop
. I can see it being handy for websites or whatever, but /usr/bin/atomic
should be more integrated with the OS. (Among other things it needs to run as root right now...)
from atomic.
@rtnpro is this still an issue after #180?
from atomic.
timeouttttt! pinging @rtnpro again, I'll try to catch him on irc :)
from atomic.
@cdrage @ashcrow It should still be a problem because
from Atomic import __version__
will fail. The reason being the imports in https://github.com/cgwalters/atom/blob/6f94706621dce8ccff110febd36639e91dd35f8b/Atomic/__init__.py will try to access the yet uninstalled dependencies. For example, pulp
modules will try to look for requests
.
from atomic.
Do we still have this issue, or can I close this?
from atomic.
The original error doesn't seem to be, but attempting to import from the repo still doesn't work due to a missing library not in requirements.txt
: PyYAML
.
from atomic.
from atomic.
Fixed in atomic-1.13
from atomic.
Related Issues (20)
- images retrieve HOT 2
- "error: Some base packages would be replaced" when trying to atomic host upgrade HOT 5
- atomic install crash HOT 3
- Kubelet stats HOT 1
- `atomic install/pull` does not respect registries.insecure HOT 1
- Setup docker image on Debian build
- Can't build on Debian
- "fsetxattr: Operation not supported" when running in a podman container HOT 3
- Failed to mount OverlayFS device
- atomic run with short name will throw error about installing first
- Should this `break` changed to `continue`? HOT 1
- Atomic pull tries to get signature files that don't exist off http sigstore HOT 4
- Best Method to Mount a Windows Share within a Container HOT 8
- Intermittent 'No such file or directory' when using "atomic sign ..."
- Network is unreachable when scanning HOT 1
- Cannot clone on macOS
- Facing issue with dbus dependency
- Install fails with `No such file or directory: '/var/lib/atomic/install.json.lock'` HOT 2
- Installing CentOS atomic host 7 in VM with PXE and UEFI - is that known to work? HOT 2
- Providing build automation and end-user/production container images (https://go.googlesource.com/gollvm/) HOT 3
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 atomic.