I've got my script running fine using selenium web driver
In order to avoid the issue where users have mismatch versions of chrome and chromium extensions I use web driver to download the last versions at runtime.
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
So I don't have to include any chromium binaries in the spec file as it's downloaded at runtime (right?)
Everything is working, but when I try to build an unix executable file
with pyinstaller, I don't know what binaries should I include in the spec file, (I mean the path to selenium) and as a result it cannot find the selenium module and outputs me the error
ModuleNotFoundError: No module named 'selenium'
(only with the 'standalone' build with pyinstall, the scripts don't sent me this error)
So on Mac the full package is located here:
Library/python/x.x/lib/python/site-packages/selenium/
and I had to include it in the spec file within
the binaries with the project :
binaries=[('/Users/myusername/ProjectDir', '/Users/myusername/Library/Python/x.x/lib/python/site-packages/selenium')],
Related
I have been trying to find or perhaps compile ReJSON Module for my Windows machine. I could not find any pre-compiled version of ReJSON Module that's why I thought of compiling it myself. So, I visited their GitHub page for source proceeded with following steps
1) Downloaded and Extracted the Zip Folder from https://github.com/RedisJSON/RedisJSON
2) Installed Cygwin with necessary packages
3) located the source directory and executed Make command
I got the following error
error: unrecognized command line option ‘-mmacosx-version-min=10.6’
Which I thought there is some configuration for MacOS in MakeFile. So, I searched all words with -mmacosx-version-min=10.6 and commented those lines so it could be excluded from Make process. It worked and showed some good progress but at the end now it gives some other errors
unrecognised emulation mode: acosx_version_min
I thought that I am doing it in wrong way. May be this ReJSON Module is simply not possible for Windows but there is no documentation about its eligibility for Windows. I am nowise in module compiling. Please show me some guidance. I am in desperate need of this ReJSON Module for Windows.
I am maintaining Redis for Windows fork and when I was working on version 4.0.x I ported ReJSON module to Windows as well, mainly for testing purposes and verification of changes related to modules in Redis for Windows itself. You can find the code here:
ReJSON module for Windows
This fork of ReJSON module should be still working and you should be able to compile it in Visual Studio, perhaps with small adjustments. If you do any - please submit a PR.
Not able to find Cypress.exe file in latest Direct download older from cypress.io
Steps to Reproduce:
1) visit Cypress.io website and click on direct download link (IM using Windows OS)
2) Cypress.zip will get downloaded
3) unzip as regular process into destination folder
4) open Cypress Folder and we can see cypress.exe file which will open Cypress tool.
Actual Result: Latest version downloaded but when unzipped package, not able to find cypress.exe file. Its getting extracted as cypress.app folder and not as executable file.
Expected Result: There should be some file to launch cypress tool
I noticed that earlier today as well.
Maybe the direct download OS version checker isn't working correctly? Dunno.
You can however download a specific version via a direct url
So ie. for version 3.2.0 for windows you would use
https://download.cypress.io/desktop/3.2.0?platform=win
Installing Cypress
Hello fellow programmers!
I have written a video player using Qt. Everything works fine on my Mac, but when I use macdeployqt to deploy my application and I open the result, I am getting the following message:
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
WARNING: Phonon::createPath: Cannot connect Phonon::MediaObject ( no objectName ) to Phonon::AudioOutput ( no objectName ).
WARNING: bool Phonon::FactoryPrivate::createBackend() phonon backend plugin could not be loaded
...
And of course it doesn't play audio (in my machine or in another). Maqcdeployqt does include the other parts of Qt and the 3 party libs wo problems. Its just the damm Phonon.
I feel that i'm making a dumb mistake but i just cant find it.
The otool log of my app shows:
#executable_path/../Frameworks/phonon.framework/Versions/4/phonon (compatibility version 4.4.0, current version 4.4.0)
As the only reference of phonon.
I read in the documentation of qt the following:
"The Mac deployment tool can be found in QTDIR/bin/macdeployqt. It is designed to automate the process of creating a deployable application bundle that contains the Qt libraries as private frameworks.
The mac deployment tool also deploys the Qt plugins, according to the following rules:
-Debug versions of the plugins are not deployed.
-The designer plugins are not deployed.
-The Image format plugins are always deployed.
-SQL driver plugins are deployed if the application uses the QtSql module.
-Script plugins are deployed if the application uses the QtScript module.
-The svg icon plugin is deployed if the application uses the QtSvg module.
-The accessibility plugin is always deployed. "
Maybe i have a debug version of phonon? I don't know, i have tried to deploy the debug and the release versions and none have worked.
Also i founded a related problem in this page:
http://www.justinfx.com/tag/phonon/
So i included a folder named 'PlugIns' in my bundle with the phonon_backened folder from my system inside of it after the deploy: it played audio on my machine (but it didn't play it on another) and my app crashed at the end so that cant be the way.
I'm using c++, Qt 4.8.5, the phonon from the SDK (i didn't install any version of phonon, i just installed Qt), and Mac OS X (10.6.8)
I would love to hear any idea or suggestion.
Thanks in advance.
I didn't find the source of the error, but I bypassed it by macdeploying the phonon example from the qt examples folder on another Mac (i.e. Lion). It included the folder 'Plugins' inside the bundle with all the phonon stuff, so I include now that folder into the bundles macdeployed in my Snow Leopard manually. It is ugly but it works from now.
If anyone knows the way to really fix the issue I will be happy to hear it.
I used py2app (neither pyinstaller nor cx_freeze worked) and it created the app distribution folder almost perfectly, except it did not copy the phonon backends. Running macdeplpyqt did not help.
The location of your plugins in your app structure is MyApp.app/Contents/PlugIns so I copied over the folder from Qt install (/Developer/Applications/Qt/plugins/phonon_backend/ ) into the PlugIns folder. That still gave the same error.
Digging in further I saw that MyApp.app/Contents/Resource/qt.conf file is expecting the plugins to be in the Resource/qt_plugins folder so I made a symbolic link from from PlugIns MyApp.app/Contents/PlugIns to MyApp.app/Contents/Resource/qt_plugins and everything works now.
I am trying to install an external dependency into Python for TideSDK. The current module I am trying to install is redis-py.
To install it I tried the following steps:
Open Command Prompt in regular administrative mode
Change directory to the downloaded module of redis-py
Provide the path to the python module used by TideSDK followed by the standard compile and install from source command prompt. The command I used: "C:\Program Files (x8
6)\TideSDK Developer\modules\python\1.3.1-beta\python.exe" setup.py install
The setup looked very promising. The redis-py module with egg file is confirmed to be installed by both the installer with exited with no errors and with a visual check on the directory.
So what gives? The correct files are installed in Lib/site-packages. TideSDK gives me ImportError: No module named redis. Any suggestions?
I solved it for another module: simplejson.
I guess the workaround should work for any module of this kind.
BTW, simplejson may be used to support json, as the actual version (TideSDK 1.3.1-beta) comes with Python 2.5 which doesn't support the standard json module, it comes in Python 2.6 (or higher).
First, the path you are using is for "TideSDK Developer", that's the program to launch and build apps. It happens that "TideSDK Developer" is built using TideSDK, so the structure is the same.
C:\Program Files (x8 6)\TideSDK
Developer\modules\python\1.3.1-beta\python.exe
The path that TideSDK actually uses to launch and compile apps is inside "C:\ProgramData"
In my case, it's:
C:\ProgramData\TideSDK\modules\win32\python\1.3.1-beta\python.exe
So, this is what I did, I ran:
C:\ProgramData\TideSDK\modules\win32\python\1.3.1-beta\python.exe setup.py install
That "installs" the module, but installs it inside "site-packages". So, when I launched the app I got the same error ("no module named simplejson"), I then copied the module from inside "site-packages" to outside.
I copied from:
C:\ProgramData\TideSDK\modules\win32\python\1.3.1-beta\Lib\site-packages\simplejson
to:
C:\ProgramData\TideSDK\modules\win32\python\1.3.1-beta\Lib\simplejson
And that's it. That worked for me.
In summary: Go to ProgramData, install with python and copy the folder installed inside site-packages.
I'm trying to deploy a Qt application on Mac OSX so I'm running this command:
macdeployqt Example.app
It mostly seems to work as the executable grows in size so I assume the relevant plugins and libraries are being added. However, in the end macdeployqt outputs this error message:
ERROR: no file at "/usr/local/pgsql/lib/libpq.5.dylib"
Does anybody know what this file is? Do I need to install something to make it work?
The documentation states: SQL driver plugins are deployed if the application uses the QtSql module. The macdeployqt tool does not know which plugins your application uses, and tries to deploy all of them. Your application does not link directly with any of the plugins, so there's no way to tell what it uses merely by looking at the executable. The macdeployqt tool would need to parse the code of your application, or use potentially breakable heuristics to scan for sql driver name strings. It's a shortcoming of the macdeployqt tool.
A temporary workaround would be to move the unused plugins out of the plugins/sqldrivers folder in QtSdk.
Note: The Example.app is not an executable. It is an application bundle -- a folder with stuff in it and you can inspect its contents in the usual way: from the shell, or via Finder by right-clicking on the application bundle.