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

In Windows XP 32 bits Home (Python 3.4.3) #38

Open
tellts opened this issue Aug 31, 2020 · 2 comments
Open

In Windows XP 32 bits Home (Python 3.4.3) #38

tellts opened this issue Aug 31, 2020 · 2 comments

Comments

@tellts
Copy link

tellts commented Aug 31, 2020

Hello. Saved the test case from here http://onreader.mdl.ru/PythonParallelProgrammingCookbook.2nd/content/Ch09.html
(Chapter 9. Python Debugging and Testing from "The Book of Python Parallel Programming Recipes", 2nd ed. In Russian)
along the path C:/1 in the winpdb_reborn_code_example.py file.
`import time
import os
from random import randint
from threading import Thread

class MyThreadClass (Thread):
def init(self, name, duration):
Thread.init(self)
self.name = name
self.duration = duration
def run(self):
print ("---> " + self.name +
" running, belonging to process ID "
+ str(os.getpid()) + "\n")
time.sleep(self.duration)
print ("---> " + self.name + " over\n")
def main():
start_time = time.time()

# Thread Creation
thread1 = MyThreadClass("Thread#1 ", randint(1,10))
thread2 = MyThreadClass("Thread#2 ", randint(1,10))
thread3 = MyThreadClass("Thread#3 ", randint(1,10))

# Thread Running
thread1.start()
thread2.start()
thread3.start()

# Thread joining
thread1.join()
thread2.join()
thread3.join()

# End 
print("End")

#Execution Time
print("--- %s seconds ---" % (time.time() - start_time))

if name == "main":
main()`

`

Successfully installed winpdb-reborn-2.0.0.1

C:\Documents and Settings\ia>cd C:\1

C:\1>python -m winpdb .\winpdb_reborn_code_example.py
23:59:47.844 rpdb2.py:6148 MainThread/2328 __setrecursionlimit(): rl = 1000
00:00:00.657 winpdb.py:3006 MainThread/2328 set_font(): Using font "Courier New"
for Console
00:00:00.688 winpdb.py:3006 MainThread/2328 set_font(): Using font "Courier New"
for Console
00:00:11.203 session_manager.py:1282 Thread-2/2196 _spawn_server(): Terminal ope
n string: 'start "rpdb2 - Version RPDB_1_5_0 - Debuggee Console" cmd.exe /K ""C:
\Python34\python.exe" "session_manager\..\rpdb2.py" --debugee --pwd="q2G_A2L
M" --rid=6268676 "c:\1\winpdb_reborn_code_example.py" "'
00:00:12.938 session_manager.py:1094 Thread-2/2196 __wait_for_debuggee(): Scanni
ng for debuggee...
00:00:17.016 session_manager.py:1094 Thread-2/2196 __wait_for_debuggee(): Scanni
ng for debuggee...
00:00:20.047 session_manager.py:1094 Thread-2/2196 __wait_for_debuggee(): Scanni
ng for debuggee...

`

Another console window started up with this text:
`

C:\Python34\python.exe: can't open file 'session_manager..\rpdb2.py': [Errno 2]
No such file or directory

C:\1>

`

https://s8.hostingkartinok.com/uploads/images/2020/09/93502ddefe8ff570043a997eb5f4eb66.jpg

@tellts
Copy link
Author

tellts commented Aug 31, 2020

`>pip list
Package Version


altgraph 0.17
appdirs 1.4.4
beautifulsoup4 4.9.1
certifi 2020.6.20
cffi 1.13.2
chardet 3.0.4
colorama 0.4.0
defusedxml 0.5.0
distlib 0.3.1
docopt 0.6.2
fake-useragent 0.1.11
filelock 3.0.12
future 0.18.2
grab 0.6.41
idna 2.8
importlib-metadata 1.1.3
importlib-resources 1.0.2
lxml 4.3.1
numpy 1.15.4
pathlib2 2.3.5
pefile 2019.4.18
Pillow 5.4.1
pip 19.3.1
pipreqs 0.4.10
pudb 2019.2
py2exe 0.9.2.2
pycparser 2.20
pycurl 7.43.1
Pygments 2.3.1
PyInstaller 3.5
pyreadline 2.1
pytils 0.3
pywin32 221
pywin32-ctypes 0.2.0
requests 2.21.0
scandir 1.10.0
selection 0.0.14
setuptools 43.0.0
six 1.15.0
soupsieve 1.9.6
typing 3.7.4.3
urllib3 1.24.3
urwid 2.1.1
user-agent 0.1.9
virtualenv 20.0.27
weblib 0.1.30
wheel 0.33.6
win-unicode-console 0.5
winpdb-reborn 2.0.0.1
wxPython 4.0.6
yarg 0.1.9
zipp 1.2.0
`

1 similar comment
@tellts
Copy link
Author

tellts commented Aug 31, 2020

`>pip list
Package Version


altgraph 0.17
appdirs 1.4.4
beautifulsoup4 4.9.1
certifi 2020.6.20
cffi 1.13.2
chardet 3.0.4
colorama 0.4.0
defusedxml 0.5.0
distlib 0.3.1
docopt 0.6.2
fake-useragent 0.1.11
filelock 3.0.12
future 0.18.2
grab 0.6.41
idna 2.8
importlib-metadata 1.1.3
importlib-resources 1.0.2
lxml 4.3.1
numpy 1.15.4
pathlib2 2.3.5
pefile 2019.4.18
Pillow 5.4.1
pip 19.3.1
pipreqs 0.4.10
pudb 2019.2
py2exe 0.9.2.2
pycparser 2.20
pycurl 7.43.1
Pygments 2.3.1
PyInstaller 3.5
pyreadline 2.1
pytils 0.3
pywin32 221
pywin32-ctypes 0.2.0
requests 2.21.0
scandir 1.10.0
selection 0.0.14
setuptools 43.0.0
six 1.15.0
soupsieve 1.9.6
typing 3.7.4.3
urllib3 1.24.3
urwid 2.1.1
user-agent 0.1.9
virtualenv 20.0.27
weblib 0.1.30
wheel 0.33.6
win-unicode-console 0.5
winpdb-reborn 2.0.0.1
wxPython 4.0.6
yarg 0.1.9
zipp 1.2.0
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant