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

Problems with installation #2

Open
NstVasileva opened this issue Aug 20, 2019 · 9 comments · Fixed by #4
Open

Problems with installation #2

NstVasileva opened this issue Aug 20, 2019 · 9 comments · Fixed by #4

Comments

@NstVasileva
Copy link

Hi! You say that imnet now works with python3, but I can't install imnet using pip3, for example, because for some reason python2 and python3 conflict on our server and python2, in particular pip2, doesn't work. So, won't I have a possibility to install it via pip3?

@rokroskar
Copy link
Owner

Hi @AnastasiaRein, apologies that your issue went unnoticed! Did you manage to resolve the installation problem in the meantime?

@dormeight
Copy link

dormeight commented Jun 4, 2020

Hi everyone, I also tried to install the package with pip in both python3.6 and python 2.7.18 environment. The install process is quite successful. However, when I try to import imnet , exception came out: "No module named process_strings_cy" . after some searching, I get that this is a cython problem. So the right way to install the package is first to download it and open the folder, then in the terminal run : python setup.py build_ext --inplace && python setup.py install. After this, you can use the package either in python3 or python2 environment. I hope this may be helpful!

@rokroskar
Copy link
Owner

Hi @dormeight thanks for the comment - I tried to fix this by adding cython explicitly as a build dependency. It installs and imports fine for me now on python 3.7. Can you try it with

pip install git+https://github.com/rokroskar/imnet.git@002-fix-install#egg=imnet

@dormeight
Copy link

Hi @rokroskar, it works perfectly now

@rokroskar
Copy link
Owner

great, thanks for checking @dormeight! I will merge this PR then and make another release.

@eirikhoye
Copy link

Hi! I'm interested in running imnet on our local high security (highly restricted install privileges) computing cluster through a singularity container. This is the recipe script i used, building with singularity 2.4:

Bootstrap: docker
From: ubuntu:16.04

%post
apt-get -y update
apt-get -y upgrade
apt -y install python3
apt -y install curl
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python3 get-pip.py
pip install imnet

However I get these error messages when building reaches the "pip install imnet":
"building wheel for imnet (setup.py) ... error
...
ERROR: Failed building wheel for imnet"

and

"Building wheel for python-Levenshtein (setup.py) ... error
...
ERROR: Failed building wheel for python-Levenshtein"

Of note, this only happens when building in the singularity container, not when installing on my mac locally, where pip install imnet runs fine.

(Also, I found that there are some scripts that uses the python2 print without parentheses, and crashes when running with python3. Though some other scripts appear to use python3, though I managed to get it to run by adding parentheses manually :-) )

Kind regards,
Eirik

@rokroskar rokroskar reopened this Jul 7, 2020
@rokroskar
Copy link
Owner

Hi @eirikhoye thanks for reporting this - turns out I made a mistake in the last release and didn't properly include the setup requirements. Could you try again? I just made a new release 0.2.1 and tried installing it using docker like this:

docker run --rm -ti python pip install imnet

This works without any errors on my machine.

@eirikhoye
Copy link

Thanks, the command you used also ran without errors on my machine, so I suspect the difficulties are on my end. Thank you for your assistance! :-)

@rokroskar
Copy link
Owner

I don't have singularity set up here - could you give it a try in your singularity image build and let me know how it goes?

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

Successfully merging a pull request may close this issue.

4 participants