Skip to content
This repository was archived by the owner on Jun 25, 2020. It is now read-only.

Fix python3 github chunked download & Mock server tar test - #141

Merged
clalancette merged 3 commits into
vcstools:masterfrom
tkruse:mock_server_tar_test
Jan 7, 2019
Merged

clalancette merged 3 commits into
vcstools:masterfrom
tkruse:mock_server_tar_test

Conversation

@tkruse

@tkruse tkruse commented Sep 13, 2018

Copy link
Copy Markdown
Contributor

this includes and supercedes #140
@kartikmohta: plz review the testcode changes

tkruse and others added 2 commits September 13, 2018 20:29
…te to file

Instead of using `resp.fp`, directly use the response object to write data to
file. Using `resp.fp` adds some extra data to the written file in Python 3 which
is obviously undesired.
@tkruse
tkruse force-pushed the mock_server_tar_test branch from 770d2ec to d2d15c9 Compare September 13, 2018 11:58
@kartikmohta

Copy link
Copy Markdown

@tkruse Looks great! Thanks for putting in the effort to add the tests.

@tkruse

tkruse commented Sep 15, 2018

Copy link
Copy Markdown
Contributor Author

Feel free to ask for votes on this issue in the ros forums if you believe this should be fixed urgently. I don't know how many users are affected by this bug.

@tkruse tkruse changed the title Mock server tar test Fix python3 github chunked download & Mock server tar test Oct 6, 2018
@ShreyasSkandan

Copy link
Copy Markdown

I'm trying to install ROS using wstools and I'm facing the same problem. I'm not sure how to fix this problem since I didn't explicitly install vcstools.

I run the following commands:
rosinstall_generator ros_comm --rosdistro melodic --deps --tar > melodic-ros_comm.rosinstall wstool init -j8 src melodic-ros_comm.rosinstall

And get a bunch of errors like
[genmsg] Fetching https://github.com/ros-gbp/genmsg-release/archive/release/melodic/genmsg/0.5.11-0.tar.gz (version genmsg-release-release-melodic-genmsg-0.5.11-0) to /home/nvidia/ros_py35/src/genmsg ERROR [vcstools] Tarball download unpack failed: file could not be opened successfully[/vcstools] ERROR [vcstools] Tarball download unpack failed: file could not be opened successfully[/vcstools] ERROR [vcstools] Tarball download unpack failed: file could not be opened successfully[/vcstools] [cmake_modules] Done.
and
Error processing 'std_msgs' : [std_msgs] Checkout of https://github.com/ros-gbp/std_msgs-release/archive/release/melodic/std_msgs/0.5.11-0.tar.gz version std_msgs-release-release-melodic-std_msgs-0.5.11-0 into /home/nvidia/ros_py35/src/std_msgs failed.

I'm not sure if the two are related but this thread seems relevant to my issue. Any help is appreciated.

@tkruse

tkruse commented Nov 29, 2018

Copy link
Copy Markdown
Contributor Author

You'd need to install vcstools and wstool from source, using the branch of the fix.

mkvirtualenv wstool
git clone https://github.com/tkruse/vcstools
cd vcstools
git checkout mock_server_tar_test
python setup.py develop
cd ..
git clone https://github.com/vcstools/wstool
cd wstool
python setup.py develop
wstool --help

Also feel free to suggest a new release on ros-users.

@ShreyasSkandan

Copy link
Copy Markdown

You'd need to install vcstools and wstool from source, using the branch of the fix.

mkvirtualenv wstool
git clone https://github.com/tkruse/vcstools
cd vcstools
git checkout mock_server_tar_test
python setup.py develop
cd ..
git clone https://github.com/vcstools/wstool
cd wstool
python setup.py develop
wstool --help

Also feel free to suggest a new release on ros-users.

Fantastic, it works now. Thanks!

@ffurrer

ffurrer commented Dec 5, 2018

Copy link
Copy Markdown

also worked for me, thanks :)

@130s

130s commented Dec 18, 2018

Copy link
Copy Markdown

This has got sufficient upvotes to move forward IMO.

@130s

130s commented Dec 27, 2018 •

Copy link
Copy Markdown

I believe @tkruse is the main maintainer. This is his PR but @kartikmohta was asked for the review and I think he already approved #141 (comment). Without knowing the review policy on this repo, I think this is ready for merge.

#144 (comment) suggests that this PR might block CI for other PRs on this including #144 (and #144 has been causing issues in our team every day).

Thank you!

@tkruse

tkruse commented Dec 28, 2018

Copy link
Copy Markdown
Contributor Author

@130s I have never released this repo. If you can, feel free to merge.

@130s

130s commented Dec 28, 2018

Copy link
Copy Markdown

@tkruse I see. Then, I don't have a write access.

@tfoote @wjwwood You two are the most active committers. #77 makes wstool hard to use in some situation. #144 is suggested to fix that. Then, #144 (comment) suggests that this PR should be merged first. Could any of you can take care of these PRs?

@tkruse

tkruse commented Jan 1, 2019

Copy link
Copy Markdown
Contributor Author

@130s : It seems I can merge PRs, though I usually did not. So if you know how to release, I am willing to do the merge while I can.

@tfoote tfoote left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me. The added tests are great. I'll leave it to @clalancette to merge.

@130s

130s commented Jan 7, 2019

Copy link
Copy Markdown

Friendly ping @clalancette for the review.

@clalancette clalancette left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me, and the new tests are great. Merging, thanks.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants