Python Forum
How Do I Get the IDE to Find My Imports
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How Do I Get the IDE to Find My Imports
#5
Well I may have found the problem but not the solution. It seems I have python installed in two places. I installed Python 3.7 but I also found that GNURadio installed Python 2.7 down in its folder. It also has windows run the 2.7 version when I double click on a .py program. But IDLE and Visual Studio both use the 3.7 version. The files that GNURadio wants to import are in a folder near the 2.7 version. Somehow python 2.7 knows how to find them.

But when I want to use a IDE like IDLE (3.7) or Visual Studio, they can't find the files to import. I tried to use the version of IDLE that with Python 2.7 but I can't get it to run. There is a .bat to setup to run IDLE but when I run it it just runs and returns to the windows cmd prompt. I put "pause" after each statement in the .bat file but I still haven't found why IDLE (2.7) doesn't run.

I suppose if:
(1) I could get IDLE 3.7 to go to the files to import in the Python 2.7 area

Or
(2) I could get Visual Studio to do something similar,
I might get past this hurtle.

Any ideas?

BTW, GNURadio is a beautiful program for understanding digital signal processing and Software Designed Radios.
Reply


Messages In This Thread
How Do I Get the IDE to Find My Imports - by petec - Feb-17-2019, 06:19 PM
RE: How Do I Get the IDE to Find My Imports - by petec - Feb-18-2019, 08:13 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best programming practice for imports Curbie 8 1,995 Oct-16-2024, 02:20 AM
Last Post: Curbie
  Sudden Extremely Slow / Failed Python Imports bmccollum 1 1,374 Aug-20-2024, 02:09 PM
Last Post: DeaD_EyE
  Imports that work with Python 3.8 fail with 3.9 and 3.10 4slam 1 3,653 Mar-11-2022, 01:50 PM
Last Post: snippsat
  Imports in my first package cuppajoeman 1 2,586 Jun-28-2021, 09:06 AM
Last Post: snippsat
  script with imports works but pytest gives "ModuleNotFoundError"? Hpao 0 2,211 Jun-27-2021, 08:30 PM
Last Post: Hpao
  Help wanted with python imports petros21 3 3,712 Apr-07-2021, 07:16 PM
Last Post: snippsat
Question How to include Modules not found (conditional imports) in my setup.py when I want to cff 0 4,981 Mar-17-2021, 11:57 AM
Last Post: cff
  threading across imports Nickd12 2 3,158 Nov-09-2020, 01:59 AM
Last Post: Nickd12
  refreshing imports seandepagnier 4 4,000 Sep-20-2020, 11:51 PM
Last Post: seandepagnier
  Multimode imports fine as script but not after compiling into exe chesschaser 0 2,998 Aug-13-2020, 01:28 PM
Last Post: chesschaser

Forum Jump:

User Panel Messages

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