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
DeLFT: packages are not available from conda channels #644
Comments
Dear @andrei-volkau my bad, this requirement files is old and I've stopped using it some time ago, but I forgot to update the documentation. The best solution so far I found is the following:
Could you give it a try? Conda gave me other problems on Linux, reason why I install delft via pip now |
Hi @lfoppiano ! Thank you for the comments!
Yeah, I created the conda env.
Yeah, I checked that. Thank you. I am using pip inside the conda environment.
I installed packages from requirements.txt I installed jep also since jep is missing there. I have a kind of failure you was facing in this thread. It looks like such a kind of failure should be solved while doing the following stuff
I did that. No luck. I am using Ubuntu 16.04 (AWS EC2 instance). I am using Python3.6. All of the dependencies from requremnts.txt are successfully installed as a part of the conda virtual environment. The virtual environment was activated before running ./gradlew run I am using 0.6.1 version of GROBID. I was using a regular python virtual environment as well in this issue. I faced the same error as shown on the screenshot. I am sure that you was able to run GROBID+DELFT on Linux somehow. Could try to formulate some ideas regarding approaching the issue? |
Dear @andrei-volkau the sigterm there is frigthening but just a consequence of some previous error. In the grobid-service.log I see:
AFAIK the problem is coming from tensorlfow:
and in particular
Something is wrong with your tensorflow initialisation. Can you run delft wihtout problems, using the same environment? For example could you run |
Hi @lfoppiano!
Yes, I was using I am sending a screenshot containing the output of Unfortunately, I still experience an error. Could you try to look into logs, please? |
@lfoppiano Let me provide information regarding the steps I used to set up everything. Step 1. Download grobid Step 2. Create conda env Step 3 Change config file as shown below @kermitt2 was able to suggest the following points. Please see the screenshot below. I was able to try them also. No luck. The above ideas are from this thread I am using Python3.6. The virtual environment was activated before running The value of JAVA_HOME variable is I am using Ubuntu 16.04 (AWS EC2 instance). t2 medium instance (4GB RAM, 2 vCPUs) |
Dear @andrei-volkau, I think now it's just a matter of using jep 3.9.0 as the error you see seems related to that. could you send the result of Regards |
I'm sending you the parameters of my environment. I configured tensorflow to work with CPU: See my pip environment:
here the conda list (In this environment I've installed most of the packages with conda):
My jep version is the old one:
Let me know if you need more information, but in your case you should maybe try downgrade the jep version on your python environment. |
With the latest delft version (which I haven't updated) you should install 'truecase' as well, if I'm not mistaken. |
Hi @lfoppiano! I am sorry for the late reply. Thank you very much for the lists of packages! Let me please take my time to carefully install the packages needed. I hope to come back on weekends. I will try to use jep 3.8.2. Thank you. |
Hi @lfoppiano!
Yes, that is mentioned in requirements.test.txt. I am using the requirements.test.txt. So 'truecase' was installed. I did all of the stuff from the very beginning. I mean that installed DeLFT/GROBID using a new EC2 instance as per instructions. Thank you for sending your
My environment looks pretty similar if I am not mistaken.
I am using I still experience an issue. Could you please take a look at the logs? Thank you very much in advance for any hints! |
OK, I've been in this situation and I remember I needed to find a way to understand which model is actually causing the issue. Could you please
And try again, and send the log? we are close to the solution ;-) |
Hi @lfoppiano, thank you! I am sending you the logs. I experienced the same error. I am using |
@andrei-volkau thanks. As of now I'm trying to figure out what is not working. I pushed some more logging information. could you update(git pull) and try again? |
Hi @lfoppiano, thank you! Sorry for my late reply. I am sending you the logs. I am using the latest |
@andrei-volkau are you sure you activate the conda environment? here the log says it cannot find jep Could you check and re-try? |
@lfoppiano Sorry, I forgot to do that. I am sending you the correct logs. |
@andrei-volkau thanks. No need to send the screenshots. The important part of the log is before. However from your log I can see only
Are you sure the setup is correct? |
@lfoppiano I forgot to specify one of two paths in the GROBID setting file. I mean either DELFT path or DELFT env path. I do not remember which one. Silly mistake as the previous one. Anyway, thank you for your patience! The following logs are for 100% correct setup. |
@andrei-volkau sorry, there is still something not clear.. are you sure you pull the latest version? |
@lfoppiano Sure! I am sending that. Thank you.
|
@andrei-volkau I'm sorry I could not find time to look in your issue. I'm going to work on the #662 so that we can solve the issue in a clean way. |
@lfoppiano I was able to successfully run GROBID with DeLFT while following step-by-step instructions. I am closing the issue because of that. Thank you for the great support along the way! |
I have a question regarding creating a conda env in case DeLFT. The documentation provides the following command.
conda create --name grobidDelft --file requirements.conda.delft.cpu.txt
So we have the following error.
It looks like those packages are not really available through any conda channels. It looks like such packages need to be installed using pip while having env activated. Am I right?
@lfoppiano I would appreciate your thought regarding the problem if possible. Thank you in advance for the info!
The text was updated successfully, but these errors were encountered: