Pedro Cardoso | 14 Oct 10:33 2015
Picon

Plot window not responding

Hi,
I have a problem when plotting in Spyder.

When using a the code below, the figure window opens but says "not responding". The weird thing is that if I insert a "pause" statement it plots correctly.


Using this code the plot window will freeze
import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.ylabel('some numbers') plt.show()


Using this code the plot window will display normally the graph
import matplotlib.pyplot as plt plt.plot([1,2,3,4]) plt.ylabel('some numbers') plt.show()
plt.pause(10)

I tried to change the backend with no positive results. Any guess ?
Best Regards,
Pedro

--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonxy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Thomas Strand | 2 Oct 20:06 2015
Picon

Scaling on 4k screen

Hello!

When using python(x, y) on my Dell XPS 15, the home menu gets garbled (see picture). 

The screen resolution is 3840 x 2160 but reducing to 1920 x 1080 does not help. I still think this is related to the screen resolution somehow.


A workaround might be right-clicking on the taskbar icon, but I don't know if all the options are available from there.


Anyone got a tip on this? I surely have missed something obvious?


Best Regards,

Thomas


--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonxy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Feng Zhu | 6 Oct 15:04 2015

Problem in QString API version 2, is it possible to use QString version 1 in pythonxy?

Hello All,

I got a problem of using QString api version 2. 

Basically, I have a software which was developed using python 2.5.  I am now trying to the code work with python 2.7. I chose the pythonxy 2.7.9 package since it has almost all libraries I need. 

First, I found I need to setup set QT_API=pyqt in system environment first. Otherwise it tries to use Pyside which is not working for my code. I don't know why there are to Qt inside. 

Then, the real problem is my software was developed in python 2.5 which used QString version 1. 

So in QString API version 1, I can do something like.

from PyQt4.QtCore import QString

However, in pythonxy 2.7.9, it force to set api to version 2 at low level code __init__.py in qt. So I got the following error:

    ValueError: API 'QString' has already been set to version 1

So I manually add the follow code at very beginning of my software to setup api to version 2

        import sip
        sip.setapi('QString', 2)
        sip.setapi('QVariant', 2)


However, I then cannot import QString from QtCore. 

I read some posts from other website. It says the QString is eliminated from API version 2. I should use python string as replacement. The problem is I have thousands of lines have QString. It would take ages to change it to python string. And I also don't know if my code will work after change all QString to python string. 

I also tried to change the API version to 1 at version low level code __init__.py in qt.

    def prepare_pyqt4():
        # Set PySide compatible APIs.
        import sip
        sip.setapi('QString', 1)
        sip.setapi('QVariant', 1)

I then got hundreds strange error when I launch my software, for example:

****) FlightPad: Unhandled exception
Traceback (most recent call last):
  File "C:\python27\lib\site-packages\pyface\ui\qt4\workbench\split_tab_widget.py", line 310, in _focus_changed
    ntw, ntidx = self._tab_widget_of(new)
  File "C:\python27\lib\site-packages\pyface\ui\qt4\workbench\split_tab_widget.py", line 331, in _tab_widget_of
    for tw in self.findChildren(_TabWidget, None):
TypeError: arguments did not match any overloaded call:
  QObject.findChildren(type, QString name=QString()): argument 2 has unexpected type 'NoneType'
  QObject.findChildren(tuple, QString name=QString()): argument 1 has unexpected type 'PyQt4.QtCore.pyqtWrapperType'
  QObject.findChildren(type, QRegExp): argument 2 has unexpected type 'NoneType'
  QObject.findChildren(tuple, QRegExp): argument 1 has unexpected type 'PyQt4.QtCore.pyqtWrapperType'
An unexpected error has occurred:
 arguments did not match any overloaded call:
  QObject.findChildren(type, QString name=QString()): argument 2 has unexpected type 'NoneType'
  QObject.findChildren(tuple, QString name=QString()): argument 1 has unexpected type 'PyQt4.QtCore.pyqtWrapperType'
  QObject.findChildren(type, QRegExp): argument 2 has unexpected type 'NoneType'
  QObject.findChildren(tuple, QRegExp): argument 1 has unexpected type 'PyQt4.QtCore.pyqtWrapperType'(<type 'exceptions.TypeError'>)

It looks like pythonxy at low level doesn't like QString API version to be set 1. 

Could anyone please advise me what I should do to fit my code? Should I replace python string of QString in my code thousands lines? Or if there is any official way to keep use QString version 1 in pythonxy?

Thanks very much! Looking forward to your reply.

Best Regards,







--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonxy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Feng Zhu | 7 Oct 01:00 2015

Problem to use QString API version 1 or 2.

Hello,

 

I got some problem to use QString API version 2.

 

Basically, I have a software which is developed by python 2.5. I am now trying to make it work with python 2.7. I chose the pythonxy 2.7.9 since it has almost all libraries I need.

 

The first thing I realise is that I need to set QT_API=pyqt in system environment. Otherwise, it will pythonxy will try to use PySide Qt, which is not working with my code.

 

Then, the real problem is my code was developed with python 2.5, so it used QString version 1.

 

So in QString API version 1, I can do:

 

from PyQt4.QtCore import QString

 

However, I found that pythonxy 2.7.9 forced to set QString API version to 2, at low level code __init__.py in qt.

 

So I have to add the following code at very beginning of my code:

 

import sip

sip.setapi('QString'2)

sip.setapi('QVariant'2)

 

However, after I set it to API 2. I cannot import QString from QtCore anymore.

 

I read some posts from other website. It says QString is eliminated from API version 2. It suggests to use python string replace all QString. However, I have thousands of lines have QString. It will take long time to replace. And I also don’t know if python string will work.

 

I also tried to force set QString API to 1 at low level code, __init__.py in qt by:

 

 

def prepare_pyqt4():

    Set PySide compatible APIs.

    import sip

    sip.setapi('QString'1)

    sip.setapi('QVariant'1)

 

Then, I will get hundreds of strange erros, for example:

 

 

****) FlightPad: Unhandled exception

Traceback (most recent call last):

  File "C:\python27\lib\site-packages\pyface\ui\qt4\workbench\split_tab_widget.py", line 310, in _focus_changed

    ntw, ntidx = self._tab_widget_of(new)

  File "C:\python27\lib\site-packages\pyface\ui\qt4\workbench\split_tab_widget.py", line 331, in _tab_widget_of

    for tw in self.findChildren(_TabWidget, None):

TypeError: arguments did not match any overloaded call:

  QObject.findChildren(type, QString name=QString()): argument 2 has unexpected type 'NoneType'

  QObject.findChildren(tuple, QString name=QString()): argument 1 has unexpected type 'PyQt4.QtCore.pyqtWrapperType'

  QObject.findChildren(type, QRegExp): argument 2 has unexpected type 'NoneType'

  QObject.findChildren(tuple, QRegExp): argument 1 has unexpected type 'PyQt4.QtCore.pyqtWrapperType'

QWidget::create: Failed to create window ()

*) pyface.workbench.workbench: window <psi.workbench.workbench_window.WorkbenchWindow object at 0x05D56630> activated

An unexpected error has occurred:

arguments did not match any overloaded call:

  QObject.findChildren(type, QString name=QString()): argument 2 has unexpected type 'NoneType'

  QObject.findChildren(tuple, QString name=QString()): argument 1 has unexpected type 'PyQt4.QtCore.pyqtWrapperType'

  QObject.findChildren(type, QRegExp): argument 2 has unexpected type 'NoneType'

  QObject.findChildren(tuple, QRegExp): argument 1 has unexpected type 'PyQt4.QtCore.pyqtWrapperType'(<type 'exceptions.TypeError'>)

****) FlightPad: Unhandled exception

Traceback (most recent call last):

  File "C:\python27\lib\site-packages\pyface\ui\qt4\workbench\split_tab_widget.py", line 310, in _focus_changed

    ntw, ntidx = self._tab_widget_of(new)

  File "C:\python27\lib\site-packages\pyface\ui\qt4\workbench\split_tab_widget.py", line 331, in _tab_widget_of

    for tw in self.findChildren(_TabWidget, None):

TypeError: arguments did not match any overloaded call:

  QObject.findChildren(type, QString name=QString()): argument 2 has unexpected type 'NoneType'

  QObject.findChildren(tuple, QString name=QString()): argument 1 has unexpected type 'PyQt4.QtCore.pyqtWrapperType'

  QObject.findChildren(type, QRegExp): argument 2 has unexpected type 'NoneType'

  QObject.findChildren(tuple, QRegExp): argument 1 has unexpected type 'PyQt4.QtCore.pyqtWrapperType'

QWidget::create: Failed to create window ()

 

Could any one advise me what I should do to make pythonxy works. Shall I change thousands lines to replace python string to QString. Or if there is any officially way to keep using QString version 1 in python xy?

 

Thanks very much for the help.

 

Best Regards,

--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonxy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Jonathan Schock | 14 Sep 18:21 2015

Python 3.x Version, Development?

Hi all,
I would like to contribute in the python(x,y) development, especially in making a 3.x version happen.
Can someone hint me to any developer resources? Github? SVN? Wiki? Something?
Greets
Joni

--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonxy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Michael Clerx | 31 Aug 21:14 2015
Picon

AdditionalPlugins page is missing from github

Hi all,

The new github page looks great, but the link to the additional plugins is broken (http://python-xy.github.io/p/pythonxy/wiki/AdditionalPlugins).

cheers,
  Michael

--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonxy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Erick Fonseca | 22 Jul 04:42 2015
Picon

How to reinstall packages?

So, I had a perfectly working installation of Python(x, y). Recently, though, I started messing 
around with some modules and ended up running a pip command with --upgrade, which I suppose 
upgraded scipy. 

Now, scipy and sklearn stopped working correctly. I thought to simply delete their folders from 
Lib/site-packages and running the Python (x, y) installer, but it didn't help. The installer ignored 
their absence.

Is there a simple way to reinstall just some specific missing packages? Perhaps some config file 
in the Python folder that I should change before running the installer?

Thanks,
Erick Fonseca

--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonxy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Gabi Davar | 1 Jul 21:18 2015
Picon
Gravatar

Python(x, y) 2.7.10.0 Released!

Hi All,


I'm happy to announce that Python(x, y) 2.7.10.0 is available for immediate download.from any of the mirrors. The full change log can be viewed here. Please post your comments and suggestions to the mailing list.

Work on the Python 3.x 64 bit version will resume once Visual Studio 2015 RTM is released.

What's new in general:

  • All packages have been updated to their latest versions. Numpy, Scipy etc.
  • ipython has been held back at 2.4.1 to avoid potential compatibility issues.
  • OpenCV has been help back at 2.4.11 to avoid potential compatibility issues.

New noteworthy packages:

  • yappi - Yet Another Python Profiler.
  • libnacl - A ctypes wrapper around libsodium.
Have fun!

-Gabi Davar

--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonxy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Trey Suntrup | 30 May 04:23 2015
Picon

Scipy: ImportError: cannot import name doccer

I just installed python xy 2.7.9 on Windows 7. I went to run some previously written code in Spyder which calls:

from scipy.sparse import linalg as sla

However, I get the following error:

File "C:\Python27\lib\site-packages\scipy\sparse\linalg\__init__.py", line 113, in <module> from .matfuncs import * File "C:\Python27\lib\site-packages\scipy\sparse\linalg\matfuncs.py", line 20, in <module> import scipy.misc File "C:\Python27\lib\site-packages\scipy\misc\__init__.py", line 44, in <module> from . import doccer ImportError: cannot import name doccer

Does anyone know how to fix this? I find this weird because it worked with my previous copy of Python (which I uninstalled before installing the new version).

Thanks!

--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonxy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Al Duke | 1 Jun 19:59 2015
Picon

Missing ReportLab demo: Py2pdf

I'm running v. 2.7.9.0
I was looking for a capability similar to MATLAB's publish functionality.  i.e. I want to run my script and create an html or pdf report that includes the code, console output and any graphs. 
It looks like ReportLab can do this.  The documentation describes a demo called Py2pdf (in section A.3) that sounds like it does exactly what I want.
Unfortunately, this demo folder is missing from my installation.   It *should* be in this folder: C:\Program Files (x86)\pythonxy\doc\Libraries\reportlab\demos\
 I tried reinstalling ReportLab but it's still not there. 
Anyone know why this was apparently dropped form the distribution?  Or maybe there's a better way to do what I want?

--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonxy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
berat.sancar.x | 11 Mar 20:44 2015
Picon

SpePy Installation problem

Hi,
I was recompiling the C extension files from the SfePy and to the end of the process I have got the following error messages:
build_src: building npy-pkg config files : 'gcc' is not recognized as an internal or external command, operable program or batch file.
Building msvcr library: "c:\Python27\libs\libmsvcr90.a" (from C:\Windows\winsxs\x86_microsoft.vc90.crt_1fc**a long number string**\msvcr90.dll)
error: [Error 2] The system cannot find the file specified

I have just read that mingw is not part of the package anymore. Can this be a part of the problem? 

The shell command is as follows: python setup.py build_ext --inplace --compiler=mingw32

I am using Windows 7 and Python(x,y) version 2.7.9 

Can anyone here give me a start point as to what might be causing these two errors? If mingw32 is the problem what compiler option should I use?

Thanks in advance.
Regards,
Berat

--
You received this message because you are subscribed to the Google Groups "python(x,y)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pythonxy+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To post to this group, send email to pythonxy-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.

Gmane