Content was moved to https://github.com/tungstenfabric/tf-webui-third-party
juniper / contrail-webui-third-party Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
Content was moved to https://github.com/tungstenfabric/tf-webui-third-party
Getting below exception while fetching the package for contrail build
root@salim:~/salim# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS"
python3 third_party/fetch_packages.py third_party/fetch_packages.py:139: SyntaxWarning: "is not" with a literal. Did you mean "!="? if ret is not 0: Traceback (most recent call last): File "third_party/fetch_packages.py", line 307, in <module> main() File "third_party/fetch_packages.py", line 280, in main ProcessPackage(object) File "third_party/fetch_packages.py", line 182, in ProcessPackage if not PlatformRequires(pkg): File "third_party/fetch_packages.py", line 170, in PlatformRequires info = PlatformInfo() File "third_party/fetch_packages.py", line 143, in PlatformInfo (distname, version, _) = platform.dist() AttributeError: module 'platform' has no attribute 'dist'
Hi, i try to install contrail web UI.
and when i run the instalation tutorial
make fetch-pkgs-dev make dev-env REPO=webController
I get some error. I this the error is in the fetch_packages in line 92
Traceback (most recent call last):
File "../contrail-webui-third-party/fetch_packages.py", line 354, in
main(xmlfile)
File "../contrail-webui-third-party/fetch_packages.py", line 334, in main
ProcessPackage(object)
File "../contrail-webui-third-party/fetch_packages.py", line 314, in ProcessPackage
ApplyPatches(pkg)
File "../contrail-webui-third-party/fetch_packages.py", line 92, in ApplyPatches
proc = subprocess.Popen(cmd, stdin = fp)
File "/usr/lib64/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
make: *** [fetch-pkgs-dev] Error 1
this is the fungtion that cause the error, anyone know?
def ApplyPatches(pkg):
stree = pkg.find('patches')
if stree is None:
return
for patch in stree.getchildren():
cmd = ['patch']
if patch.get('strip'):
cmd.append('-p')
cmd.append(patch.get('strip'))
if _OPT_VERBOSE:
print "Patching %s <%s..." % (' '.join(cmd), str(patch))
if not _OPT_DRY_RUN:
fp = open(str(patch), 'r')
proc = subprocess.Popen(cmd, stdin = fp)
proc.communicate()
this is not the first error i get when running this python file.
the first error is in the
def getZipDestination(tgzfile):
cmd = subprocess.Popen(['unzip', '-t', tgzfile],
stdout=subprocess.PIPE)
(output, _) = cmd.communicate()
lines = output.split('\n')
for line in lines:
print line
m = re.search(r'testing:\s+([\w-.]+)/', line)
if m:
return m.group(1)
return None
i fix that error by install unzip packages.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.