python – pyinstaller: add version information from ( and versioneer) to package

I am looking to add a version to an executable as in many other posets. Instead, I am packing up my app with pyinstaller --onedir using a specfile. Everything works well except the app is supposed to display its version number. When I install the python library with pip install ..., and run the app, the version information is present. But when packed up with pyinstaller the version shows as 0+unknown. I am using versioneer to generate version tags automatically.

When the app is installed a file is generated with the following content:

# This file was generated by '' (0.18) from
# revision-control system data, or from the parent directory name of an
# unpacked source archive. Distribution tarballs contain a pre-generated copy
# of this file.

import json

version_json = '''
 "date": "2020-09-23T08:27:42-0600",
 "dirty": false,
 "error": null,
 "full-revisionid": "59819d491111ebd8c7341bcd82cf59c04ec4cfae",
 "version": "0.0.34"

def get_versions():
    return json.loads(version_json)

This file is replacing a file in the source with the same name. Apparently, something goes wrong and the file is not created when versioneer is used. I wonder if that is fixable and how?

Node.js package that retrieves data from an API, formats it and sends it out via email to a distribution list

I’ve created a Node.js package that retrieves data from Icinga (a monitoring platform), formats it and passes it off to a class that generates some HTML and then sends it all out as an email.

The email, in its simplest form, looks something like this:

Basic image of said table

I come from a Ruby/Python background and this is the first time I’ve ever delved into Node. The code below works and does what I need it to but I have the feeling it isn’t using some of Node’s best practices. I make 2 API calls, after the first one happens, inside the callback, I make another API call and then when all the data is returned I invoke a function to send off the email. I’m pretty sure this could be using async/await and/or Promises but I’m just not sure where to start in order to refactor it.

// Get the data
const warning = 1;
const error = 2;
const icingaServer = new icingaApi(icingaConfig.url, icingaConfig.port, icingaConfig.username, icingaConfig.password);
const clients = (
        { 'Client 1': '**.**.client_1.**.**' },
        { 'Client 2': '**.**.client_2.**.**' }
const data = ();

function sendEmail() {
        from: '',
        to: appConfig.sendees,
        subject: 'Some subject',
        html: new tableHtmlGenerator(data).run()
    }).then((_res) => {
        let emailAddresses = appConfig.sendees.join(', ');
        console.log(`Email sent successfully to the following addresses: ${emailAddresses}`);
    }).catch((err) => {
        console.log(`Error: ${err.message}`);

function allDataRetrieved() {
    return data.length === clients.length;

clients.forEach((clientMap) => {
    Object.entries(clientMap).forEach(((client, hostnameWildcard)) => {
        let totalHosts;
        let totalServices;
        let errors;
        let warnings;
            "filter": "match(service_name, service.host_name)",
            "filter_vars": {
                "service_name": hostnameWildcard
        }, (err, res) => {
            if (err) return `Error: ${err}`;

            warnings = res.filter(o => o.attrs.state === warning).length;
            errors = res.filter(o => o.attrs.state === error).length;
            totalServices = res.length;

                "filter": "match(host_name,",
                "filter_vars": {
                    "host_name": hostnameWildcard
            }, (err, res) => {
                if (err) return `Error: ${err}`;

                warnings += res.filter(o => o.attrs.state === warning).length;
                errors += res.filter(o => o.attrs.state === error).length;
                totalHosts = res.length;

                    name: `${client} (${totalHosts}/${totalServices})`,
                    errors: errors,
                    warnings: warnings

                if (allDataRetrieved()) sendEmail();

I’ve omitted all the require and const definitions at the top of this file as they’re not really needed in order to understand the code in my opinion.

The main issue is that one API call happens inside the callback of another API call and this feels nasty to me. I also wait for all the data to be pushed to the data variable by doing a simple but crude if statement to check if all the data has been retrieved and pushed to the array, if it has then the email is sent.

I also feel like I need to add that I’m aware this code could be improved by dumping all this business logic into a class or splitting it out into separate files. I’m not after help in that sense, it’s more of how to handle API requests and waiting for the requests to finish and when/how/if to use Promises.

Contest – 100$ Package Design Contest

Hello Everyone.

I need a design for packaging for tights/pantyhose that my company sells. Before you start designing, you will have to download our Logo, the template and the Pictures that I’d like you to use. The download also contains two Examples. The examples give you an impression of what a final product could look like. They are not actual Examples of a design I want.

Please download the zip file here:

Here are the specifications for the design (so far… I might add some minor requests or changes later, please follow my posts in this thread)

1. File needs to be in AI format
2. The Zip File contains two examples of a final product. You will need to leave space for a see through hole like in the examples. The see though hole doesn’t have to be like in the examples, it can have any size or shape and it can be placed ANYWHERE on the front. I wouldn’t want it on the top edge, like in example02, I would prefer the bottom edge or anywhere else as stated before.
3. Please refer to the file. It has the exact proportions of what the final design needs to be like. You can add your design in a new layer above the template.
4. Please use our logo somewhere on the font side (
5. Please use one or more or ALL of the pictures provided in the Zip File (01.tif – 04.tif)
6. The Pictures can be altered, you can remove the background etc. No Censoring or further retouch of the model.
7. The Main Tagline or Logo should read “Hiro’s Lightning Pantyhose” and should be well in the focus of the design (bigger than the logo)
8. Also Add “70 DEN – GLOSSY TIGHTS” to the front side
9. For the Backside please use only the top Half, because we’ll place a sticker on the lower half.
10. The Backside should also Have the Tagline / Logo “Hiro’s Lightning Pantyhose
11. Please add a secondary tag line saying “Quality Design From Japan
12. Regarding the coloring and design I like it plain and simple, black on white or white on black is great, but if you like to do other colors or have a more colorful design I am certainly open to it.

Please post your design proposals in this thread, maybe start with the front side and see what I say before you go ahead with the backside.

The final design must be made available in AI format.

$$$ The Winner gets 100 US $ by Paypal $$$

The contest runs until Monday the 28th 10am Tokyo Time. I reserve the right to extend the contest for another week if I’m not satisfied, but so far you guys never let me down… :)

GL and Cheers!



SQL Server 2017 MLS – cant add python package

I’m new-ish to MLS and have been trying to add new python packages like  attrs  to the python but it hasn’t been working.

Our set up is SQL Server 2017 with CU14 on Win 2016.

Python version is 3.5.2

The usual command I run is:  

pip install attrs

and I run this from the C:Program FilesMicrosoft SQL ServerMSSQL14.MSSQLSERVERPYTHON_SERVICESScripts
but nothing happens…..

it says “collecting attrs” then nothing.

When I look in the So I updated a dev VM to SQL Server 2017 CU22, and it installed Python 3.7 and tried same thing – it worked.

But this doesn’t help me as we already have existing SQL Server 2017 servers with this package in it and the dude who originally set this up is gone, so any help appreciated.

All the installs are default, nothing special.

package management – 16.04 LTS Xenial looking into focal repository

Im, trying to build a container and need to install java8. all instructions are in the Dockerfile. System is 16.04.07 LTS. Error shows it’s trying to download for focal release and I just don’t get why

core@acme:~$ cat /etc/os-release 
VERSION="16.04.7 LTS (Xenial Xerus)"
PRETTY_NAME="Ubuntu 16.04.7 LTS"
core@acme:~$ docker-compose build
Building mongo...
Step 1/1 : FROM mongo:3.0.5
 ---> 960ec09b9ab6
Successfully built 960ec09b9ab6
Successfully tagged core_mongo:latest
Building voting...
Step 1/16 : FROM ubuntu
 ---> bb0eaf4eee00
Step 2/16 : RUN apt-get update
 ---> Using cache
 ---> 87abb253f7cf
Step 3/16 : RUN apt-get install -y software-properties-common
 ---> Using cache
 ---> 4b747dbd6cc8
Step 4/16 : RUN   echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections &&   add-apt-repository -y ppa:webupd8team/java &&   apt-get update &&   apt-get install -y oracle-java8-installer &&   rm -rf /var/cache/oracle-jdk8-installer
 ---> Running in 1dcc67a9c18a
Ign:1 focal InRelease
Hit:2 focal InRelease
Hit:3 focal-updates InRelease
Hit:4 focal-backports InRelease
Hit:5 focal-security InRelease
Err:6 focal Release
  404  Not Found (IP: 80)
Reading package lists...
E: The repository ' focal Release' does not have a Release file.
Service 'alpha' failed to build: The command '/bin/sh -c echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections &&   add-apt-repository -y ppa:webupd8team/java &&   apt-get update &&   apt-get install -y oracle-java8-installer &&   rm -rf /var/cache/oracle-jdk8-installer' returned a non-zero code: 100

apt – Installing broken package with –fix-missing so lagging

I just want to install zsh on my ubuntu but the zsh package get some error.

So i run

sudo apt-get install zsh --fix-missing

and then the bash fix the broken package but, when it starting download the broken package. The download speed is very-very slow.

78% [1 zsh 19,6 kB/707 kB 3%]                      17 B/s 11h 13min 51s

My internet is fine, How to resolve this?

super qualityWill Boost Your Ranking to Page 1 on Google W/ Nuclear SEO Package for $14

super qualityWill Boost Your Ranking to Page 1 on Google W/ Nuclear SEO Package

Attention: Your order will be delivered on time (1 URL & max 6 keywords per order).

Welcome # Guaranteed Results # Level X3

Nuclear SEO Package – SEOClerk

Are you looking for a real SEO service for your websites & links that you have? Do not need to pay thousands of dollars to an SEO agency. This service doesn’t waste your time, effort and money. This service provides real results. We understand that you need TOP rankings for your target keywords. Many clients reach page 1 or increasing in ranking position.

We can help you to build 250 Unique Backlinks For Your Website (100% Proven & Tested)

Premium Link Indexing, Link Crawling, Link Pushing Service INCLUDED

We don’t provide spam backlinks.

We don’t produce 2K, 3K, 5K, 10K backlinks which can be generated by using public SEO tools.


Service Privacy Policy & TOS:

1. You could use this service for your websites, your clients’ websites and other kinds of links/URLs.

2. Non-English languages and characters are surely accepted.

3. Your website must be live at least 1 week.

4. Please Note! First page is NOT a guarantee. This service guarantee is improvements in SERP.

5. Please Note! PA, DA, TF, CF are for backlinks’ domains (NOT for backlinks’ pages).

6. Whenever you aren’t sure of your target keywords, you can ask us for a free keyword research service on your order page.

7. We allow 1 URL and up to 6 keywords per order quantity for best results.

Promo: Buy 3 Get 1 Free

Get Best Results By Adding Extras Below



What Ubuntu 20.04 package gives the Perl module Locale::Language?

What Ubuntu 20.04 package gives the Perl module Locale::Language? I’ve looked on but I can’t find anything. Web search isn’t turning up anything. Not sure I’m searching right.

No package vnstat available.

I am trying to install the vnstat command from the Linux console in a CentOS server
but I am receiving this error message

[root@… | Read the rest of

Manually Super Booster Weekly Whitehat SEO Package for $49

Manually Super Booster Weekly Whitehat SEO Package

About This Gig
Are you looking for an SEO professional to optimize your website and get high rank in
search engines like Google, Yahoo and Bing?

I use white hat, ethic and result in oriental marketing techniques to bring your money website in high ranking. SEO is a long-term process it takes time, so please discuss your website with me before ordering this service so that we have a mutual understanding of your website’s SEO.

I am offering best SEO and digital marketing services On Seoclerks

High Authority backlinks from powerful domains

All self-hosted, Real sites

100% manual service

Made according to the Latest Google Algorithm

Natural mix of Do-Follow and No-Follow Links

All languages Acceptability

Details report of backlinks on order competition

Get daily update, Until 30 days

95% saw rankings increase!

100% SAFE, White-hat and manual work.

We have tested this ranking package over and over and it never fails.
If you do not get the first position on Google, then you’re losing too much $ every day. Backlinks are necessary, and the essential part of ranking your website on the first page of the search engine.

FAQs (Must Read)

1-Will you work on my new site?

All site accepted excluding Porn, Gambling and adult oriented.

2-What method you use?

We use safe google webmaster guidelines only (They keep updating ), We keep changing our links Quantity and Quality accordingly

3-How many keywords you accept?

We accepet unlimited keywords

4-Will your method work after any google update?

Our method is not effected by any update because google webmaster guideline remains same for every update only some changes are made in algorithm to detect spam.

5-How long my site will stay GOOGLE new rankings ?

Depend on how much your competitors are working on their Seo.

6-I can resale your service ?

Yes, you can for more details contact us.