galaxyproject / bioblend Public
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 upload file to Galaxy #271
Comments
|
Any chance you have access to the corresponding Galaxy logs? |
|
@nsoranzo How can I get access to the logs? Not sure I understand what you mean (I am quite new to Galaxy) |
|
Sorry, I didn't notice you are using the public Galaxy server usegalaxy.org . You may try to start a local Galaxy server on your workstation and run the BioBlend upload against that to see if it works there. If not, you can then see the corresponding Galaxy logs. |
|
So are you saying my code looks ok? I haven't made a mistake. Not sure I am in position to install a local Galaxy server atm.. Any chance I can still access the logs you are mentioning? |
It does look OK, unless I am missing something. You can look at the test code at https://github.com/galaxyproject/bioblend/blob/master/bioblend/_tests/TestGalaxyTools.py#L58
I surely doubt that. Starting a test Galaxy server is quite easy, see https://galaxyproject.org/admin/get-galaxy/ |
|
I might set up a server eventually, but in the meantime, I have done more testing and found out that I can upload my file (called counted.txt). This file is 2.2MB and has 51827 lines. I did a test and noticed that if I just take the first say 175 lines (thereby drastically reducing the size of the file), I can upload my file. So is there a limit in file size? I also happened to have seen that Galaxy is reporting some slow upload speeds on their European server and are also reporting problems on the .org server on Twitter today. Is it possible this is not related to BioBlend at all? |
|
Without access to the Galaxy server logs it is basically impossible to tell, unfortunately. |
|
I think I have found the issue without needing to install the a Galaxy instance. I was using Python 3.6 (within an Anaconda environment). I switched to Python 2.7 (also within an Anaconda environment) and my uploadings now all work. So not sure if this is a bug or something? I have a question regarding Bioblend in general? Are you still planning on having the Bioblend object-ortiented interface replacing the old modules (i.e. bioblend.galaxy.objects replacing all bioblend.galaxy.GalaxyInstance/HistoryClient/ToolClient), as was suggested in the 2014 paper on Bioblend? I find the OO interface harder to use (due to not many people having posted on it) so i am sticking to the original modules for now. |
I'm happy you workarounded the issue, but this is surely surprising! It would be interesting to compare the list of packages installed in the 2 conda environments, if you still have the first around.
BioBlend.objects is still catching up in term of functionalities with respect to the function-oriented BioBlend, and usually new stuff is first developed for the latter and eventually added to the OO one later. So no worries! |
|
(Apologies I accidentally clicked on "Close issue" by mistake!) Here are the 2 list of packages (I used the command you suggested but I saved them to .txt files instead of .yml files as I cannot upload yml files to GitHub. At first glance I'm not sure what to look for I have to admit. I should however add a bit of context:
Bottom line is both environments now have the same pip-installed Bioblend version and my last uploading tests were performed and compared using the same pip-installed BioBlend. I hope that makes sense. Going back to the OO interface, thanks for your answer. I guess I just wanted to check that BioBlend as a whole is still in active development. Is that right? I will probably stick to the original API modules for now. |
|
@mmeier93 Thanks a lot for following up on this! Something that may cause your issue is that in the 3.6 Conda env there is a quite old requests-toolbelt 0.5.0 (latest is 0.8.0) . Can you try to update it (either through conda or uninstalling it and re-installing it via pip) and see if that solves the original problem?
Not in super-active development (43 commits last year), but surely maintained. |
|
That solved it! I uninstalled requests-toolbelt (which I guess was also installed with Bioconda when I originally installed Bioblend) and reinstalled with pip and it now all works. Thanks so much! Ok great! |
|
Thanks again for the feedback! I'll raise the minimum requests-toolbelt version in setup.py to prevent this to happen in the future. |
|
Hi! I think I'm hitting this from a conda installation of bioblend: it doesn't happen on other setups where I don't use conda. The environment, where I only installed bioblend, looks like this: so I guess that the bioconda entry for bioblend is still using an older version of requests-toolbelt. |
|
Doing on the same environment gets a newer version of toolbelt, and with that it works, great! |
|
@pcm32 Should be fixed by bioconda/bioconda-recipes#14452 |
|
pfff... you beat me... |
|
Sorry Can you check the new bioblend-0.12.0-py_1 ? |
I am trying to use BioBlend to upload a file (locally stored on my computer). I have tried doing so in 2 ways:
(1) Using the original Bioblend API
(2) Using the OO BioBlend API
In both cases, I obtain the same error (at least it seems). Here is my code:
Using original BioBlend API (bioblend.galaxy):
Using OO BioBlend API (bioblend.galaxy.objects):
In both code version, I have the same problem: I can upload a simple file called space-delimited example.txt which looks like this below. On the Galaxy GUI, I can see this file and it says “format: txt” and “uploaded txt file”.
However, I cannot upload my counted.txt file. This file is a tab delimited file, which has 51,827 lines. It represents a matrix of counts I want to perform DE analysis on. It looks like so (first few lines) (not sure why the file shows up in such a weird manner on the website but it does look normal on my computer)
The error I get in my terminal is as follows (the upload_file commands takes a min or so before the error appears). There are slightly different for both codes but they both in a ConnectionError: (‘Connection aborted.’, RemoteDisconnected(‘Remote end closed connection without response’,)) error.
I have managed to upload this counted.txt file to the Galaxy GUI successfully. It says “format: tabular” and “uploaded tabular file”. I have even manage to run some analyses on it. This file is 2.1 MB in size.
I am very lost as to what is causing this error. Any help would be deeply appreciated.
The text was updated successfully, but these errors were encountered: