Closed johns1c closed 1 year ago
Oh, that's interesting. Wonder if it's a permissions problem or something? Note that I'm not a Python guy any more (it's been years), so hopefully @LeMoussel has some good suggestions. :smile:
It seems that you use Virtualenv.
pip
when used with virtualenv
will generally install packages in the path <virtualenv_name>/lib/<python_ver>/site-packages
.
What is result of pip show pydbhub
?
Result of pip show pydbhub
(having recreated the environment)
Name: pydbhub
Version: 0.0.3
Summary: A Python library for accessing and using SQLite databases on DBHub.io
Home-page: https://github.com/LeMoussel/pydbhub
Author: LeMoussel
Author-email: ***@***.***
License: MIT
Location: c:\users\chris johnson\python\z99\lib\site-packages
Requires: rich, requests, python-dateutil
Required-by:
p.s. it also happens without using a virtual environment
C:\Users\Chris Johnson>pip show pydbhub
Name: pydbhub
Version: 0.0.3
Summary: A Python library for accessing and using SQLite databases on DBHub.io
Home-page: https://github.com/LeMoussel/pydbhub
Author: LeMoussel
Author-email: ***@***.***
License: MIT
Location: c:\python38\lib\site-packages
Requires: python-dateutil, requests, rich
Required-by:
C:\Users\Chris Johnson>dir c:\Python38\lib\site-packages\pydb* Volume in drive C is OS Volume Serial Number is 1EFF-F90D
Directory of c:\Python38\lib\site-packages
18/11/2022 19:46
could try it with Python 3.10 or 3.11 if you want
Chris
Sent from Mail for Windows
From: LeMoussel Sent: 20 November 2022 08:15 To: LeMoussel/pydbhub Cc: C Johnson; Author Subject: Re: [LeMoussel/pydbhub] Install Fails (Python 3.8, Windows 11)(Issue #4)
It seems that you use Virtualenv.
pip when used with virtualenv will generally install packages in the path
Could you try it with Python 3.9?
I have just downloaded the package from PyPi and opened it with 7zip.
Looking at other packages it seems that the wheel should contain two top level directories.
pydbhub pydbhub-0.0.3.dist_info
the first should contain the python code and is missing which explains why it never appears in my site-packages
Sent from Mail for Windows
From: LeMoussel Sent: 21 November 2022 15:59 To: LeMoussel/pydbhub Cc: C Johnson; Author Subject: Re: [LeMoussel/pydbhub] Install Fails (Python 3.8, Windows 11)(Issue #4)
Could you try it with Python 3.9? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
I could reproduce. When I do pip install git+https://github.com/LeMoussel/pydbhub.git
, I get
......
Installing collected packages: pydbhub
DEPRECATION: pydbhub is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change.
A possible replacement is to enable the '--use-pep517' option.
Discussion can be found at https://github.com/pypa/pip/issues/8559
Running setup.py install for pydbhub ... done
Successfully installed pydbhub-0.0.3
Pip just got a massive update. I believe that this doesn't build the wheel. Hopefully we can come up with a solution soon.
Seems to be OK with pyproject.toml
file. Updated in Version 0.0.4.
dir .\lib\site-packages\pydb*
24/11/2022 16:28 <DIR> pydbhub
24/11/2022 16:28 <DIR> pydbhub-0.0.4.dist-info
Many thanks for fixing it C J
------ Original Message ------ From: "LeMoussel" @.> To: "LeMoussel/pydbhub" @.> Cc: "C Johnson" @.>; "Author" @.> Sent: Wednesday, 2022 Nov 23 At 15:36 Subject: Re: [LeMoussel/pydbhub] Install Fails (Python 3.8, Windows 11) (Issue #4)
Seems to be OK with pyproject.toml file. Updated in Version 0.0.4. dir .\lib\site-packages\pydb*24/11/2022 16:28
@LeMoussel This issue seems like it can be closed? :smile:
Windows install fails (with no error)
on Windows 11 with Python 3.8 at a Dos command prompt I ran
the log suggested that it installed the required packages but it did not install pydbhub itself
there were no errors, at the end of the install
lib\site-packages\pydbhub-0.0.3.dist-info was created lib\site-packages\pydbhub was not created (but if I manually create the directory and copy the three py files from github it works)
The install log
after the install libraries such as rich are installed correctly but pydbhub is missing although pip lists it