-
Notifications
You must be signed in to change notification settings - Fork 583
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
Cannot compile on Windows #6
Comments
Please ignore. I was able to compile and run the code, but had to manually copy all the modules within Arctic to the site-packages directory. Many thanks! |
Oh super! What did you have to do? We don't run this code on Windows here, so anything we can do to make this seamless would be good... |
Here are my steps:
[build]
Either way it seems to run now! |
Would be great to get this automated so we can have some windows eggs / wheels to upload to PyPI |
I am getting the same error message as beartastic ("fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory". I followed his steps but it didn't help. Any idea? Thanks. |
We don't technially require the native bits (they just provide parallel compression), you can run arctic without them as per: |
I had two problems getting up and running on Windows. The first was with the lz4 dependency. This was failing because the compile uses gcc specific command line arguments, causing the MSVC compile to fail. Not sure if I'm missing something, I've posed the question here. The second problem was the missing stdint.h mentioned above, this was affecting both the lz4 install and arctic. This header is missing from VS 2008, the version on which the Python 2.7 compiler is based, it is there later versions. I fixed this locally by just grabbing a version someone has kindly produced, see here. To make the arctic code portable you'd need to define the missing types. The stackoverflow question I just linked to gives an example. Equally, if you look at the lz4 code on PyPi your can see that the file lz4.c is implemented entirely in types that is defines based on compiler version, see the typedefs for BYTE, U16, etc. |
To further clarify @NickAltmann's points You can get the unofficial windows lz4 binary from here: http://www.lfd.uci.edu/~gohlke/pythonlibs/#python-lz4 Then for the stdint header issue:
Good to go! Thanks Nick |
Hi,
Then I have the wheel that I've tested on a new environment where i did install lz4 for compression. I hope it will work for you. I'm happy to help if any problem |
Thanks @spyamine, this was convenient and worked for me - needed to uncomment the line |
Happy to hear that!! I've comment it because I've already created the conda environment. |
another thing missing is timezone support in windows, see issue #43 |
@spyamine I'll try your instructions and see if i can build a Windows Wheel, if I can, I'll upload it to PyPI so people will be able to just install without compiling |
@Yoshi9143's instructions worked for me! |
@flaviodrt ok, I'll try his instructions and see if they work for me. Last time I tried, it did not work :( |
Setup for Anaconda 3 (Windows, Python 3.5, 64-bit):
arctic-1.50.0-cp35-cp35m-win_amd64.whl.zip |
@buhbuhtig thanks I'll try this today and upload a wheel if I can get it to work! |
@bmoscon If you have failed to install using the above instructions, please, check {Anaconda3 path}\Lib\distutils\cygwinccompiler.py file.
into:
Src: http://c-sharp-snippets.blogspot.de/2016/08/compiling-aspell-python.html |
Hi, thanks @buhbuhtig can you please build a version for python 2.7 ? |
Does your version support compression or not ?? Also how can we deactivate compression please ?? |
I don't think you can turn off compression. |
@spyamine Sorry, I don't use 2.7 version. |
$ pip install arctic-1.50.0-cp35-cp35m-win_amd64.whl Am I missing something..? I'm using Python 3.6.2 :: Anaconda custom (64-bit) on Win 8 / 64 bit using Cygwin |
pip install wheel
Em 3 de nov de 2017 4:48 PM, "taewookim" <notifications@github.com>
escreveu:
@buhbuhtig <https://github.com/buhbuhtig>
$ pip install arctic-1.50.0-cp35-cp35m-win_amd64.whl
arctic-1.50.0-cp35-cp35m-win_amd64.whl is not a supported wheel on this
platform.
Am I missing something..?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#6 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAE4THeNaWHCA9CRN3UpNE1LbnjBe4Wrks5sy2AAgaJpZM4E9Z3r>
.
|
Still getting the error $ pip install wheel $ pip install arctic-1.50.0-cp35-cp35m-win_amd64.whl |
latest version compiled in windows 10 |
1.55 and 1.56 compile and work fine on Windows. |
latest version compiled with VC++ 2015.3 v140 toolset for desktop (Visual Studio 2017 component): |
Hi can you please compile fir python 2.7 or indicate how to do it? |
The easiest solution for stdint on python 2 is to use one of the free versions of these. I do this here https://github.com/bashtage/randomgen/blob/master/randomgen/src/pcg32/pcg32.h |
I just compiled it on Windows/Python2.7/x64 without issue from Master https://github.com/bashtage/arctic/blob/py27-win/dist/arctic-1.64.0-cp27-cp27m-win_amd64.whl |
Cool @bashtage Thank you for sharing. You did not have any problem with the lz4 library for using compression ? |
No problems. I use https://www.microsoft.com/en-gb/download/details.aspx?id=44266 for compiling. |
@bashtage than you for the PR - are you happy to close this ticket now? |
AFAICT it builds correctly on Python 2.7, 3.5 and 3.6 Windows/x86_64 which should be enough to close this. It may not work on Win32 but I don't think it makes sense to put effort into 32 bit Windows. |
i tested this on windows. All I did was install python 3.6 and the visual studio compiler toolchain and it built without issue (on windows 10). |
I installed the recommended C++ Compiler for Python 2.7, however I can't seem to run the installer.
The fatal error I got is:
C1083: Cannot open include file: 'stdint.h': No such file or directory
Is it possible to release a compiled version of this?
The text was updated successfully, but these errors were encountered: