calm 20210110-1 Python KeyError: 'python-virtualenv'

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

calm 20210110-1 Python KeyError: 'python-virtualenv'

cygwin-apps mailing list
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.
Reply | Threaded
Open this post in threaded view
|

RE: calm 20210110-1 Python KeyError: 'python-virtualenv'

cygwin-apps mailing list
> 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.