Python Forum
Getting a small Python2 prog to run in Python3
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getting a small Python2 prog to run in Python3
#2
2to3 tool is useful to convert python2 code to python3.
In this case I don't think it will help, as I don't see any problems in your code. Do you have pywin32 installed for python3? You need to install it for every interpreter that will use it (i.e. if you installed it in python2, it doesnt work in python3)You may need to make some changes in the clipboard part of the code. You can also look at pyperclip.

Don't click on the program to start it, run it from command line so that you can see actual error.
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: Getting a small Python2 prog to run in Python3 - by buran - Apr-19-2020, 09:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Sad Migrating of python2 script to python3 zuri 7 1,284 Oct-05-2023, 02:40 PM
Last Post: snippsat
  Migration of Python2 and Python3 using Modernize and Future Rakshan 5 2,747 Oct-05-2023, 08:55 AM
Last Post: zuri
  python2 python3 messed up : How to fix ? hary 15 8,460 Dec-30-2020, 08:26 PM
Last Post: hary
  output mismatching when porting a python from python2 env to python3 env prayuktibid 2 2,730 Jan-21-2020, 04:41 AM
Last Post: prayuktibid
  python3 decoding problem but python2 OK mesbah 0 1,902 Nov-30-2019, 04:42 PM
Last Post: mesbah
  Gnuradio python3 is not compatible python3 xmlrpc library How Can I Fix İt ? muratoznnnn 3 5,109 Nov-07-2019, 05:47 PM
Last Post: DeaD_EyE
  python prog davy_yg 0 2,719 Sep-25-2019, 02:23 AM
Last Post: davy_yg
  Trying to run a python2 script dagamer1991 3 2,666 Aug-12-2019, 12:33 PM
Last Post: buran
  python2.7 executables thus the system python2.7 was erroring utility.execute()? vivekm 1 1,851 May-20-2019, 11:24 AM
Last Post: vivekm
  Python2 is not supported Skaperen 2 2,298 Mar-01-2019, 07:50 PM
Last Post: stranac

Forum Jump:

User Panel Messages

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