public inbox for cygwin-apps@cygwin.com
 help / color / mirror / Atom feed
* calm 20210110-1 Python KeyError: 'python-virtualenv'
@ 2021-01-12 22:16 Allen Hewes
  2021-01-13  1:19 ` Allen Hewes
  0 siblings, 1 reply; 2+ messages in thread
From: Allen Hewes @ 2021-01-12 22:16 UTC (permalink / raw)
  To: cygwin-apps

Hi,

I got the calm 20210110-1 update. It didn't drag in the ztarfile dependency when setup updated it. So I installed it via pip.

I am now getting Python KeyErrors when I run mksetupini:

mksetupini --arch=x86_64 --inifile=/var/www/custom-cygwin/x86_64/setup.ini --disable-check=missing-required-package,missing-depended-package,missing-curr --okmissing=required-package --releasearea=/var/www/custom-cygwin;
Traceback (most recent call last):
  File "/usr/local/bin/mksetupini", line 33, in <module>
    sys.exit(load_entry_point('calm==20210110', 'console_scripts', 'mksetupini')())
  File "/usr/local/lib/python3.8/site-packages/calm/mksetupini.py", line 170, in main
    return do_main(args)
  File "/usr/local/lib/python3.8/site-packages/calm/mksetupini.py", line 51, in do_main
    packages = package.read_packages(args.rel_area, args.arch)
  File "/usr/local/lib/python3.8/site-packages/calm/package.py", line 117, in read_packages
    read_package_dir(packages[root], rel_area, dirpath, files)
  File "/usr/local/lib/python3.8/site-packages/calm/package.py", line 248, in read_package_dir
    result = read_one_package(packages, p, relpath, dirpath, fl[kind] + fl['all'], remove, kind) or result
  File "/usr/local/lib/python3.8/site-packages/calm/package.py", line 283, in read_one_package
    (relpath, packages[p].pkgpath))
KeyError: 'python-virtualenv'

I will revert back to the previous calm, but any ideas?

Thanks,

/allen

________________________________

Disclaimer Confidentiality Notice: This e-mail, and any attachments and/or documents linked to this email, are intended for the addressee and may contain information that is privileged, confidential, proprietary, or otherwise protected by law. Any dissemination, distribution, or copying is prohibited. This notice serves as a confidentiality marking for the purpose of any confidentiality or nondisclosure agreement. If you have received this communication in error, please contact the original sender.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* RE: calm 20210110-1 Python KeyError: 'python-virtualenv'
  2021-01-12 22:16 calm 20210110-1 Python KeyError: 'python-virtualenv' Allen Hewes
@ 2021-01-13  1:19 ` Allen Hewes
  0 siblings, 0 replies; 2+ messages in thread
From: Allen Hewes @ 2021-01-13  1:19 UTC (permalink / raw)
  To: cygwin-apps

> mksetupini --arch=x86_64 --inifile=/var/www/custom-
> cygwin/x86_64/setup.ini --disable-check=missing-required-package,missing-
> depended-package,missing-curr --okmissing=required-package --
> releasearea=/var/www/custom-cygwin;
> Traceback (most recent call last):
>   File "/usr/local/bin/mksetupini", line 33, in <module>
>     sys.exit(load_entry_point('calm==20210110', 'console_scripts',
> 'mksetupini')())
>   File "/usr/local/lib/python3.8/site-packages/calm/mksetupini.py", line 170,
> in main
>     return do_main(args)
>   File "/usr/local/lib/python3.8/site-packages/calm/mksetupini.py", line 51, in
> do_main
>     packages = package.read_packages(args.rel_area, args.arch)
>   File "/usr/local/lib/python3.8/site-packages/calm/package.py", line 117, in
> read_packages
>     read_package_dir(packages[root], rel_area, dirpath, files)
>   File "/usr/local/lib/python3.8/site-packages/calm/package.py", line 248, in
> read_package_dir
>     result = read_one_package(packages, p, relpath, dirpath, fl[kind] + fl['all'],
> remove, kind) or result
>   File "/usr/local/lib/python3.8/site-packages/calm/package.py", line 283, in
> read_one_package
>     (relpath, packages[p].pkgpath))
> KeyError: 'python-virtualenv'
>
> I will revert back to the previous calm, but any ideas?
>

I found it. I got an extra / or a directory in my cp -r command when copying the cygport packages to my local custom repo and didn't realize it.

New calm works fine.

Sorry for the noise.

/allen

________________________________

Disclaimer Confidentiality Notice: This e-mail, and any attachments and/or documents linked to this email, are intended for the addressee and may contain information that is privileged, confidential, proprietary, or otherwise protected by law. Any dissemination, distribution, or copying is prohibited. This notice serves as a confidentiality marking for the purpose of any confidentiality or nondisclosure agreement. If you have received this communication in error, please contact the original sender.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-13  1:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-12 22:16 calm 20210110-1 Python KeyError: 'python-virtualenv' Allen Hewes
2021-01-13  1:19 ` Allen Hewes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).