pyinstaller unable to fetch required module - pyinstaller

I am trying to make a file uploader using pcloud. While doing so when I run my python code from Pycharm, it works perfectly fine. But when I convert it into exe using pyinstaller, it gives me "fatal error - failed to execute script"
here's my code
from pcloud import PyCloud
pc = PyCloud('myemail', 'mypassword')
print('connected !')
exact command used in pyinstaller was "pyinstaller --onefile myfile.py"
read about hidden imports, but dont know how to exactly add the module pcloud in my exe.
Any help would be appreciated !

Related

'cfgrib' is not showing in xarray engine list, when the python code is packaged with pyinstaller to get exe file

I am trying to create an executable file from python code with 'Pyinstaller' package. The code runs in conda environment where the cfgrib selfcheck is good:
Found: eccodes v2.27.0.
your system is ready
However when the executable created by pyinstaller runs, the error is:
ValueError: unrecognized engine cfgrib must be one of: ['scipy','store']
I adde 'eccodes', 'python-eccodes', 'cfgrib', 'netcdf4' to the hidden imports, but no success. Does anybody have any idea to fix this issue!

Module not installed

I am writing a Dataframe to a Parquet file with Dask using the following code:
df.to_parquet('Filepath', engine='pyarrow')
Pyarrow module is required to run this code and it runs fine on my editor.
But when I package the code using Pyinstaller and try to run the .exe file I get the error
'pyarrow' not installed
How to fix this?
Note - I'm using the same python environment for Pyinstaller as well as my editor.

can't convert webbot script to an executable

I am trying to convert a python script which uses the webbot library for web automation.
As I tried to convert my running Python (3.6.5) script to an .exe file using pyinstaller I was getting an error that the path of the webbot module could not be found.
In order to overcome this problem I tried to specify the path of the module in the spec file, without success. An easier workaround suggests copying the downloaded folder webbot in the same folder where the .exe file is.
Its a very handy tool to use , i don't wanna ditch it .
In order for this to work you should not convert it as one file like this
pyinstaller --onefile file.py
but like this
pyinstaller file.py
After doing this the .exe could be launched without any problems.
An other error was coming because of trying to import webbot in my script. Probably this is a noob mistake, but one has to:
from webbot import Browser

Grav error when trying to install plugin - 'bin' is not recognized as an internal or external command, operable program or batch file

I am trying to install the grav code highlight plugin. When i run the following command in my terminal console from the project root:
bin/gpm install highlight
I get the following error:
'bin' is not recognized as an internal or external command, operable
program or batch file.
How do i install the plugin using gpm and avoid this error ?
php bin/gpm install highlight
should work (though it's not really a good solution, I haven't been able to figure out how to make it work without the 'php' added, and I've added php to my PATH, and .php to PATHTEXT following https://markladoux.wordpress.com/2012/07/06/run-php-from-command-line-with-xampp-on-windows-7/ -- you could try that, but that is not a working solution for me, I still get this same error when trying to start a new grav project using composer ('bin/..) -> bin is not recognized as an internal or external command.)

pyuic error when converting .py from .ui

i'm fairly new to PyQt but not totally new to Python.
I'm trying to develop a GUI using PyQt5 and Python 3.4. I was creating the interface with Qt and wanted to have an early draft of the Python script.
To do that i used this command :
pyuic5 -x filename.ui -o filename.py
and it worked just fine.
But, after adding more objects in my GUI, it was not possible to create the .py file. An error occurs in the cmd and the .py created lacks the def retranslateUi and the __name__ == "__main__" parts.
I would have put a printscreen of the error message but i'm not allowed yet.
The message says :
An unexpected error occured.
Check that you are using the latest version of PyQt5 and send an error
report including the following information:
your version of PyQt (5.4.1)
the UI file that caused the error
the debug output of pyuic5 (use the -d flag when calling pyuic5)
If anyone can enligthen me, that would be great!!

Resources