Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pathlib import not working
#6
(May-29-2022, 02:12 PM)chriswrcg Wrote: I'm not even sure what it is trying to import since win32com and client are both folders
You shall not name any folder with these names will,then will win32com look in wrong places.
Install pywin32 which win32com is part of and test that it work.
# Install
G:\div_code
λ pip install pywin32
Collecting pywin32
  Downloading pywin32-304-cp310-cp310-win_amd64.whl (12.1 MB)
     ---------------------------------------- 12.1/12.1 MB 4.9 MB/s eta 0:00:00
Installing collected packages: pywin32
Successfully installed pywin32-304

# Test
G:\div_code
λ python
Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import win32com.client
>>>
>>> exit()
Reply


Messages In This Thread
Pathlib import not working - by chriswrcg - May-29-2022, 01:04 PM
RE: Pathlib import not working - by Gribouillis - May-29-2022, 01:08 PM
RE: Pathlib import not working - by chriswrcg - May-29-2022, 01:32 PM
RE: Pathlib import not working - by chriswrcg - May-29-2022, 02:12 PM
RE: Pathlib import not working - by Gribouillis - May-29-2022, 04:24 PM
RE: Pathlib import not working - by snippsat - May-29-2022, 04:44 PM
RE: Pathlib import not working - by chriswrcg - May-29-2022, 05:25 PM
RE: Pathlib import not working - by snippsat - May-29-2022, 06:01 PM
RE: Pathlib import not working - by chriswrcg - May-29-2022, 06:07 PM
RE: Pathlib import not working - by snippsat - May-29-2022, 07:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  deleting an empty Dir, using pathlib.Path tester_V 9 6,248 Jul-01-2021, 01:53 PM
Last Post: Gribouillis
  Trying to pathlib instead of os.path tester_V 4 2,673 Jun-22-2021, 04:15 AM
Last Post: tester_V
  pathlib destpath.exists() true even file does not exist NaN 9 5,031 Dec-01-2020, 12:43 PM
Last Post: NaN
  Question about if with () or without () / pathlib Tecuma 3 2,381 Apr-02-2020, 10:02 AM
Last Post: Tecuma
  How to keep a loop containing a web import working in python executable? coder1384 3 3,035 Feb-22-2020, 06:49 PM
Last Post: snippsat
  import logging not working segerhult 3 13,485 Feb-07-2019, 05:31 PM
Last Post: buran
  CSV import is not working gehrenfeld 7 4,419 Dec-12-2018, 12:26 PM
Last Post: gehrenfeld
  pathlib hanging bluefrog 2 3,273 Sep-25-2018, 12:59 PM
Last Post: volcano63
  pathlib: resolving a path that does not exist Skaperen 6 5,794 Sep-08-2018, 12:25 AM
Last Post: Skaperen
  makin hardlinks with pathlib.Path Skaperen 2 5,400 Sep-06-2018, 07:53 AM
Last Post: scidam

Forum Jump:

User Panel Messages

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