mingw seems to crash python (Anaconda on windows) - theano

I'm trying to install theano on a windows computer. When I do import theano python crashes. I think this is a mingw issue because when I uninstall mingw libpython and try to import theano, I get a theano warning, but python does not crash.
I have tried Anaconda 2.10 and 2.30. I follow the installation up with conda install mingw libpython, and then install the latest theano from github. import theano still crashes. Any ideas?
Here are the details of the "python.exe has stopped working" message:
Problem signature:
Problem Event Name: APPCRASH
Application Name: python.exe
Application Version: 0.0.0.0
Application Timestamp: 55678c56
Fault Module Name: lazylinker_ext.pyd
Fault Module Version: 0.0.0.0
Fault Module Timestamp: 55cdf48e
Exception Code: c000001d
Exception Offset: 000000000000517f
OS Version: 6.1.7600.2.0.0.768.3
Locale ID: 4105
Additional Information 1: 02b5
Additional Information 2: 02b5acdc9b8489c31d00cfe986aa8a42
Additional Information 3: fd67
Additional Information 4: fd674a72ea70861e63067edee1c9266b

Related

I'm unable to create the .exe for the most simple 'hello world' example

I've used py2exe successfully for previous projects on previous build machines, but now I've freshly installed everything from scratch and can't run the simplest example:
setup.py:
from distutils.core import setup
import py2exe
setup(console=['hello.py'])
hello.py:
print("Hello World")
Command: python3 setup.py py2exe
Output:
running py2exe
1 missing Modules
------------------
? _posixshmem imported from multiprocessing.resource_tracker, multiprocessing.shared_memory
Building 'dist\hello.exe'.
error: [WinError 87] The parameter is incorrect.
dest\hello.exe is generated (37 kB!) but gives the following error when run:
Could not locate script resource:The specified resource type cannot be found in the image file.
FATAL ERROR: Could not locate script
The versions I have installed are:
python --version
Python 3.8.6
pip freeze
cachetools==4.1.1
future==0.18.2
numpy==1.19.3
opencv-python==4.4.0.46
pefile==2019.4.18
py2exe==0.10.1.0
pyreadline==2.1
pywin32==300
systeminfo
OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19041 N/A Build 19041
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
Hotfix(s): 6 Hotfix(s) Installed.
[01]: KB4580419
[02]: KB4561600
[03]: KB4577266
[04]: KB4580325
[05]: KB4586864
[06]: KB4586781
Hyper-V Requirements: A hypervisor has been detected. Features required for Hyper-V will not be displayed.
I know that there is clearly something weird happening (I've already hit the issue with 'numpy' here: https://developercommunity.visualstudio.com/content/problem/1207405/fmod-after-an-update-to-windows-2004-is-causing-a.html ) ... but I can't quite see what it is.
Thanks !
-- Mac
You just misstyped the command line flag, should be: python setup.py py2exe.
Works fine for me on Win7, Python 3.8.0:
(py38) λ python setup.py py2exe
running py2exe
2 missing Modules
------------------
? _posixshmem imported from multiprocessing.resource_tracker, multiprocessing.shared_memory
? readline imported from cmd, code, pdb
Building 'dist\hello.exe'.
Building shared code archive 'dist\library.zip'.
Copy c:\users\f3k\envs\py38\scripts\python38.dll to dist
...
Copy DLL C:\Python38\DLLs\libffi-7.dll to dist\
C:\temp
(py38) λ dist\hello.exe
Hello World

Process to install JupyterLab using Miniconda

I am trying to get jupyterlab working using an environment handled by miniconda. However, starting from a fresh environment using python 3.8.0 and simply doing
conda install -c conda-forge jupyterlab
First lead me to an asyncio related error. I was able to solve it using this answer.
Now I am facing a DLL import error :
File "C:\Users\XXXX\AppData\Local\Continuum\miniconda3\lib\site-packages\zmq\backend\cython\__init__.py", line 6, in <module>
from . import (constants, error, message, context,
ImportError: DLL load failed: The specified module could not be found.
And I can't solve this. I tried using python 3.6.0 instead of 3.8.0. This did not work.
Any idea ? I am using Windows 10 build 1809 64 bits system.

the PyQt4.QtCore module failed to register with the sip module

I am running QGIS on Linux Fedora. Everything was fine until I upgraded to Fedora 29. Now, each time I launch QGIS or run a python script, I have the following message:
RuntimeError: the PyQt4.QtCore module failed to register with the sip module
after I import qgis._gui. I'm not sure what it means. Is it a problem with my sip version, some path to fix? I am running QGIS 2.18.20, sip-4.19.13 and Python 2.7.15.
Thanks
After unsuccessful debugging and googling about the very same issue, I've upgraded to 3.4 version from copr repository:
dnf copr enable dani/qgis
install qgis python3-qgis
Now python works and I can QGIS again, seems the developers are not too keen to solve 2.18 version errors.

PyVmMonitor Error " pyvmmonitor-ui was not properly started"

According to the PyVmMontior Devs, "PyVmMonitor integration is bundled in PyDev itself.." I have been trying to use PyVmMonitor to profile a pyqt5 desktop application I have been developing, however I get the following error when trying to launch with the profiler:
Error: pyvmmonitor-ui was not properly started by running: <pyvmmonitor.handle_command_line.CommandLineOptions object at 0x105c8a8d0>
The program terminates early, and my pyqt5 main script crashes before any windows are created.
I have tried pointing to the pyvmmonitor-ui (executable) location at:
/Applications/PyVmMonitor.app
/Applications/PyVmMonitor/Contents/MacOs/pyvmmonitor-ui
making an alias for both
profile modes of Sampling and Deterministic
How do I get PyVmMonitor to work with my script (Preferably through LiClipse/PyDev)?
Relevant Details:
Mac OS 10.13.5
LiClipse 5.0.3
PyDev for Eclipse: 6.5.0
Program uses Python 3.6, with the following dependencies managed by conda:
PyQt5
numpy
scipy
matplotlib
pyqtgraph
threading

PyQt5 - pyuic5 failed with wrong SIP version

I've faced an issue while using Python3 / PyQt5 on a brand new Qt5 installation
My environment is:
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 12.04.4 LTS
Release: 12.04
Codename: precise
I've installed QT5 and PyQt5 without any problem. When creating the py module from QT UML description, the process fails with a SIP version error.
command:
pyuic5 uml/console.ui -o console_ui.py
results as:
File "/usr/lib/python3.2/site-packages/PyQt5/uic/pyuic.py", line 26, in <module>
from PyQt5 import QtCore
RuntimeError: the sip module implements API v8.0 to v8.1 but the PyQt5.QtCore module requires API v10.1
pyuic5 ui_path/myfile.ui -o ui_path/myfile_ui.py
my SIP version is :
jeby6372#junon:~$ sip -V
4.15.4
SIP 4.15.4 is the lastest version delivered by RiverBank.
I've removed the old QT4 environment so I think there's somewhere a bad link to the corresponding old SIP version.
Numerous similar issues have been posted on the web but none got an valuable answer.(when they're even answered).
Thanks for yor help.
Emmanuel.
Just need to remove python-sip and install again sip-4.15.4. The packaged python3-sip is out of date for PyQt5

Resources