opendevreview | Merged openstack/swift feature/mpu: Embed mpu etag and bytes in etag override https://review.opendev.org/c/openstack/swift/+/917011 | 01:45 |
---|---|---|
nathang15 | hello everyone, I'm a new contributor to swift and I'm trying to install the dev environment. I was following the SAIO guide but at the very end when I run remakerings, the cli said swift-ring-builder command or any other swift command to be not found. I am using Ubuntu 24.04 LTS and when I run tox and unittests, everything passed. Thank you and sorry if this seems like a dumb question! | 01:52 |
timburke | nathang15, what happened when you ran `python setup.py develop` in the swift checkout? you can try running it again if you don't quickly see it in your terminal | 02:10 |
timburke | (sorry, i'll probably be slow in replying; i'll be working on getting kids to bed) | 02:10 |
nathang15 | This is what it is saying: The following error occurred while trying to add or remove files in the | 02:16 |
nathang15 | installation directory: | 02:16 |
nathang15 | [Errno 13] Permission denied: '/usr/local/lib/python3.12/dist-packages/test-easy-install-373131.write-test' | 02:16 |
nathang15 | The installation directory you specified (via --install-dir, --prefix, or | 02:16 |
nathang15 | the distutils default setting) was: | 02:16 |
nathang15 | /usr/local/lib/python3.12/dist-packages/ | 02:16 |
nathang15 | Perhaps your account does not have write access to this directory? If the | 02:16 |
nathang15 | installation directory is a system-owned directory, you may need to sign in | 02:16 |
nathang15 | as the administrator or "root" account. If you do not have administrative | 02:16 |
nathang15 | access to this machine, you may wish to choose a different installation | 02:16 |
nathang15 | directory, preferably one that is listed in your PYTHONPATH environment | 02:16 |
nathang15 | variable. | 02:16 |
nathang15 | For information on other options, you may wish to consult the | 02:16 |
nathang15 | documentation at: | 02:16 |
nathang15 | https://setuptools.pypa.io/en/latest/deprecated/easy_install.html | 02:17 |
nathang15 | Please make the appropriate changes for your system and try again. | 02:17 |
nathang15 | I think I was able to get past installing and setup the python-swiftclient. This is the last few lines of the message: Using /usr/lib/python3/dist-packages | 02:18 |
nathang15 | Finished processing dependencies for python-swiftclient==4.7.0.dev2 | 02:18 |
nathang15 | "cd $HOME/swift; sudo pip install --no-binary cryptography -r requirements.txt; sudo python3 setup.py develop; cd -". This is the full command on the guide for your reference. I tried running this too but got AttributeError a few times. | 02:21 |
nathang15 | I'm sorry for the confusing message formatting since it's also my first time using IRC | 02:32 |
timburke | nathang15, OK the "Permission denied" was probably me neglecting to include sudo to run as root, like `sudo python3 setup.py develop` | 02:32 |
timburke | no worries! it's readable enough. for longer error messages, you can create some snippets on https://paste.opendev.org/ | 02:33 |
timburke | i'm curious about what the AttributeErrors are, but let's start by seeing what happens when we try to install as root (so we *do* have write access) | 02:34 |
nathang15 | https://paste.opendev.org/show/b6i9Z9dBuzMJ709rV7Kd/ | 02:35 |
nathang15 | Here is the output when I run the command in swift folder | 02:35 |
timburke | huh! that's a new one to me. maybe try it as `sudo pip install -e .` instead, see if we get anything different? do you know what version of setuptools you've got installed? | 02:36 |
timburke | oh! but that's complaining about trying to install a dependency! pyeclib in particular | 02:38 |
timburke | if you wanted to try something, i've got a patch series to make binary wheels for pyeclib, which should simplify some things | 02:40 |
timburke | from the latest build of https://review.opendev.org/c/openstack/pyeclib/+/927654 | 02:40 |
patch-bot | patch 927654 - pyeclib - Publish manylinux wheels - 9 patch sets | 02:40 |
nathang15 | my setuptools version is 68.1.2 | 02:40 |
timburke | try `curl --compressed -O https://storage.bhs.cloud.ovh.net/v1/AUTH_dcaab5e32b234d56b626f72581e3644c/zuul_opendev_logs_e24/927654/9/check/pyeclib-build-wheels/e244e4b/artifacts/pyeclib-1.6.1-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl` | 02:41 |
timburke | then `sudo pip install pyeclib-1.6.1-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl` | 02:41 |
nathang15 | It is saying "This environment is externally managed sudo pip install pyeclib-1.6.1-cp35-abi3-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl". Should I run it again with the flag? | 02:43 |
nathang15 | note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages. | 02:44 |
nathang15 | hint: See PEP 668 for the detailed specification. | 02:44 |
timburke | yes please. | 02:44 |
timburke | (we really should re-work our SAIO instructions to use a venv...) | 02:45 |
nathang15 | pyeclib-1.6.1 is now installed. I suppose I can run the sudo python3 setup.py develop again right? | 02:45 |
timburke | yep! 🤞 | 02:46 |
nathang15 | It works now! I'll try running the swift commands | 02:47 |
timburke | 🎉 | 02:47 |
nathang15 | Yep swift commands work now too. Thank you! | 02:48 |
nathang15 | I have another question though. When I use devstack, it conflicts with swift for some reason. For example, if I run ./unstack.sh or ./clean.sh, it just deletes the /etc/swift folder. Is this normal behavior? | 02:48 |
nathang15 | Anyway, I'll avoid devstack for now. It's late in my region. Thank you for your help! | 02:56 |
DHE | I've seen some things like that in debian, maybe ubuntu does it as well. PIP REALLY wants people to use virtualenvs to install packages with it, trying to keep /usr/lib directories clean for the package manager only. | 03:07 |
timburke | nathang15, sorry, i don't do devstack much at all, really | 03:22 |
timburke | DHE, yeah, i've been noticing that more and more, too | 03:22 |
opendevreview | Merged openstack/swift feature/mpu: Shorten MPU upload-ids https://review.opendev.org/c/openstack/swift/+/928968 | 04:59 |
opendevreview | Merged openstack/swift feature/mpu: Embed MPU created timestamp in upload id https://review.opendev.org/c/openstack/swift/+/928459 | 05:06 |
opendevreview | Merged openstack/swift feature/mpu: Exclude aborted MPUs from session listing https://review.opendev.org/c/openstack/swift/+/928772 | 05:13 |
opendevreview | Merged openstack/swift feature/mpu: Refuse part upload to aborted or completing session https://review.opendev.org/c/openstack/swift/+/928773 | 05:13 |
opendevreview | Jianjian Huo proposed openstack/swift master: Object-expirer: continue to process next container on listing errors https://review.opendev.org/c/openstack/swift/+/930393 | 05:31 |
opendevreview | Takashi Natsume proposed openstack/swift master: Replace deprecated datetime.utcfromtimestamp() https://review.opendev.org/c/openstack/swift/+/931007 | 12:56 |
opendevreview | Alistair Coles proposed openstack/swift feature/mpu: mpu: minor middleware fixes https://review.opendev.org/c/openstack/swift/+/931011 | 13:14 |
opendevreview | Alistair Coles proposed openstack/swift feature/mpu: mpu: use ':' delimiter for MPUId parts https://review.opendev.org/c/openstack/swift/+/931021 | 14:08 |
opendevreview | Alistair Coles proposed openstack/swift feature/mpu: mpu: use ':' delimiter for MPUId parts https://review.opendev.org/c/openstack/swift/+/931021 | 14:10 |
opendevreview | Alistair Coles proposed openstack/swift feature/mpu: mpu: use ':' delimiter for MPUId parts https://review.opendev.org/c/openstack/swift/+/931021 | 14:15 |
opendevreview | Alistair Coles proposed openstack/swift feature/mpu: mpu: make MPUSession.is_aborted a property https://review.opendev.org/c/openstack/swift/+/931023 | 14:22 |
opendevreview | Shreeya Deshpande proposed openstack/swift master: Split statsd client from logger https://review.opendev.org/c/openstack/swift/+/915483 | 14:41 |
opendevreview | Chinemerem Chigbo proposed openstack/swift master: Make object-expirer respect internal_client_conf_path https://review.opendev.org/c/openstack/swift/+/930095 | 16:23 |
opendevreview | Merged openstack/swift master: Replace deprecated datetime.utcfromtimestamp() https://review.opendev.org/c/openstack/swift/+/931007 | 17:02 |
opendevreview | Chinemerem Chigbo proposed openstack/swift master: Make object-expirer respect internal_client_conf_path https://review.opendev.org/c/openstack/swift/+/930095 | 17:49 |
opendevreview | Shreeya Deshpande proposed openstack/swift master: Kill inheritance https://review.opendev.org/c/openstack/swift/+/931060 | 20:15 |
opendevreview | Shreeya Deshpande proposed openstack/swift master: Split statsd client from logger https://review.opendev.org/c/openstack/swift/+/915483 | 20:57 |
opendevreview | Tim Burke proposed openstack/swift master: utils: Add crc32c function https://review.opendev.org/c/openstack/swift/+/909800 | 23:18 |
opendevreview | Tim Burke proposed openstack/swift master: s3api: Add support for additional checksums https://review.opendev.org/c/openstack/swift/+/909801 | 23:18 |
opendevreview | Tim Burke proposed openstack/swift master: s3api: Additional checksums for MPUs https://review.opendev.org/c/openstack/swift/+/909802 | 23:18 |
opendevreview | Tim Burke proposed openstack/swift master: Add support of Sigv4-streaming https://review.opendev.org/c/openstack/swift/+/836755 | 23:18 |
Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!