Juan de la Figuera | 5 Feb 16:45 2016
Picon

Problem with Python (x,y) 2.7.10.0 and GDAL

Hi to all,

And thanks to Gabi. I am a linux python user and I had really given up trying to work on windows with python (or trying to convince my colleagues that only run Windows).

I am having a problem with the 2.7.10.0 release. I have installed it in W7 32bits, W7 64bits and W8.1 64bits. In all of them, I cannot use the osgeo library.

For example, when trying
from osgeo import gdal

I get a dll not found error. In fact, trying to run ogr2ogr (or any of the other executables in the gdal folder) from the Python2.7/Lib/site-packages/osgeo folder, it complains that it is missing cares-90-mt.dll. Inspecting any of them, they are also missing gpsvc.dll and ieshims.dll.

Any help would be appreciated.

Best regards,
Juan 

--
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 https://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Soldcake Lai | 26 Jan 18:55 2016
Picon

Is development active

Hi,
Is Python(X,Y) still in active development?
Is there a developer forum/group anywhere?
best regards
c.h.

--
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 https://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
CodePerf | 9 Jan 19:37 2016
Picon

Theano in Python XY

Hello,

Any chance to include THeano in Python XY ?

Thanks very much

--
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 https://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Wade Wall | 18 Dec 18:19 2015
Picon

pythonxy installation won't open

Hi all,

I have an interesting situation and not sure how to resolve it. I had python(x,y) previously installed, with a link to ArcGIS's version of python so that I could use the arcpy module. After installing the ulmo module, python(x,y) would no longer work. So being a windows person, I attempted to uninstall and reinstall. Now, python(x,y) won't open up. I did not delete previous versions of python, because I am concerned that would lead to the removal of the ArcGIS python.exe.

Any hints on how I can solve this problem? I am guessing that it is a registry problem, but not sure how to solve it.

Thanks for any information.

Wade

--
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 https://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.
Alessandro Magni | 3 Dec 14:28 2015
Picon

tkinter ?

I wanted to install python(x,y) on a win machine to interface it to some measurement instruments,
and, since this is the only experience I have with GUIs, I intended to write the interface in Tkinter.

Problem is, I do not see Tkinter mentioned under https://python-xy.github.io/ : can you tell me - before I go the long way of installing it - if it is included or not?

thank you!


Alessandro

--
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.
Pankaj Gupta | 11 Dec 12:25 2015

Problem in access xml.etree module.

Hi All,

I am using Python(x,y) 2.7.10 for my development. I used xml.etree module to parse my xml file. 

Today I tried installing PyXml module to parse xml file. but after installation of PyXML module I am not able to acces xml.etree module anymore.

I uninstalled PyXML but still was not able to access the same. I tried re-installing Python(x,y) but still getting the same issue.

Error stating : No module named etree.ElementTree available.

I am stuck with some time crtical deliverable.

Please help me waiting fro your positive reply.

Thanks
Pankaj

--
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.
isaac2lord | 21 Oct 18:56 2015
Picon

Problem installing PyMCMC/PySSM

Hi

I have been trying to install PyMCMC module in python(x,y) using pip install but got the following errors:

Windows 7 Enterprise; 64-Bit OS




Code (pip):

C:\Windows\system32>pip install C:\Users\...\Downloads\pymcmc-master.zip

Result:

Processing c:\users\...\downloads\pymcmc-master.zip
Installing collected packages: pymcmc
  Running setup.py install for pymcmc
    Complete output from command C:\...\python.exe -c "import setuptools, t
okenize;__file__='c:\\users\\...\\appdata\\local\\temp\\pip-r926zj-build\\set
up.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r
\n', '\n'), __file__, 'exec'))" install --record c:\users\...\appdata\local\t
emp\pip-xwg7_c-record\install-record.txt --single-version-externally-managed --c
ompile:
    running install
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler
options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler
 options
    running build_src
    build_src
    building extension "stochsearch" sources
    f2py options: []
      adding 'build\src.win-amd64-2.7\fortranobject.c' to sources.
      adding 'build\src.win-amd64-2.7' to include_dirs.
      adding 'build\src.win-amd64-2.7\stochsearch-f2pywrappers.f' to sources.
    building extension "timeseriesfunc" sources
    f2py options: []
      adding 'build\src.win-amd64-2.7\fortranobject.c' to sources.
      adding 'build\src.win-amd64-2.7' to include_dirs.
    building extension "wishart" sources
    f2py options: []
      adding 'build\src.win-amd64-2.7\fortranobject.c' to sources.
      adding 'build\src.win-amd64-2.7' to include_dirs.
    building data_files sources
    Not existing data file: examples/ex_loglinear_loop.py
    Not existing data file: examples/ex_loglinear_f2py.py
    Not existing data file: examples/ex_loglinear_weave.py
    Not existing data file: doc/PyMCMC.lyx
    Not existing data file: doc/PyMCMC.pdf
    build_src: building npy-pkg config files
    running build_py
    creating build\lib.win-amd64-2.7
    creating build\lib.win-amd64-2.7\pymcmc
    copying Lib\mcmc.py -> build\lib.win-amd64-2.7\pymcmc
    copying Lib\mcmcplots.py -> build\lib.win-amd64-2.7\pymcmc
    copying Lib\mcmc_utilities.py -> build\lib.win-amd64-2.7\pymcmc
    copying Lib\regtools.py -> build\lib.win-amd64-2.7\pymcmc
    copying Lib\__init__.py -> build\lib.win-amd64-2.7\pymcmc
    running build_ext
    No module named msvccompiler in numpy.distutils; trying from distutils
    customize MSVCCompiler
    customize MSVCCompiler using build_ext
    customize GnuFCompiler
    Could not locate executable g77
    Could not locate executable f77
    customize IntelVisualFCompiler
    Could not locate executable ifort
    Could not locate executable ifl
    customize AbsoftFCompiler
    Could not locate executable f90
    customize CompaqVisualFCompiler
    Could not locate executable DF
    customize IntelItaniumVisualFCompiler
    Could not locate executable efl
    customize Gnu95FCompiler
    Could not locate executable gfortran
    Could not locate executable f95
    customize G95FCompiler
    Could not locate executable g95
    customize IntelEM64VisualFCompiler
    customize IntelEM64TFCompiler
    Could not locate executable efort
    Could not locate executable efc
    don't know how to compile Fortran code on platform 'nt'
    warning: build_ext: f77_compiler=None is not available.

    building 'stochsearch' extension
    error: extension 'stochsearch' has Fortran sources but no Fortran compiler f
ound

    ----------------------------------------
Command "C:\...\python.exe -c "import setuptools, tokenize;__file__='c:\\us
ers\\...\\appdata\\local\\temp\\pip-r926zj-build\\setup.py';exec(compile(geta
ttr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'e
xec'))" install --record c:\users\...\appdata\local\temp\pip-xwg7_c-record\in
stall-record.txt --single-version-externally-managed --compile" failed with erro
r code 1 in c:\users\...\appdata\local\temp\pip-r926zj-build


*****************************************

Also have tried installing binary version from this address, but when I run  

from pymcmc.mcmc import MCMC

it gives me the following error

ImportError: DLL load failed: %1 is not a valid Win32 application


which I think is related to the fact that I am running on a 64-Bit machine but the binary version is 32-bit. 

*****************************************


Since it's my first time trying to install a non-python(x,y) package that needs Fortran compilation, I'm a bit confused where to start looking for a solution. In the attached document Chapter 25.4.1 (Page 35), and in the github repo (here), a list of packages referred to install for windows compilation which I did not do yet (I am a bit unsure if I'm gonna need all of those packages later).

Appreciate any comments!
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.
Attachment (PyMCMC.pdf): application/pdf, 511 KiB
Hans.Koch | 18 Oct 18:55 2015
Picon

itk SCIFIO error

Hi,

When running some itk programs, which worked a year ago, e.g. the first few lines of the itk test:  MeanImageFilter.py:

import itk
dim = 2
IType = itk.Image[itk.F, dim]
imageFileName='BrainProtonDensitySliceBorder20.png'
reader = itk.ImageFileReader[IType].New()
reader.SetFileName(imageFileName)
reader.Update()

I now receive the following output and error message when running it with Spyder (Python 2.7) :

Python 2.7.10 (default, May 23 2015, 09:40:32) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> runfile('C:/Users/koch05/Documents/WS_14_15/Book/py_mybook/codes/ch11/my_Filter.py', wdir='C:/Users/koch05/Documents/WS_14_15/Book/py_mybook/codes/ch11')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 688, in runfile
    execfile(filename, namespace)
  File "C:\Python27\lib\site-packages\spyderlib\widgets\externalshell\sitecustomize.py", line 72, in execfile
    exec(compile(scripttext, filename, 'exec'), glob, loc)
  File "C:/Users/koch05/Documents/WS_14_15/Book/py_mybook/codes/ch11/my_Filter.py", line 30, in <module>
    reader.Update()
RuntimeError: C:\u\itk-git\_b\Modules\Remote\SCIFIO\src\itkSCIFIOImageIO.cxx:274:
itk::ERROR: SCIFIOImageIO(103ADF70): SCIFIO_PATH is not set. This environment variable must point to the directory containing the SCIFIO JAR files
>>>

Additional remark: in the Python27 site-package, inside the itk folder are the files SCIFIO.py and SCIFIOPython.py and in the Configuration folder: SCIFIOConfig.py

How can I fix this problem? Any help is highly appreciated.

--
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.
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.

Gmane