Errors with pyinstaller version 5.5 and higher - pyinstaller

I am using Python 3.10. From Pyinstaller 5.5 I get an error message when integrating the exe icon. Here is the error text:
21794 INFO: Copying icon to EXE Traceback (most recent call last): File "C:\PythonDevelopment\Python\lib\runpy.py", line 196, in _run_module_as_main . . . File "C:\PythonDevelopment\Python\lib\site-packages\PyInstaller\building\icon.py", line 34, in normalize_icon_type raise FileNotFoundError(f"Icon input file {icon_path} not found") FileNotFoundError: Icon input file C:\PythonDevelopment\Projects\blz_db\setup\ NONE not found
When I install Pyinstaller v 5.4 again everything works fine
Karsten

Related

Jupyter notebook ValueError: Unable to configure formatter 'console'

I installed Django in a virtual environment. However, the nb_conda gets an error in another virtual env.
I tried to reinstall the nb_conda, and the error message output is:
Enabling: nb_conda
- Writing config: /home/run/.miniconda3/envs/d2l/etc/jupyter
- Validating...
nb_conda 2.2.1 OK
Exception ignored in: <function Application.__del__ at 0x7fa35ad9c3a0>
Traceback (most recent call last):
File "/home/run/.local/lib/python3.8/site-packages/traitlets/config/application.py", line 955, in __del__
File "/home/run/.local/lib/python3.8/site-packages/traitlets/config/application.py", line 945, in close_handlers
File "/home/run/.local/lib/python3.8/site-packages/traitlets/traitlets.py", line 683, in __get__
File "/home/run/.local/lib/python3.8/site-packages/traitlets/traitlets.py", line 657, in get
File "/home/run/.local/lib/python3.8/site-packages/traitlets/traitlets.py", line 1428, in _notify_observers
File "/home/run/.local/lib/python3.8/site-packages/traitlets/config/application.py", line 273, in _observe_logging_default
File "/home/run/.local/lib/python3.8/site-packages/traitlets/config/application.py", line 278, in _configure_logging
File "/home/run/.miniconda3/envs/d2l/lib/python3.8/logging/config.py", line 808, in dictConfig
File "/home/run/.miniconda3/envs/d2l/lib/python3.8/logging/config.py", line 545, in configure
ValueError: Unable to configure formatter 'console'
Apparently this is a traitlets defect:
https://github.com/ipython/traitlets/issues/722
That has been solved using patch 727
https://github.com/ipython/traitlets/pull/727
So updating traitlets may solved the issue
It did for I when trying to enbale jupytext:
jupyter serverextension enable jupytext
was showing the same error, doing
mamba/conda update traitlets solved the issue by updating traitlets from 5.2 to 5.3

Pyinstaller No such file or directory:

I recently compiled a python 3 file using pyinstaller. When I tried to run
./main
it said the following message:
Fatal Python error: (pygame parachute) Segmentation Fault
Traceback (most recent call last):
File "pygame/pkgdata.py", line 67, in getResource
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/_MEIkMQ7na/pygame/freesansbold.ttf'
Aborted (core dumped)
I do use the pygame module.
Try this:
pyinstaller -F --add-data="<PATH_OF_FILE_IN_YOUR_ENV>/pygame/freesansbold.ttf;/pygame/freesansbold.ttf" main.py
Basically you need to find freesansbold.ttf from your virtual environment and explicitly add it inside the bundle.

RobotFramework - Importing test library "AutoItLibrary" failed: Initializing test library 'AutoItLibrary' with no arguments failed

Can anyone support me this case?
I install Robotframework to a machine (win10 64b). The versions in my machine:
Python3.7.2 (32b)
pywin32==224 (32b)
robotframework==3.1.1
robotframework-autoitlibrary==1.2.3
robotframework-ride==1.7.3.1
robotframework-seleniumlibrary==3.3.1
wxPython==4.0.4 (32b)
Import AutoItLibary, it is always red, Ride error log shows:
Traceback (most recent call last):
Initializing test library 'AutoItLibrary' with no arguments failed: RobotNotRunningError: Cannot access execution context
Traceback (most recent call last):
File "c:\python37-32\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 167, in _get_instance
return libcode(*self.positional_args, **dict(self.named_args))
File "c:\python37-32\lib\site-packages\AutoItLibrary\__init__.py", line 88, in __init__
self._OutputDir = self._get_log_dir()
File "c:\python37-32\lib\site-packages\AutoItLibrary\__init__.py", line 182, in _get_log_dir
variables = BuiltIn().get_variables()
File "c:\python37-32\lib\site-packages\robot\libraries\BuiltIn.py", line 1293, in get_variables
return self._variables.as_dict(decoration=is_falsy(no_decoration))
File "c:\python37-32\lib\site-packages\robot\libraries\BuiltIn.py", line 75, in _variables
return self._namespace.variables
File "c:\python37-32\lib\site-packages\robot\libraries\BuiltIn.py", line 71, in _namespace
return self._get_context().namespace
File "c:\python37-32\lib\site-packages\robot\libraries\BuiltIn.py", line 66, in _get_context
raise RobotNotRunningError('Cannot access execution context')
File "c:\python37-32\lib\site-packages\robotide\spec\librarymanager.py", line 87, in _fetch_keywords
return get_import_result(path, library_args)
File "c:\python37-32\lib\site-packages\robotide\spec\libraryfetcher.py", line 24, in get_import_result
lib = robotapi.TestLibrary(path, args)
File "c:\python37-32\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 54, in TestLibrary
lib.create_handlers()
File "c:\python37-32\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 100, in create_handlers
self._create_handlers(self.get_instance())
File "c:\python37-32\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 159, in get_instance
self._libinst = self._get_instance(self._libcode)
File "c:\python37-32\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 169, in _get_instance
self._raise_creating_instance_failed()
File "c:\python37-32\lib\site-packages\robotide\lib\robot\running\testlibraries.py", line 314, in _raise_creating_instance_failed
% (self.name, args_text, msg, details))
20190326 17:31:22.876 [INFO]: Found Robot Framework version 3.1.1 from c:\python37-32\lib\site-packages\robot.
20190326 17:31:22.876 [INFO]: Started RIDE 1.7.3.1 using python version 3.7.2 with wx version 4.0.4 in win32. ```
I had the same problem with the robotframework-autoitlibrary.
The way I found to fix and use autoit in RF was to uninstall the "robotframework-autoitlibrary" and install the "autoitlibrary" found here: https://code.google.com/archive/p/robotframework-autoitlibrary/ with python setup.py install as Admin.
Initializing error is now gone.
AutoItLibrary is not built in with robot framework you need to import the library.
pip install robotframework-autoitlibrary

R-Box not working with Sublime Text 3

I have been running R from ST3, but all of a sudden it has stopped working and I cannot figure out why. When I open a R-file in ST3, R does not open after hitting [Cmd + enter]. I have already tried the following things:
1) Check if the path to Rgui is correct in the User settings (it is).
2) Check if the file is in R-extended format (it is).
I have reinstalled ST3, but the problem is still there. I am running ST3 on Windows 7 (64-bit).
In the command-line I get the following error:
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 818, in run_
return self.run(edit)
File "SendText in C:\Users\Tim\AppData\Roaming\Sublime Text 3\Installed Packages\SendText.sublime-package", line 89, in run
File "SendText in C:\Users\Tim\AppData\Roaming\Sublime Text 3\Installed Packages\SendText.sublime-package", line 27, in send
File "./python3.3/subprocess.py", line 523, in call
File "./python3.3/subprocess.py", line 819, in __init__
File "./python3.3/subprocess.py", line 1110, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Traceback (most recent call last):
File "./python3.3/subprocess.py", line 1104, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Does anyone have any ideas on how to solve this issue?

Syntax Error running bin/buildout on Plone 3.2.3

I get the folowing error when I run bin/buildout.
I´ve check this issue here on Plone.org and they say that it ´s not dangerous
but they do not say how to resolve it.
I want to skip this error in order to execute bin/buildout withouth errors, til now I´m updating my products manually. How can I solve this?
root#sevilla2:/var/plone/zinstance# bin/buildout
While:
Installing.
Getting section precompile.
Initializing section precompile.
Loading zc.buildout recipe entry plone.recipe.precompiler:default.
An internal error occured due to a bug in either zc.buildout or in a
recipe being used:
Traceback (most recent call last):
File "/var/plone/buildout-cache/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 1509, in main
getattr(buildout, command)(args)
File "/var/plone/buildout-cache/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 357, in install
[self[part]['recipe'] for part in install_parts]
File "/var/plone/buildout-cache/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 888, in __getitem__
options._initialize()
File "/var/plone/buildout-cache/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 969, in _initialize
recipe_class = _install_and_load(reqs, 'zc.buildout', entry, buildout)
File "/var/plone/buildout-cache/eggs/zc.buildout-1.1.2-py2.4.egg/zc/buildout/buildout.py", line 932, in _install_and_load
return pkg_resources.load_entry_point(
File "/var/plone/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 277, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/var/plone/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 2180, in load_entry_point
return ep.load()
File "/var/plone/buildout-cache/eggs/setuptools-0.6c9-py2.4.egg/pkg_resources.py", line 1913, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/var/plone/buildout-cache/eggs/plone.recipe.precompiler-0.6-py2.4.egg/plone/recipe/precompiler/__init__.py", line 7, in ?
from pythongettext.msgfmt import Msgfmt
File "/var/plone/buildout-cache/eggs/python_gettext-2.1-py2.4.egg/pythongettext/msgfmt.py", line 265
except Exception as msg:
^
SyntaxError: invalid syntax
I came from a migration of my site (successfully completed but builded without buildout)
Plone 3.2.3
CMF 2.1.2 Zope (Zope 2.10.7-final, python 2.4.5, linux2)
Python 2.4.5 [GCC 4.4.5]
PIL 1.1.6
You'll need to pin python-gettext to use a version before version 2.0. That version introduced syntax that requires Python 2.6 or newer (to make the package work on Python 3 as well).
In your buildout versions section, add:
python-gettext = 1.2

Resources