How to make windows executable including dependencies for python 3.6 - python-3.4

I have tried pyinstaller and py2exe (both are expected to work on python 3.4 environment), but pyinstaller is throwing error "No system module pywintypes.dll" and py2exe is throwing error (async def concat_async(async_gen): invalid syntax)
I have environment for python 3.4, 3.5 and 3.6
Help required!

If you use Anaconda, try to put pywintypes.dll or pywintypes35.dll to folders:
...\Continuum\Anaconda3\Lib\site-packages\pywin32_system32
...\Continuum\Anaconda3\Library\bin

Related

php-cpp 2.3.0 compile error with php 7.0 7.1 on centos7

I want to let my program work on centos7 with php7.0~7.4, so use phpcpp release v2.3.0(https://github.com/CopernicaMarketingSoftware/PHP-CPP/releases)
but there is a error when compile with php7.0 7.1
Does anyone know why.

pyinstaller3.4 python3.5 --key=key-string caused problems

All,
I am trying to compile and encrypt the "hello_world.py" with pyinstaller's --key=key-string and it keeps causing issue when I am trying to open the .exe file. The warning says "Failed to execute script pyiboot01_bootstrap". The problem was gone when I took the --key=key-string out but that left the deployed executable not encrypted. Is this some sort of python 3.5 pyinstaller 3.4 compatibility issues? Any insights on this would be much appreciated.
Environment:
python 3.6
pyinstaller 3.4
pycryptodome 3.6.6
Windows 10
The pycryptodome module is not compatible with PyInstaller encryption.
See: pyinstaller: problem when using --key command

Can't run meteor 1.2 in macbook 2016

When I run the meteor command I get the following error:
this happens after it tries to Downloading meteor-tool#1.1.11-faster... then crashes.
What can I do to fix this?
Thanks!
For those having similar issues I solved it by installing nvm and using node version 0.10.40 and then running meteor inside the project and it worked.
EDIT
I was having issues with 1.3 as well after doing this so I did the following to get it running:
I was able to get it running by doing https://install.meteor.com/?release=1.3.2.4 | sh and now everything seems to work even the 1.2 and 1.3, haven't tested 1.4 yet but hopefully it works.

PhpStorm with PHPUnit: PHP_CodeCoverage_Filter not found

I am trying to use PHPUnit in PhpStorm (on a Mac). Therefore I tried adding the pear path and phpunit path to the include path of PhpStorm (the ones I found through which pear on the command line) - it tells me that phpunit was not found.
I also tried to use PHPUnit with the custom autoloader generated by composer (the phpunit package is installed), I then receive another error:
Fatal error: Class 'PHP_CodeCoverage_Filter' not found
If I run phpunit on the console normally everything works:
phpunit --bootstrap vendor/autoload.php tests/*Test.php
What am I doing wrong?
The problem was that I used the default php interpreter which phpStorm suggested to me. This was version PHP 5.5 though and not the 5.6 version in my terminal.
After changing the interpreter to an up-to-date php version (5.6 or 7.0) it worked with the PHAR Option.

Qt5 QML error QtQuick QtGraphicalEffects is not installed

After successful compilation of project, I have get an executable file.
When I type ./program in result I see:
QML Error: qrc:///qml/main.qml:25:1:module "QtGraphicalEffects" is not installed
qrc:///qml/main.qml:24:1:module "QtQuick" is not installed
I'm using QtQuick 2.0, Qt5 and Ubuntu, QtQuick and QtGraphicalEffects are in ~/Qt5.0.2/5.0.2/gcc/qml/ I have install fresh Qt SDK from site project.
I have tried run this application also on Windows 7 but with the same result.
Could anyone help?
This is because Windows or whatever OS you use doesn't know the location of Qt install directory and it can't find the QML plugins sub-dir when you run app outside QtCreator.
You have to take the following directories from your SDK install and copy them beside your executable (and DLL) :
<SDK install path>/<Qt version>/<compiler name>/qml/QtQuick.2
<SDK install path>/<Qt version>/<compiler name>/qml/QtGraphicalEffects
And it should work fine.
Just make sure to have the package installed
I see you mentioned about Ubuntu, if using 14.04 , you can install it by typing this command line :
sudo apt-get install libqt5qml-graphicaleffects
And if it's not found it you can still look for package name on debian based distros :
apt-file search 'qml/QtGraphicalEffects/qmldir'
libqt5qml-graphicaleffects: /usr/lib/x86_64-linux-gnu/qt5/qml/QtGraphicalEffects/qmldir
I had the same problem with Qt5.8.0 and QtCreator 4.2.1 the import QtGraphicalEffects 1.0 was underlined because the module not found!
I added in the .pro file my path to the QtGraphicalEffects 1.0
QML_IMPORT_PATH += /opt/Qt5.8.0/5.8/gcc_64/qml/QtGraphicalEffects
After that it started working!
You can also add this to the "Build Environment" at the project page if the previous setting does not solve your problem. And restart QtCreator.

Resources