build.py fails for duplicate provide
See original GitHub issueHi all:
Blockly requires that closure-library
be present in a sister directory. This is kind of a bummer, vs. requiring it in as a dependency. Regardless, we got it going 😃. Thanks for great instructions!
However, if you run npm install
in closure-library
, then run python build.py
in blockly, it errors out.
$ python build.py
SUCCESS: msg/js/en.js
Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "build.py", line 162, in run
self.gen_core()
File "build.py", line 184, in gen_core
[os.path.join("core", "blockly.js")])
File "../closure-library/closure/bin/calcdeps.py", line 226, in CalculateDependencies
search_hash = BuildDependencyHashFromDependencies(deps)
File "../closure-library/closure/bin/calcdeps.py", line 196, in BuildDependencyHashFromDependencies
dep.filename))
Exception: Duplicate provide (goog.net.DefaultXmlHttpFactory) in (../closure-library/_node_modules/protractor/node_modules/selenium-webdriver/lib/goog/net/xmlhttp.js, ../closure-library/closure/goog/net/xmlhttp.js)
SUCCESS: blockly_uncompressed.js
It has scanned node_modules
when looking for dependencies. The resultant js errors out.
Tipskies?
Thanks!
Issue Analytics
- State:
- Created 8 years ago
- Comments:9 (7 by maintainers)
Top Results From Across the Web
How to fix error "Duplicated build" on "readthedocs"?
I ran into the same issue and after some research I found this pull request indicating that one just has to wait for...
Read more >How to remove duplicate packages from a failed yum transaction
After a failed yum transaction, yum-complete-transaction fails to complete and the duplicates are still present. yum fails with ...
Read more >Failure to install packages due to duplicate RECORD files
I have a recurring problem with PyCharm Community 2019.1 and attempts to install, or upgrade python packages using pip, both through the...
Read more >Hidden dangers of duplicate key violations in PostgreSQL and ...
The “duplicate key violates unique constraint” error notifies the caller that a retry is needed. This seems like an intuitive approach, ...
Read more >Error 'Duplicate Username' when you create a username
Error 'Duplicate Username' when you create a username · All Salesforce usernames are unique, for all users, across all Organizations (including Trial Orgs, ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I just asked, because I build “closure-builder” for another project which could easily handle the task. If there is enough interest for this I could provide a patch for the needed changes.
For more details see: https://www.npmjs.com/package/closure-builder
Closing as we’ve removed our closure-library dependency.