Python Forum
Problem with importing an installed package
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Problem with importing an installed package
#3
I don't understand what you are saying. When I run other python scripts from a cmd shell via Windows file association they work fine. The one that imports pymsgbox does not.

Got a solution. When I ran ftype I got

D:\Utils>ftype | grep -i python
Python.ArchiveFile="C:\WINDOWS\py.exe" "%L" %*
Python.CompiledFile="C:\WINDOWS\py.exe" "%L" %*
Python.File="C:\Program Files\Python36\python.exe" "%L" %*
Python.NoConArchiveFile="C:\WINDOWS\pyw.exe" "%L" %*
Python.NoConFile="C:\WINDOWS\pyw.exe" "%L" %*

I reset Python.File to C:\Program Files\Python36\python.exe and now things work as they should. I'll be resetting the rest shortly.
Reply


Messages In This Thread
RE: Problem with importing an installed package - by Reverend_Jim - Jun-09-2019, 08:22 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  MPEG DASH Package implementation similar to M3U8 package anantha_narayanan 1 950 May-05-2025, 08:34 AM
Last Post: pintailscratchy
  problem install somewhere package akbarza 1 1,733 Dec-27-2023, 01:25 PM
Last Post: Gribouillis
  imdby package problem lunacy90 8 3,523 Sep-04-2023, 07:13 PM
Last Post: deanhystad
  when package built, requirements not installed sabuzaki 1 1,339 Apr-07-2023, 09:01 AM
Last Post: sabuzaki
  Problem with importing python-telegram library into the project gandonio 1 3,942 Nov-01-2022, 02:19 AM
Last Post: deanhystad
  Problem with importing Python file in Visual Studio Code DXav 7 10,615 Jun-15-2022, 12:54 PM
Last Post: snippsat
  Problem: Restart kernel onPydev console when trying to install a python package poppy2020 1 9,866 Nov-25-2020, 06:13 PM
Last Post: Larz60+
  pip list to show all versions of a package installed pvbadiger05b 4 3,962 May-21-2020, 06:48 PM
Last Post: jameshonest
  Package installed through Anaconda "not found" by Python zonova 0 3,253 May-08-2020, 11:50 PM
Last Post: zonova
  Importing module from a package results in import error goghvv 2 3,453 Mar-27-2020, 07:13 PM
Last Post: goghvv

Forum Jump:

User Panel Messages

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