Twine upload to jetbrains space packages repo - AttributeError: 'SDist' object has no attribute 'dynamic' - jetbrains-ide

I have a compressed package (.tar.gz file) I'm looking to upload to the Packages repo provided by jetbrains.space in their project. However, when I try to twine upload the file with the correct keyring, I get this attribute error:
AttributeError: 'SDist' object has no attribute 'dynamic'
I don't really know what this error means.
Thanks!

Related

"Package init file not found (or not a regular file)" - error when building sdist for namespace package

I have a namespace package with folder structure as:
CompanyName\DepartmentName\SubDepartmentName\PkgName
Python 3.3 onwards supports namespace packages so I have not place the __init__.py files in the following folders:
CompanyName
DepartmentName
SubDepartmentName
In the setup.py I have place the following piece of code setuptools.find_namespace_packages() instead of setuptools.find_packages().
When I try to build the sdist, using the following commands:
python -m pip install --upgrade pip
python -m pip install --upgrade setuptools wheel
python setup.py sdist
I get the following error:
package init file 'CompanyName\__init__.py' not found (or not a regular file)
package init file 'CompanyName\DepartmentName\__init__.py' not found (or not a regular file)
package init file 'CompanyName\DepartmentName\SubDepartmentName\__init__.py' not found (or not a regular file)
I have the task setup as part of azure devops pipeline's command line task and have set 'Fail on standard error' to true. The pipeline fails due to the above error.
Though Package init file not found (or not a regular file) is more like a warning than an error locally, it will cause the build pipeline to fail if you set Fail on standard error to true when using VSTS.
Locally:
VSTS with Fail on standard error to default false:
VSTS with Fail on standard error to true:
1.For this, you can choose to turn-off the option(Fail on standard error) cause the python namespace package can be generated successfully though that message occurs. So in this situation, I think you can suppress that message.
2.Also, another direction is to resolve the message when generating the package. Since the cause of the message has something to do with your definitions in your setup.py file, you should use setuptools.find_namespace_packages() like this document suggests.
Because mynamespace doesn’t contain an init.py, setuptools.find_packages() won’t find the sub-package. You must use setuptools.find_namespace_packages() instead or explicitly list all packages in your setup.py.
In addition: It's not that recommended to remove all __init__.py files in packages, check this detailed description from AndreasLukas: If you want to run a particular initialization script when the package or any of its modules or sub-packages are imported, you still require an init.py file.

CFFI compiled libpango with dependencies? (thai/fribidi/datrie)

I'm trying to setup a precompiled package for aws lambda, which must contain all the required libraries inside it.
My dependencies are : pango and cairo
So, what I did was go to https://fedora.pkgs.org and download the 64 versions of those, but then when I first executed my code (WeasyPrint/cffi) it gave me the following :
OSError: cannot load library 'pango-1.0': libthai.so.1: cannot open
shared object file: No such file or directory. Additionally,
ctypes.util.find_library() did not manage to locate a library called
'pango-1.0'
So I just went the the same website mentioned above, downloaded libthai, and then it gave the same error for libfridi, and then for libdatrie.
I'm just afraid this will never stop, is there any compiled pango with all these dependencies?
Worth nothing that I have absolute no clue what I'm doing, just sorta trying to get this to work.

NodeJS script on Docker: /lib64/libz.so.1: version `ZLIB_1.2.9' not found

I use sharp library for my image processing in the node js script which in turn is running my test cases using jest-image-snapshot.
I have got this error
/lib64/libz.so.1: version `ZLIB_1.2.9' not found
Found similar issue on NodeJS app on OpenShift: /lib64/libz.so.1: version `ZLIB_1.2.9' not found
and tried preloading the dependency.
But then, I have got error on preloading as well
ERROR: ld.so: object '/opt/app-root/src/node_modules/sharp/vendor/lib/libz.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored.
Please help to resolve this..
I have been trying this in my Windows OS
NOTE: The same script works fine in a mac OS

Opencart vqmod error Cannot redeclare modification()

I have opencart Version 2.0.3.1 and installed vqmod-2.5.1-opencart.
I was installing a extension by extension installer by upload the zip file of extension.
I got the error:
"Fatal error: Cannot redeclare modification() (previously declared in
/home/username/public_html/mydomain.com/vqmod/vqcache/vq2-system_startup.php:49)
in /home/username/public_html/mydomain.com/system/startup.php on line
65"
And I couldn't finish my installer. Anyone had this problem and fixed it?
It is happening because your new module is trying to modify a file which is already modified by some other module.
In other words, this new module of your's is conflicting with some existing module n your store. Contact new module's developer to help you install this module. He will make changes accordingly.

unable to resolve external module typescript

I'm trying to build a project, but I keep getting compiler errors which say
Unable to resolve external module and Module cannot be aliased to a non-module type.
I have header file which contains all the typing reference path, but even when I try to reference the path in the same file, it still doesn't resolve the problem.
I ran into this error when I shouldn't have due to a bug with TypeScript 1.0.0, but was able to resolve it by upgrading to 1.0.1. Try doing that. If you still get the error, it's probably a bug in your code.

Resources