Open 130s opened 1 year ago
Even though the latest is 0.1.2 defined in setup.py
, I still get 0.1.0 from testpypi
.
Still no clue.
I even deleted the project https://test.pypi.org/project/docker-vcs/, and re-uploaded by twine
with an even newer version number 0.1.3. Surprisingly, a project with the same name STILL shows in the release history that 0.1.1 and 0.1.0 (yanked), both of which were deleted, but in manage-project section those aren't listed (and only 0.1.3 is listed).
One thing I didn't log is that I uploaded a same wheel file of 0.1.0 with a hyphenated sub version number 0.1.0-1, without knowing that it will NOT break anything.
twine upload --verbose --repository testpypi docker_vcs-0.1.0-1-py3-none-any.whl
At this point I can only assume that broke something on test.pypi so this project https://test.pypi.org/manage/project/docker-vcs is unusable for me. Since I think the pkg reached a minimally releaseable status, I'll just move on to non-test pypi repo, and hopefully in the future I won't have to need https://test.pypi.org/manage/project/docker-vcs repo.
Update 9/18
A few days later, I can now successfully pip install
the latest version as intended. I also found emails from test.pypi.org came in a few hours late after my deletion operation. So maybe it just takes time.
Hm. Upgraded pip
, updated setup.py
(to remove versions from the dependencies) but still NG.
Switching to vcstool2
with pip3
.
But individually it does get installed.
# pip3 install vcstool2
Collecting vcstool2
Downloading vcstool2-0.4.3-py3-none-any.whl (38 kB)
:
Installing collected packages: PyYAML, packaging, vcstool2
Successfully installed PyYAML-6.0.1 packaging-23.1 vcstool2-0.4.3
Can't get around it...Nos stuck with sh
.
Again an individual pkg gets installed via pip
.
# pip3 install sh
Collecting sh
Obtaining dependency information for sh from https://files.pythonhosted.org/packages/53/08/9de3e477ad2fd432e78ce351341686d1bbec346976b22c7cc5f81f1ff15a/sh-2.0.6-py3-none-any.whl.metadata
Downloading sh-2.0.6-py3-none-any.whl.metadata (3.3 kB)
Downloading sh-2.0.6-py3-none-any.whl (38 kB)
Installing collected packages: sh
Successfully installed sh-2.0.6
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#
Can't get around it...Nos stuck with sh
.
Again an individual pkg gets installed via pip
.
# pip3 install sh
Collecting sh
Obtaining dependency information for sh from https://files.pythonhosted.org/packages/53/08/9de3e477ad2fd432e78ce351341686d1bbec346976b22c7cc5f81f1ff15a/sh-2.0.6-py3-none-any.whl.metadata
Downloading sh-2.0.6-py3-none-any.whl.metadata (3.3 kB)
Downloading sh-2.0.6-py3-none-any.whl (38 kB)
Installing collected packages: sh
Successfully installed sh-2.0.6
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
#
Ok, those pkgs that are failing do NOT exist on https://test.pypi.org (test site). Workaround is as in https://stackoverflow.com/a/56449789/577001, have those deps already installed.
docker
isn't installed so collision is not with the one already installed.
# pip3 uninstall docker
WARNING: Skipping docker as it is not installed.
# pip uninstall docker
WARNING: Skipping docker as it is not installed.
Packaging might have been settled. Now, importing.
# docker_vcs --help
Traceback (most recent call last):
File "/usr/local/bin/docker_vcs", line 5, in <module>
from docker_vcs_lib.docker_vcs import main
ImportError: cannot import name 'main' from 'docker_vcs_lib.docker_vcs' (/usr/local/lib/python3.9/site-packages/docker_vcs_lib/docker_vcs.py)
Just for now, (manually) setting PYTHONPATH
lets Python find our module.
export PYTHONPATH=/usr/local/lib/python3.9/site-packages
PYTHONPATH
shouldn't be the solution though.
Just for now, (manually) setting PYTHONPATH
lets Python find our module.
export PYTHONPATH=/usr/local/lib/python3.9/site-packages
PYTHONPATH
shouldn't be the solution though.
Exec runtime error. Maybe main issue: DockerException: Error while fetching server API version: ('Connection aborted.', FileNotFoundError(2, 'No such file or directory'))
.
Ignoring this error for now.
That happened inside of ipython3
so maybe missing some initializing process.
That happened inside of
ipython3
so maybe missing some initializing process.
Unlikely, it's probably due to the executable being executed inside of a Docker container (which is NOT an intended usecase).
Wait, docker_vcs
is not what I wrote, it might be auto-generated.
Managed to resolve by https://stackoverflow.com/questions/27784271/how-can-i-use-setuptools-to-generate-a-console-scripts-entry-point-which-calls
Issue aimed to address
Review items
docker-vcs-tools
is kind of unintended. Also has dash in it (almost illegal in Python). Maybe rename withdocker_vcs
ordocker_vc_lib
.setup.py
, I still get 0.1.0 fromtestpypi
(log in https://github.com/kinu-garage/docker_vcs/pull/17#issuecomment-1722258835)