Erick Fonseca | 27 Oct 15:54 2014
Picon

Error importing sklearn

I tried to import sklearn and got the following error:

In [1]: import sklearn
ERROR
: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line string', (1, 2))


---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-8fd979e02004> in <module>()
----> 1 import sklearn


c
:\Python27\lib\site-packages\sklearn\__init__.py in <module>()
     
29     # process, as it may not be compiled yet
     
30 else:
---> 31     from . import __check_build
     
32     from .base import clone
     
33


c
:\Python27\lib\site-packages\sklearn\__check_build\__init__.py in <module>()
     
44     from ._check_build import check_build
     
45 except ImportError as e:
---> 46     raise_build_error(e)


c
:\Python27\lib\site-packages\sklearn\__check_build\__init__.py in raise_build_error(e)
     
39 to build the package before using it: run `python setup.py install` or
     
40 `make` in the source directory.
---> 41 %s""" % (e, local_dir, ''.join(dir_content).strip(), msg))
     42
     43 try:


ImportError: No module named _check_build
___________________________________________________________________________
Contents of c:\Python27\lib\site-packages\sklearn\__check_build:
setup.py                  __init__.py               __init__.pyc
___________________________________________________________________________
It seems that scikit-learn has not been built correctly.


If you have installed scikit-learn from source, please do not forget
to build the package before using it: run `python setup.py install` or
`make` in the source directory.


If you have used an installer, please check that it is suited for your
Python version, your operating system and your platform.


I'm running Windows 8 with Python (x, y) 2.7.6.1. It is weird because I could use sklearn previously (actually, I got this error trying to run a script I had written and tested on this computer).
I checked that sklearn has a module named __check_build whose __init__.py file has the following line:

from ._check_build import check_build

And indeed there is no _check_build in my installation.
Any help is 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.
Fabiano Yokaichiya | 9 Oct 10:55 2014
Picon

NeXus library

I am new in python language, and I am trying to install the NeXus package. But I am having thi kind of message:
NeXus library C:\Python27\lib\site-packages\nxs\libNeXus-0.dll could not be loaded: (<type 'exceptions.WindowsError'>, WindowsError(193, '%1 ist keine zul\xe4ssige Win32-Anwendung'), <traceback object at 0x0574C648>)
How could I solve this problem?

--
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.
carlos juez | 20 Aug 21:24 2014
Picon

Problems when compiling C Extension: bad reloc address 0x0 in section `.data' collect2.exe: error: ld returned 1 exit status

Dear all,

I am trying to compile the C Extension for pyxrr (http://carichte.github.io/pyxrr/) in a Win7 64bit machine using PythonXY.

This usually works without problems. However now I'm getting the following error:


run setup.py build -c mingw32
running build
running build_py
running build_ext
building 'pyxrr.xrr' extension
C:\MinGW32-xy\bin\gcc.exe -mdll -O -Wall -IC:\Python27\lib\site-packages\numpy\c
ore\include -IC:\Python27\include -IC:\Python27\PC -c pyxrr/xrr.c -o build\temp.
win32-2.7\Release\pyxrr\xrr.o -fopenmp
In file included from C:\Python27\lib\site-packages\numpy\core\include/numpy/nda
rraytypes.h:1761:0,
                 from C:\Python27\lib\site-packages\numpy\core\include/numpy/nda
rrayobject.h:17,
                 from C:\Python27\lib\site-packages\numpy\core\include/numpy/arr
ayobject.h:4,
                 from pyxrr/xrr.c:26:
C:\Python27\lib\site-packages\numpy\core\include/numpy/npy_1_7_deprecated_api.h:
12:9: note: #pragma message: C:\Python27\lib\site-packages\numpy\core\include/nu
mpy/npy_1_7_deprecated_api.h(12) : Warning Msg: Using deprecated NumPy API, disa
ble it by #defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
 #pragma message(_WARN___LOC__"Using deprecated NumPy API, disable it by " \
         ^
writing build\temp.win32-2.7\Release\pyxrr\xrr.def
C:\MinGW32-xy\bin\gcc.exe -shared -s build\temp.win32-2.7\Release\pyxrr\xrr.o bu
ild\temp.win32-2.7\Release\pyxrr\xrr.def -LC:\Python27\libs -LC:\Python27\PCbuil
d -lpython27 -lmsvcr90 -o build\lib.win32-2.7\pyxrr\xrr.pyd -fopenmp
build\temp.win32-2.7\Release\pyxrr\xrr.o:xrr.c:(.text+0x188): undefined referenc
e to `cexp'
build\temp.win32-2.7\Release\pyxrr\xrr.o:xrr.c:(.text+0x32c): undefined referenc
e to `cexp'
build\temp.win32-2.7\Release\pyxrr\xrr.o:xrr.c:(.text+0x42c): undefined referenc
e to `cexp'
build\temp.win32-2.7\Release\pyxrr\xrr.o:xrr.c:(.text+0xb4a): undefined referenc
e to `cexp'
build\temp.win32-2.7\Release\pyxrr\xrr.o:xrr.c:(.text+0xccf): undefined referenc
e to `cexp'
build\temp.win32-2.7\Release\pyxrr\xrr.o:xrr.c:(.text+0xda5): more undefined ref
erences to `cexp' follow
build\temp.win32-2.7\Release\pyxrr\xrr.o:xrr.c:(.text+0x100e): undefined referen
ce to `csqrt'
build\temp.win32-2.7\Release\pyxrr\xrr.o:xrr.c:(.text+0x1898): undefined referen
ce to `csqrt'
c:/mingw32-xy/bin/../lib/gcc/mingw32/4.8.1/../../../../mingw32/bin/ld.exe: build
\temp.win32-2.7\Release\pyxrr\xrr.o: bad reloc address 0x0 in section `.data'
collect2.exe: error: ld returned 1 exit status


It does not anymore seem to understand the complex numbers functions of complex.h. Maybe something is linked in the wrong way?
I was already searching the web and trying options like "-lm", "-DMS_WIN32" etc.
It also occurs if I don't use the multiprocessing option via openmp.


Any hints would be appreciated

Thank you!

--
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.
Wil | 6 Aug 11:55 2014
Picon

Cython on Python(x,y) using Windows

Hello guys !

I'm new here and I have big difficulty to understand how to works Cython on Windows. Python(x,y) has cython plugin, but I don't have ideia how to use.

Every tutorial that I read, teach me using linux commands. For Windows there is other plugin MinGW, that python(x,y) has but it's other difficulty to find he, that simulate linux plataform on windows.

I would like to convert python commands into C or C++ using Cython or Swig, I only would to convert that libraries.

Thank you if can help me

--
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.
cj | 29 Jun 09:22 2014
Picon

error pops out when run 'from mpl_toolkits.basemap import Basemap'

Hi,

import pandas error has been solved. You just should also install setuptools in Python(x,y) 2.7.6.1.

Another error happens:

When I run:

from mpl_toolkits.basemap import Basemap
I got:

File "C:\Python27\lib\site-packages\mpl_toolkits\basemap\__init__.py", line 26, in <module>
    from matplotlib.collections import LineCollection
  File "C:\Python27\lib\site-packages\matplotlib\collections.py", line 23, in <module>
    import matplotlib.backend_bases as backend_bases
  File "C:\Python27\lib\site-packages\matplotlib\backend_bases.py", line 50, in <module>
    import matplotlib.textpath as textpath
  File "C:\Python27\lib\site-packages\matplotlib\textpath.py", line 11, in <module>
    import matplotlib.font_manager as font_manager
  File "C:\Python27\lib\site-packages\matplotlib\font_manager.py", line 53, in <module>
    from matplotlib import ft2font
ImportError: DLL load failed: The specified module could not be found.

Thanks for your help.

-cj


--
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.
cj | 29 Jun 08:47 2014
Picon

Installed pandas in Python(x,y)-2.7.6.1.exe, error pops out

Hi,

I installed Numpy, Scipy, Matplotlib, pandas in Python(x,y)-2.7.6.1.exe, but when I run
import pandas
 unfortunately error pops out:
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "C:\Python27\lib\site-packages\pandas\__init__.py", line 44, in <module>
    from pandas.io.api import *
  File "C:\Python27\lib\site-packages\pandas\io\api.py", line 15, in <module>
    from pandas.io.gbq import read_gbq
  File "C:\Python27\lib\site-packages\pandas\io\gbq.py", line 10, in <module>
    import pkg_resources
ImportError: No module named pkg_resources
I can successfully run import numpy, scipy and matplotlib. Could anybody help? It'd be appreciated!

-cj


--
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.
SixString | 20 Jun 20:00 2014

Python(x, y) 2.7.7.0 request

I see that Python 2.7.7 is released.
When Python(x, y) 2.7.7.0 is released, please include Spyder 2.3.0rc.  It fixes many bugs in Spyder 2.2.5.  The most important for me is that int64 variables display in the Variable Explorer.
I note that the Anaconda distribution includes Spyder 2.3.0rc for all Python version variants.

--
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.
Amy Krug | 9 Jun 23:11 2014
Picon

Download of Python(x,y)-2.7.6.1.exe blocked by Antivirus

Hey, I wanted to download Python(x,y)-2.7.6.1.exe, but my Antivirus (avast free) blocked the download because of a Trojan Horse ("Win32:Dropper-gen [Drp]").
Does anybody else have this problem?
Thanks, Amy

--
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 | 4 Jun 10:48 2014
Picon

Python(x, y) 2.7.6.1 Released!

Hi All,


I'm happy to announce that Python(x, y) 2.6.6.1 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.

Looking forward - actual work on a Python 2.7 64bit version is underway. A Python 3.4.x version is next in line - this is based on current perceived users input. Help would be much appreciated - it will make the 3.4.x happen sooner.

Please note that WindowsXP is no longer tested or officially supported - It has officially followed Windows 2000 into retirement.

What's new in general:

  • The NTUA mirror is temporary unlisted until a FALSE malware issue is resolved with Chrome.
  • The installer was enhanced to support more command line arguments for easier unattended install -  See Advanced Install .
  • pip is modified to provide more information in the 'show' command:

  • MinGW was finally updated 4.8.1 as Python 2.7.6+ was fixed to support it.
  • All packages updated to their latest versions (at the time) - IPython, GDAL, OpenCV, Numpy, SciPy, ITK, sqlalchemy, Astropy, SWIG etc.
  • Support libraries version updated - libpng, webp, turbojpeg, openjpeg2000.
  • Packaging Bug fixes (OpenCV, console uninstall, etc).
  • PycURL now include the relevant curl executable.

New noteworthy packages:

  • ffnet - Feed-forward neural network solution for python.
  • PyMC - Markov Chain Monte Carlo sampling toolkit.
  • seaborn - a Python visualization library based on matplotlib.
  • PyAudio - Python bindings for PortAudio, the cross-platform audio I/O library.
  • pyOpenSSL - Python interface to the OpenSSL library
  • requests - a HTTP library, written in Python, for human beings.
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.
Gabi Davar | 28 May 16:39 2014
Picon

python(x,y) 64bit

It's on the table. Help will make it happen sooner.

--

-- 
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@...
To post to this group, send email to pythonxy@...
Visit this group at http://groups.google.com/group/pythonxy.
For more options, visit https://groups.google.com/d/optout.

Fabien | 6 May 16:37 2014
Picon

spyder fails to start

hello

I have a problem with spyder.
It fails to start.
I am under windows XP and pythonxy 2.7.6.0.
I ran in console mode. This screen is the traceback.
I haven't found this error whithin the support forum.

is anyone can help me ?

regards

Fabien

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