开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Python 3 D-Rats on Windows (Was: [d-rats] D-Rats on RF has met its demise here.)


 

On 2/19/2023 10:31 AM, Scott Allison (KR3L) wrote:
Don,
I had a similar issue with the python not running. I found it was not
installed on my computer. These are the steps I took to install.
For Windows 10 you need to first verify if you have Python installed on
your system.
Step 1: Open your command prompt
Step 2: Type the following command [cd /windows/system32]
Step 3: Check the version of python by typing the following command.
[python --version]
If installed you will receive the following message:
*Python 3.10.8*
If not installed you will receive this message:
*Python was not found; run without arguments to install from the Microsoft
Store, or disable this shortcut from Settings > Manage App Execution
Aliases.*
To install type [python] at the command prompt. It will open a window to
Microsoft Apps Store. Click the install button for Python to be installed.
DRATS requires Beautiful Spon 4 to be running. Next you will need to
install with the following commands.
Step 4: Install the beautifulsoup using pip
After checking the version of python now you can install beautifusoup for
different python versions.
- For python 3.xx use [pip3 install beautifulsoup4]
- For python 2.xx use [pip install beautifulsoup4]
Just wanted to confirm, you installed Python from the Microsoft Store on Windows 10, and you were able to get D-Rats 0.3.10b6.dev287 to install and run?

Did you use a pip install to install D-Rats 0.3.10b6.dev287? It should have used pip to install all of the dependencies.

I have also just confirmed that beautifulsoup is not installed on either my Windows 7 system or my Anti-X Linux system. D-Rats 0.3.10b6.dev287 does not depend on it.

When I tried that on Windows 7, the pip modules for GTK+ would not install. Looked up that multiple people on multiple version of Windows, including Windows 10 were complaining about the same problem. Only working solution posted was to use Msys2 mingw64 instead.


A note about the versioning for python3 D-Rats:

The 0.3.10b6 is the last commit for python2 based D-Rats.
It is very unlikely that there will be any more commits to the python2 branch of D-Rats.

There have been 287 commits made to D-Rats since that time to make it run on Python3, and this includes fixes for many bugs that were found in the older python 2 version.

Once we can get some feedback that D-Rats 0.3.10b6.dev287 is a working version, we can set a release of 0.4.0 for the first actual Python 3 D-Rats release.

But since I have seen almost no feedback about D-Rats 0.1.10b6.dev287, except that the install Microsoft Windows is too Convoluted, there does not seem to be any point in making a 0.4.0 release or even working on fixing the known bugs that in D-Rats.

73,
-John
wb8tyw


 

John,

I have found?a problem, my doing.? D-Rats is installed in a One Drive\Documents\D-Rats-0.3.9_WindowsXP\D-Rats-0.3.9 folder.? In that folder are files for python 2.7 as well as a zip file with beautifulsoup.? I did install python 3 as well as beautifulsoup4 in my computer but not in that above folder.? The D-Rats debug log warns me about beautifulsoup.? Where should everything by installed?? Same directory?

Don

On Sun, Feb 19, 2023 at 3:27 PM John E. Malmberg <wb8tyw@...> wrote:
On 2/19/2023 10:31 AM, Scott Allison (KR3L) wrote:
> Don,
>
> I had a similar issue with the python not running.? I found it was not
> installed on my computer.? These are the steps I took to install.
>
> For Windows 10 you need to first verify if you have Python installed on
> your system.
>
> Step 1: Open your command prompt
>
> Step 2: Type the following command [cd /windows/system32]
>
> Step 3: Check the version of python by typing the following command.
> [python? --version]
>
> If installed you will receive the following message:
>
> *Python 3.10.8*
>
> If not installed you will receive this message:
>
> *Python was not found; run without arguments to install from the Microsoft
> Store, or disable this shortcut from Settings > Manage App Execution
> Aliases.*
>
> To install type [python] at the command prompt.? It will open a window to
> Microsoft Apps Store.? Click the install button for Python to be installed.
>
> DRATS requires Beautiful Spon 4 to be running.? Next you will need to
> install with the following commands.
>
> Step 4: Install the beautifulsoup using pip
>
> After checking the version of python now you can install beautifusoup for
> different python versions.
>
>
>? ? ?- For python 3.xx use [pip3 install beautifulsoup4]
>? ? ?- For python 2.xx use [pip install beautifulsoup4]

Just wanted to confirm, you installed Python from the Microsoft Store on
Windows 10, and you were able to get D-Rats 0.3.10b6.dev287 to install
and run?

Did you use a pip install to install D-Rats 0.3.10b6.dev287?? It should
have used pip to install all of the dependencies.

I have also just confirmed that beautifulsoup is not installed on either
my Windows 7 system or my Anti-X Linux system.? D-Rats 0.3.10b6.dev287
does not depend on it.

When I tried that on Windows 7, the pip modules for GTK+ would not
install.? Looked up that multiple people on multiple version of Windows,
including Windows 10 were complaining about the same problem.? Only
working solution posted was to use Msys2 mingw64 instead.


A note about the versioning for python3 D-Rats:

The 0.3.10b6 is the last commit for python2 based D-Rats.
It is very unlikely that there will be any more commits to the python2
branch of D-Rats.

There have been 287 commits made to D-Rats since that time to make it
run on Python3, and this includes fixes for many bugs that were found in
the older python 2 version.

Once we can get some feedback that D-Rats 0.3.10b6.dev287 is a working
version, we can set a release of 0.4.0 for the first actual Python 3
D-Rats release.

But since I have seen almost no feedback about D-Rats 0.1.10b6.dev287,
except that the install Microsoft Windows is too Convoluted, there does
not seem to be any point in making a 0.4.0 release or even working on
fixing the known bugs that in D-Rats.

73,
-John
wb8tyw









--
73 de N4VIP, Don


 

On 2/20/2023 1:46 PM, Donald Hinsman wrote:
John,
I have found a problem, my doing. D-Rats is installed in a One
Drive\Documents\D-Rats-0.3.9_WindowsXP\D-Rats-0.3.9 folder.
It appears that you are not running D-Rats 0.3.10b6.dev287.

You appear to be running the older python2 based d-rats, which will not work with python3 very well.

The way it should work is below, but I am warning you now, I have not gotten it to work.

Download the current D-Rats /g/d-rats/files/D-Rats/D-RATS%20pre-release/D-Rats-0.3.10b6.dev287.tar.gz

1. Install Python from the Microsoft store.

2. Go into a Windows command window that is set to your Windows home directory.

3. create a virtual environment, you may need to give a path for the installed python3

python -m venv ~/drats_venv --system-site-packages

4. Activate the virtual environment, not sure how to do that with the Microsoft Store Python3 as they do not have a source command. You should be able to find that on the wild wild web.

5. The pip command may need a path as with the Microsoft Store Python to do the install

pip install %USERPROFILE\downloads\D-Rats-0.3.10b6.dev287.tar.gz

At this point on Microsoft Windows systems the install fails as it tries to build gtk3 on your system if it is not present. This will require additional packages like Visual Studio to be installed, and even if you install Visual Studio Code, the compile of GTK 3 will fail because it is not compatible with Visual Studio Code.

And that is where everyone says using Msys2 is the only way to get things working.

73,
-John