-
Notifications
You must be signed in to change notification settings - Fork 119
compiling error: Error compiling Cython file #346
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
Comments
@hbkunn Have you tried just using the Vagrant environment (see https://github.com/DigitalSlideArchive/HistomicsTK/blob/master/ansible/README.rst)? Usually that is the easiest way to get everything installed. |
@manthey still I got this error $ sudo python deploy_docker.py start |
@manthey I just wanna use it as a Python toolkit. Is there an alternative way to avoid messing around with Docker? |
https://stackoverflow.com/questions/42102656/cython-compile-error-is-not-a-valid-module-name according to this, I delete __ init__.py then it's installed successfully. |
thank you very much! |
I got this same issue. |
Is this workaround still up to date? I want to try it HistomicsTK but struggling to get it running at the moment. I tried to install in editable and non-editable mode. The installation in editable mode leads to some errors with girder and the latter has problems with Cython or CMake whatsoever. Removing the init.py file and/or re-activating my virtualenv didn't help. |
@cklat Did you try this in the Vagrant or outside of it? Did you use girder-install to install HistomicsTK (which installs histomicstk in editable mode)? |
@manthey I tried to install it as a Python-toolkit, so not in Vagrant. I didn't use girder-install, I strictly followed the installation instructions on the doc page (https://digitalslidearchive.github.io/HistomicsTK/installation.html) I first encountered the problem with girder for which I opened an issue in the large_image git as I assumed there was some problem with large_image and girder (see girder/large_image#300). But it turns out the installation of large_image is fine and that the installation of HistomicsTK seems to introduce conflicts between all those packages or so. Anyway, installing all the packages in editable or non-editable mode doesn't help and the workaround mentioned here doesn't help either, unfortunately. |
Assuming that you installed large_image in non-editable mode, the instructions at https://digitalslidearchive.github.io/HistomicsTK/installation.html will work (I just tried them in a clean Ubuntu 18.04 docker). If you see a cmake error (such as cmake not found), it is because cmake is installed via pip (if it isn't present), and gets placed at See this example: https://gist.github.com/manthey/3fd17ce76ef01243b976137570cd6628 |
Yes, I installed large_image in non-editable mode but I'm still not able to get it running. Installing HistomicsTK in editable mode importing will fail because girder could not be found. Installing HistomicsTK in non-editable mode gives me an cmake-related error something about Ninja, like so: #362 (the longer error output). If it makes any difference, I'm trying to run it on osx. I tried to install cmake via pip and via brew. No difference. |
I'm actually familiar with how things get installed on osx. Do you have a |
No, I didn't have a I also tried to give it try from beginning with a clean virtual env, that is installing openslide, then large_image and then again histomicstk. Still, no changes. In fact, nothing gets placed into the |
I'm not familiar enough with OSX to help further. I think if you installed cmake and its dependencies, it would work. We have relatively short term plans to make HistomicsTK directly pip installable. If you can't get it working, can you use a docker deployment? |
A colleague of mine reported similar error outputs on his windows machine, also something about girder is missing and other. He cannot get it run either, unfortunately. I haven't worked with docker yet, so I'm not sure if I know how to use it and can give you a reasonable feedback. If you are planning to release it via pip the next couple days (maybe weeks), I will definitely try it then. |
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-JlTvBX-build/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-HC5cFs-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-JlTvBX-build/
$ which cython
~/.local/bin/cython
$ cython --version
Cython version 0.25.2
It's so painful to get the environment right... It's just numpy, cython, etc. There's no reason to make things so complicated. And I still cannot install this so long that I've tried couples of days trying to get it right. Can you help me? It seems Cython is detected and other dependences are also correctly installed.
The text was updated successfully, but these errors were encountered: