Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ttpy on Windows #38

Open
michele-nazareth opened this issue May 31, 2017 · 5 comments
Open

ttpy on Windows #38

michele-nazareth opened this issue May 31, 2017 · 5 comments

Comments

@michele-nazareth
Copy link

Hello, I use Python on Windows and I would like to know how to install ttpy. Please could you help me?
Thank you for your attention.

@oseledets
Copy link
Owner

It is not easy since it requires compilation of associated Fortran library. In principle, it is possible, but requires a lot of special tricks and is not supported at the moment.

With best wishes,
Ivan.

@Bihaqo
Copy link
Contributor

Bihaqo commented Jun 5, 2017

You can also try TensorFlow version of Tensor Train toolbox. It is not yet tested on Windows but should work without tricks.
github.com/Bihaqo/t3f

@daskol
Copy link
Collaborator

daskol commented Dec 17, 2017

@oseledets It is possible to build ttpy wheels for specific platform on 'server side' with AppVeyor CI. AppVeyor provides suitable environment for building binaries for Windows. As wheel is built it could be pushed directly to repo releases. The every one can install package as following

pip install https://github.com/oseledets/ttpy/releases/download/v1.0/ttpy-1.0-cp36-none-win_amd64.whl

@Mitchux As the most motivated person you are welcome to contibute to this issue. That will be greate for whole community.

@polygnomnom
Copy link

Hi together! I don't know whether this issue has been solved in the meantime. Howsoever, I tried to install ttpy on Windows and Ubuntu recently. In both cases, I installed gfortran as Fortran Compiler (I also tried lfortran later on) with pip. But I always ended up with the following error (I inserted linebreaks for the sake of readability):

F90/x86-64  Flang - 1.5 2017-05-01: compilation aborted
error: Command "C:\Users\usrname\anaconda3\envs\tt-proj\Library\bin\flang.exe 
-O3 -IC:\Users\usrname\anaconda3\envs\tt-proj\Lib\site-packages\numpy\core\include 
-Ibuild\src.win-amd64-3.11\numpy\distutils\include 
-Ibuild/temp.win-amd64-cpython-311 -Ibuild/temp.win-amd64-3.11 
-Ibuild/temp.win-amd64-3.1 -Ibuild/temp.win-amd64-3.1 -IC:\Users\usrname\anaconda3\envs\tt-proj\include 
-IC:\Users\usrname\anaconda3\envs\tt-proj\Include -c -c tt\tt-fort\print\dispmodule.f90 
-o build\temp.win-amd64-cpython-311\tt\tt-fort\print\dispmodule.o 
-module build\temp.win-amd64-cpython-311 -Ibuild\temp.win-amd64-cpython-311" failed with exit status 1

All attempts of installing ttpy using pip were made in a completely new environment (numpy and cython installled) created with conda.
Using git, I faced the same problem. Do you know what this error means?

@daskol
Copy link
Collaborator

daskol commented Apr 18, 2023

It is pretty strange actually. The error is not very descriptive. Also, it says that ttpy is compiled with flang what could be either LLVM's flang and just flang. Anyway, none of flang's is supported.

I can suggest to use docker image as a workaround. Also, [Dockerfile] can shed light on how to build and install ttpy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants