Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instructions for Linux install #294

Open
raymon68 opened this issue Sep 16, 2024 · 2 comments
Open

Instructions for Linux install #294

raymon68 opened this issue Sep 16, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request

Comments

@raymon68
Copy link

Hello. I have been trying to install D-Rats onto a debian machine. When I try to run pip3 on the tarball I get:

There is no setup_version.py. Also there is no PKG-INFO file in the d_rats sub directory.

Is there a Linux install procedure described somewhere? Or is there documentation on how to create a pip3-installable tar file?

Thanks,

Ray

Processing ./D-Rats-0.4.2.tar.gz
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
The setup.py is only used in building a pip installable tarball.
The setup.py is not used for actually installing d-ratsand will not work.
Traceback (most recent call last):
File "/home/rmoral/.miniconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in
main()
File "/home/rmoral/.miniconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rmoral/.miniconda3/lib/python3.12/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-t4wmf4ag/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-t4wmf4ag/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
self.run_setup()
File "/tmp/pip-build-env-t4wmf4ag/overlay/lib/python3.12/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
File "", line 75, in
File "", line 56, in default_build
FileNotFoundError: [Errno 2] No such file or directory: 'd_rats/setup_version.py'
[end of output]

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

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

@wb8tyw
Copy link
Contributor

wb8tyw commented Sep 17, 2024

A tarball generated from github is useless for pip installs. The Readme file should explain how to create a pip installable tarball in more detail from a clone of the D-Rats repository.

I was placing PIP installable packages in D-Rats mailing list file area file download area but gave up on that as the primary users, Windows users, found that it took too many steps for them to safely install D-rats on windows. So almost no one was using them, so now all those tarballs are out of date.

So now the quick procedure is to just do a git clone of master branch of the repository.
And then for Debian use apt-get to install all the required packages that are listed in the README above.
Then create a symbolic link to make it easy to run the package.

I took the time to get the windows procedure to simply install MobaXterm, start a local terminal window wget a script, chmod it to be executable, and then run it for the Windows users to run D-Rats under MobaXterm from a git clone.
Pretty simple and less work for me

I just have not had time to do the same for the various Linux distributions other than to document the package lists for some of the Debian distributions in the Readme

Then upgrades to D-rats are usually just using "git pull" commands.

@wb8tyw wb8tyw added documentation Improvements or additions to documentation enhancement New feature or request labels Sep 17, 2024
@raymon68
Copy link
Author

raymon68 commented Sep 17, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants