Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to execute Python code
#1
Hi

How to execute the code in this link https://github.com/puetsua/pyRIP ? please

I tried but there is no output
Reply
#2
The doc for usage of pyPIP is not good,it's run from command line pyrip.py <configFile>.
Quick test,clone repo and i had to use Python 2.7 got some twisted errors using Python 3.7.
E:\div_code\read
λ git clone https://github.com/puetsua/pyRIP.git
Cloning into 'pyRIP'...
remote: Enumerating objects: 3, done.
remote: Counting objects: 100% (3/3), done.
remote: Compressing objects: 100% (3/3), done.
Receiving objects:  72% (77/106)   6 (delta 0), reused 0 (delta 0), pack-reused 103 64% (68/106)
Receiving objects: 100% (106/106), 25.32 KiB | 0 bytes/s, done.
Resolving deltas: 100% (53/53), done.
Checking connectivity... done.

# cd in
E:\div_code\read
λ cd pyRIP\

# Help
E:\div_code\read\pyRIP (master)
λ py -2.7 pyrip.py --help
pyrip.py <configFile>

# Run
E:\div_code\read\pyRIP (master)
λ py -2.7 pyrip.py pyrip.json
('s', v2, request, 1 entries)
('s', v2, response, 3 entries, 64)
('s', v2, response, 3 entries, 64)
('s', v2, response, 3 entries, 64)
('s', v2, response, 3 entries, 64)
Reply
#3
Thank you snippsat
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Can a program execute code in iPython shell and get result? deanhystad 3 1,664 Jun-17-2022, 03:45 AM
Last Post: Larz60+
  How To Set Up And Execute A Python File knight2000 4 1,826 May-31-2022, 10:02 AM
Last Post: Larz60+
  execute python script guy7200 1 1,574 Oct-25-2021, 09:55 PM
Last Post: Axel_Erfurt
  Possible to execute a python script before log off/shutdown with input commands? Kaltex 1 2,235 May-18-2021, 06:31 AM
Last Post: Skaperen
  Using python to execute app or cmd that requires admin credentials thewolf 0 2,079 Mar-05-2021, 08:15 PM
Last Post: thewolf
  Execute DBCC CHECKDB from python script susja 1 2,062 Aug-12-2020, 02:09 AM
Last Post: susja
  [split] SyntaxError when trying to execute code on Windows nehaya 2 1,963 Aug-04-2020, 11:18 AM
Last Post: nehaya
  Trying to write and execute first Python script garvind25 3 2,849 May-23-2020, 07:36 PM
Last Post: garvind25
  SyntaxError when trying to execute code on Windows Fred0n 2 2,400 Apr-25-2020, 04:30 AM
Last Post: buran
  How to execute code WHILE a function runs t4keheart 4 2,598 Jan-27-2020, 01:47 PM
Last Post: t4keheart

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020