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
#11
(Feb-20-2019, 02:59 AM)petec Wrote: I have created copies of the folders anywhere I think it could be searching.

Actually this may be part of the problem, e.g. why it finds gr, but not what gr imports.

(Feb-20-2019, 02:59 AM)petec Wrote: I have a very short (20 lines or so) program that runs under 2.7 but not 3.7.

You must understand that even if you fix the imports (it finds the desired modules) it still will not work, because there are syntax differences between 2 and 3. For example these issues demonstrates changes that were made/must be made between gnuradio 3.7 and 3.8, so that 3.8 would work with python3

That said I'm not sure (i.e. I may be wrong, but I don't have time and desire to dig further) gnuradio is intended to work with different interpreter from the one that was bundled with it.

(Feb-19-2019, 06:13 PM)petec Wrote: Somehow I just think that if I could get the python 2.7 version of IDLE to run or if I can figure out why python 3.7 won't chain through the import(s) I might break my log jam

I am bit confused - you said if you click on the file it works (using python2 - I guess the one that comes bundled). But not works when open it in python3 IDLE (I guess - system wide installation). Now you say it doesn't work with python2, when open in IDLE.
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
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 buran - Feb-20-2019, 07:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Imports that work with Python 3.8 fail with 3.9 and 3.10 4slam 1 2,602 Mar-11-2022, 01:50 PM
Last Post: snippsat
  Imports in my first package cuppajoeman 1 1,966 Jun-28-2021, 09:06 AM
Last Post: snippsat
  script with imports works but pytest gives "ModuleNotFoundError"? Hpao 0 1,576 Jun-27-2021, 08:30 PM
Last Post: Hpao
  Help wanted with python imports petros21 3 2,573 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 3,834 Mar-17-2021, 11:57 AM
Last Post: cff
  threading across imports Nickd12 2 2,157 Nov-09-2020, 01:59 AM
Last Post: Nickd12
  refreshing imports seandepagnier 4 2,760 Sep-20-2020, 11:51 PM
Last Post: seandepagnier
  Multimode imports fine as script but not after compiling into exe chesschaser 0 2,421 Aug-13-2020, 01:28 PM
Last Post: chesschaser
  absolute imports between folders mikisDW 0 1,548 Aug-05-2020, 12:26 PM
Last Post: mikisDW
  Understanding the concept ( Modules , imports ) erfanakbari1 1 2,201 Nov-25-2019, 01:59 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

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