0x48piraj / 0x48piraj/incarcero

Missing .adoc files and docs folder plus others

Offen
#7 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Pascal
Sterne
93
Forks
39
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

# First Attempt
`pip install git+https://github.com/0x48piraj/incarcero.git#egg=incarcero`

gave the following error:
```bash
Collecting incarcero
Cloning https://github.com/0x48piraj/incarcero.git to /tmp/pip-install-v6b47cd2/incarcero_e5f12709300d4f5794c6ad86839bcb51
Running command git clone --filter=blob:none --quiet https://github.com/0x48piraj/incarcero.git /tmp/pip-install-v6b47cd2/incarcero_e5f12709300d4f5794c6ad86839bcb51
Resolved https://github.com/0x48piraj/incarcero.git to commit 1233944c1a507d481bc2afb12ddb6e366c36c3e6
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [8 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-v6b47cd2/incarcero_e5f12709300d4f5794c6ad86839bcb51/setup.py", line 37, in
with open(path.join(here, 'README.adoc'), encoding='utf-8') as f:
File "/usr/lib/python3.10/codecs.py", line 906, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-v6b47cd2/incarcero_e5f12709300d4f5794c6ad86839bcb51/README.adoc'
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
```

# Second Attempt
```bash
$ git clone https://github.com/0x48piraj/incarcero.git
$ cd incarcero
$ pip install -r requirements.txt # All ok
$ python3 setup.py install # Fails for missing .adoc files
$ touch README.adoc
$ touch TODO.adoc
$ python3 setup.py install # Error for missing folder
$ mkdir docs
$ python3 install setup.py install # Give the error below

running install
/home/antonio/.local/lib/python3.10/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
/home/antonio/.local/lib/python3.10/site-packages/setuptools/command/easy_install.py:144: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
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: '/usr/local/lib/python3.10/dist-packages/test-easy-install-891732.write-test'

The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

/usr/local/lib/python3.10/dist-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.pypa.io/en/latest/deprecated/easy_install.html

Please make the appropriate changes for your system and try again.
```

# Not happy enough
`sudo -H python3 setup.py install # and installation is a success`

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

The setup.py file references missing README.adoc and TODO.adoc files, and a missing docs folder. Start by examining setup.py line 37 and other file references. Create the missing .adoc files and docs folder, then test installation with pip install . in a virtual environment. Verify the fix by running the installation without sudo.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
build-system
Issue-Typ
Bug
Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Aktivitätsstatus
Veraltet
Klarheit
Klar beschrieben
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.