question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

build.py fails for duplicate provide

See original GitHub issue

Hi 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:closed
  • Created 8 years ago
  • Comments:9 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
MarkusBordihncommented, Dec 5, 2015

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

0reactions
samelhusseinicommented, Oct 17, 2019

Closing as we’ve removed our closure-library dependency.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found