Hi, A few comments: - you really really want to use a scientific Python distribution to avoid these issues on Windows. see http://scipy.org/install.html - we used to build scipy .exe installers with mingw32 but don't do that anymore because it's just too much of a pain. IIRC the last release we did that for was 0.16.0, with the toolchain in https://github.com/numpy/numpy-vendor. - I don't recognize the error; looks not specific to recent changes in scipy so there's probably something in your environment not set up quite right.
Cheers, Ralf On Tue, Oct 18, 2016 at 8:18 PM, Shreyank Amartya < shreyank.amar...@itcinfotech.com> wrote: > Hi, > > > > I am trying install to theano which also requires numpy and scipy on > windows 7 with mingw32 compilers. > > I have successfully installed numpy using mingw32 but however when trying > to install scipy I get this error: > > > > Looking for python27.dll > > Building msvcr library: "c:\python27\libs\libmsvcr90.a" (from > C:\Windows\win > > sxs\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_ > none_750b37ff97f4f68b\ > > msvcr90.dll) > > objdump.exe: C:\Windows\winsxs\amd64_microsoft.vc90.crt_ > 1fc8b3b9a1e18e3b_9.0 > > .21022.8_none_750b37ff97f4f68b\msvcr90.dll: File format not recognized > > Traceback (most recent call last): > > File "<string>", line 1, in <module> > > File "c:\users\22193\appdata\local\temp\pip-build-d3f_pb\scipy\ > setup.py", > > line 415, in <module> > > setup_package() > > File "c:\users\22193\appdata\local\temp\pip-build-d3f_pb\scipy\ > setup.py", > > line 411, in setup_package > > setup(**metadata) > > File "c:\python27\lib\site-packages\numpy\distutils\core.py", line > 169, in > > setup > > return old_setup(**new_attr) > > File "c:\python27\lib\distutils\core.py", line 151, in setup > > dist.run_commands() > > File "c:\python27\lib\distutils\dist.py", line 953, in run_commands > > self.run_command(cmd) > > File "c:\python27\lib\distutils\dist.py", line 972, in run_command > > cmd_obj.run() > > File "c:\python27\lib\site-packages\numpy\distutils\command\install.py", > l > > ine 62, in run > > r = self.setuptools_run() > > File "c:\python27\lib\site-packages\numpy\distutils\command\install.py", > l > > ine 36, in setuptools_run > > return distutils_install.run(self) > > File "c:\python27\lib\distutils\command\install.py", line 563, in > run > > self.run_command('build') > > File "c:\python27\lib\distutils\cmd.py", line 326, in run_command > > self.distribution.run_command(command) > > File "c:\python27\lib\distutils\dist.py", line 972, in run_command > > cmd_obj.run() > > File "c:\python27\lib\site-packages\numpy\distutils\command\build.py", > lin > > e 47, in run > > old_build.run(self) > > File "c:\python27\lib\distutils\command\build.py", line 127, in run > > self.run_command(cmd_name) > > File "c:\python27\lib\distutils\cmd.py", line 326, in run_command > > self.distribution.run_command(command) > > File "c:\python27\lib\distutils\dist.py", line 972, in run_command > > cmd_obj.run() > > File "c:\python27\lib\site-packages\numpy\distutils\ > command\build_src.py", > > line 147, in run > > self.build_sources() > > File "c:\python27\lib\site-packages\numpy\distutils\ > command\build_src.py", > > line 164, in build_sources > > self.build_extension_sources(ext) > > File "c:\python27\lib\site-packages\numpy\distutils\ > command\build_src.py", > > line 323, in build_extension_sources > > sources = self.generate_sources(sources, ext) > > File "c:\python27\lib\site-packages\numpy\distutils\ > command\build_src.py", > > line 376, in generate_sources > > source = func(extension, build_dir) > > File "scipy\spatial\setup.py", line 35, in get_qhull_misc_config > > if config_cmd.check_func('open_memstream', decl=True, call=True): > > File "c:\python27\lib\site-packages\numpy\distutils\command\config.py", > li > > ne 312, in check_func > > self._check_compiler() > > File "c:\python27\lib\site-packages\numpy\distutils\command\config.py", > li > > ne 39, in _check_compiler > > old_config._check_compiler(self) > > File "c:\python27\lib\distutils\command\config.py", line 102, in > _check_co > > mpiler > > dry_run=self.dry_run, force=1) > > File "c:\python27\lib\site-packages\numpy\distutils\ccompiler.py", > line 59 > > 6, in new_compiler > > compiler = klass(None, dry_run, force) > > File "c:\python27\lib\site-packages\numpy\distutils\ > mingw32ccompiler.py", > > line 96, in __init__ > > msvcr_success = build_msvcr_library() > > File "c:\python27\lib\site-packages\numpy\distutils\ > mingw32ccompiler.py", > > line 360, in build_msvcr_library > > generate_def(dll_file, def_file) > > File "c:\python27\lib\site-packages\numpy\distutils\ > mingw32ccompiler.py", > > line 274, in generate_def > > raise ValueError("Symbol table not found") > > ValueError: Symbol table not found > > > > ---------------------------------------- > > Command "c:\python27\python.exe -u -c "import setuptools, > tokenize;__file__='c:\ > > \users\\22193\\appdata\\local\\temp\\pip-build-d3f_pb\\ > scipy\\setup.py';exec(com > > pile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', > '\n'), __f > > ile__, 'exec'))" install --record c:\users\22193\appdata\local\ > temp\pip-wxyrfu-r > > ecord\install-record.txt --single-version-externally-managed --compile" > failed w > > ith error code 1 in c:\users\22193\appdata\local\ > temp\pip-build-d3f_pb\scipy\ > > > > C:\Python27\Scripts> > > > > I realize this is due to some problem with resolving symbols in > python27.dll. Is there a workaround for this? > > I need this to work on this setup as this is my workstation at office and > I cannot install Ubuntu which would have been way easier. > > > > Things I have tried: > > I used to get an error while installing scipy for lapack/blas resources > not found, I was able to get through by downloading and compiling them from > source. > > I have tried to install scipy from http://www.lfd.uci.edu/~ > gohlke/pythonlibs/ and it does install scipy successfully but I get a > 64-bit compatibility error when I try to import theano. > > Please help as I’m stuck here. > > > > Thanks > > Shreyank > > > Disclaimer: This communication is for the exclusive use of the intended > recipient(s) and shall not attach any liability on the originator or ITC > Infotech India Ltd./its Holding company/ its Subsidiaries/ its Group > Companies. If you are the addressee, the contents of this e-mail are > intended for your use only and it shall not be forwarded to any third > party, without first obtaining written authorization from the originator or > ITC Infotech India Ltd./ its Holding company/its Subsidiaries/ its Group > Companies. It may contain information which is confidential and legally > privileged and the same shall not be used or dealt with by any third party > in any manner whatsoever without the specific consent of ITC Infotech India > Ltd./ its Holding company/ its Subsidiaries/ its Group Companies. > > _______________________________________________ > NumPy-Discussion mailing list > NumPy-Discussion@scipy.org > https://mail.scipy.org/mailman/listinfo/numpy-discussion > >
_______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@scipy.org https://mail.scipy.org/mailman/listinfo/numpy-discussion