-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #134 from UOA-FSAE/fix_requirements_file
fixed requirements file and updated package dependencies for rosdep
- Loading branch information
Showing
19 changed files
with
259 additions
and
328 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/home/tanish/venvs/fix_requirements_file/bin/python3 | ||
from progress.bar import IncrementalBar | ||
import sys | ||
import subprocess | ||
|
||
def install(package): | ||
result = subprocess.run([sys.executable, "-m", "pip", "install", "--progress-bar","on", package], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) | ||
return result.returncode | ||
|
||
def main(): | ||
# read in all packages | ||
with open("requirements.txt", 'r') as file: | ||
packages = [line.strip() for line in file] | ||
|
||
# progress bar | ||
error_free_packages = [] | ||
errored_packages = [] | ||
pack_len = len(packages) | ||
with IncrementalBar('Processing', max=pack_len) as bar: | ||
for i,package in enumerate(packages): | ||
exit_code = install(package) # install package | ||
if exit_code != 0: | ||
print(f"\npackage {package} failed at line {i+1}") | ||
errored_packages.append(package) | ||
else: | ||
error_free_packages.append(package) | ||
bar.next() | ||
|
||
# write new file | ||
with open("requirements_error_free.txt", "w") as file: | ||
for package in error_free_packages: | ||
file.write(package+"\n") | ||
with open("requirements_errored.txt", "w") as file: | ||
for package in errored_packages: | ||
file.write(package+"\n") | ||
|
||
if __name__ == "__main__": | ||
main() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
action-msgs==1.2.1 | ||
actionlib-msgs==4.2.3 | ||
ament-index-python==1.4.0 | ||
ament-package==0.14.0 | ||
angles==1.15.0 | ||
appdirs==1.4.4 | ||
argcomplete==1.8.1 | ||
attrs==21.2.0 | ||
bcrypt==3.2.0 | ||
beautifulsoup4==4.10.0 | ||
beniget==0.4.1 | ||
blinker==1.4 | ||
Brotli==1.0.9 | ||
builtin-interfaces==1.2.1 | ||
certifi==2020.6.20 | ||
chardet==4.0.0 | ||
click==8.0.3 | ||
colorama==0.4.4 | ||
composition-interfaces==1.2.1 | ||
cryptography==3.4.8 | ||
cv-bridge==3.2.1 | ||
cycler==0.11.0 | ||
decorator==4.4.2 | ||
diagnostic-msgs==4.2.3 | ||
distro==1.7.0 | ||
docopt==0.6.2 | ||
docutils==0.17.1 | ||
domain-coordinator==0.10.0 | ||
empy==3.3.4 | ||
example-interfaces==0.9.3 | ||
fasteners==0.14.1 | ||
flake8==4.0.1 | ||
fonttools==4.29.1 | ||
fs==2.4.12 | ||
future==0.18.2 | ||
gast==0.5.2 | ||
geometry-msgs==4.2.3 | ||
html5lib==1.1 | ||
httplib2==0.20.2 | ||
idna==3.3 | ||
importlib-metadata==4.6.4 | ||
iniconfig==1.1.1 | ||
interactive-markers==2.3.2 | ||
jeepney==0.7.1 | ||
keyring==23.5.0 | ||
kiwisolver==1.3.2 | ||
lark==1.1.1 | ||
laser-geometry==2.4.0 | ||
launchpadlib==1.10.16 | ||
lazr.restfulclient==0.14.4 | ||
lazr.uri==1.0.6 | ||
lifecycle-msgs==1.2.1 | ||
lockfile==0.12.2 | ||
lxml==4.8.0 | ||
macaroonbakery==1.3.1 | ||
Mako==1.1.3 | ||
map-msgs==2.1.0 | ||
MarkupSafe==2.0.1 | ||
matplotlib==3.5.1 | ||
mccabe==0.6.1 | ||
monotonic==1.6 | ||
more-itertools==8.10.0 | ||
mpi4py==3.1.3 | ||
nav-msgs==4.2.3 | ||
netifaces==0.11.0 | ||
numpy==1.24.2 | ||
oauthlib==3.2.0 | ||
olefile==0.46 | ||
osrf-pycommon==2.0.2 | ||
packaging==21.3 | ||
paramiko==2.9.3 | ||
pexpect==4.8.0 | ||
Pillow==9.0.1 | ||
pipreqs==0.4.11 | ||
pluggy==0.13.0 | ||
ply==3.11 | ||
protobuf==3.12.4 | ||
psutil==5.9.0 | ||
ptyprocess==0.7.0 | ||
py==1.10.0 | ||
pycodestyle==2.8.0 | ||
pydocstyle==6.1.1 | ||
pydot==1.4.2 | ||
pyflakes==2.4.0 | ||
Pygments==2.11.2 | ||
PyJWT==2.3.0 | ||
pymacaroons==0.13.0 | ||
PyNaCl==1.5.0 | ||
pyparsing==2.4.7 | ||
PyQt5==5.15.6 | ||
PyQt5-sip==12.9.1 | ||
pyRFC3339==1.1 | ||
pyserial==3.5 | ||
pytest==6.2.5 | ||
python-dateutil==2.8.1 | ||
pythran==0.10.0 | ||
pytz==2022.1 | ||
pyxdg==0.27 | ||
rcl-interfaces==1.2.1 | ||
reportlab==3.6.8 | ||
requests==2.25.1 | ||
resource-retriever==3.1.1 | ||
rmw-dds-common==1.6.0 | ||
roman==3.3 | ||
rosgraph-msgs==1.2.1 | ||
rosidl-generator-py==0.14.4 | ||
rosidl-runtime-py==0.9.3 | ||
rpyutils==0.2.1 | ||
scipy==1.8.0 | ||
SecretStorage==3.3.1 | ||
sensor-msgs==4.2.3 | ||
sensor-msgs-py==4.2.3 | ||
shape-msgs==4.2.3 | ||
six==1.16.0 | ||
snowballstemmer==2.2.0 | ||
soupsieve==2.3.1 | ||
spidev==3.1 | ||
sros2==0.10.4 | ||
statistics-msgs==1.2.1 | ||
std-msgs==4.2.3 | ||
std-srvs==4.2.3 | ||
stereo-msgs==4.2.3 | ||
sympy==1.9 | ||
toml==0.10.2 | ||
trajectory-msgs==4.2.3 | ||
turtlesim==1.4.2 | ||
typing_extensions==4.5.0 | ||
ufoLib2==0.13.1 | ||
unicodedata2==14.0.0 | ||
unique-identifier-msgs==2.2.1 | ||
urllib3==1.26.5 | ||
visualization-msgs==4.2.3 | ||
wadllib==1.3.6 | ||
webencodings==0.5.1 | ||
xdg==5 | ||
yarg==0.1.9 | ||
zipp==1.0.0 | ||
numpy | ||
opencv-python | ||
opencv-contrib-python |
Oops, something went wrong.