Giter VIP home page Giter VIP logo

Comments (3)

shawnmjones avatar shawnmjones commented on September 23, 2024

I have reproduced this...

# docker-compose run hypercane hc synthesize warcs -i archiveit -a 7760 -o South_Louisiana_Flood                                                                                           0
Starting hypercane_mongodb_1 ... done
/usr/local/lib/python3.7/site-packages/sklearn/externals/joblib/externals/cloudpickle/cloudpickle.py:47: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
  import imp
Traceback (most recent call last):
  File "/usr/local/bin/hc", line 105, in <module>
    sys.argv[3:])
  File "/usr/local/lib/python3.7/site-packages/hypercane/actions/synthesize.py", line 329, in synthesize_warcs
    args = process_input_args(args, parser)
  File "/usr/local/lib/python3.7/site-packages/hypercane/actions/synthesize.py", line 22, in process_input_args
    args = parser.parse_args(args)
  File "/usr/local/lib/python3.7/argparse.py", line 1749, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/local/lib/python3.7/argparse.py", line 1761, in parse_known_args
    args = list(args)
TypeError: 'Namespace' object is not iterable

from hypercane.

shawnmjones avatar shawnmjones commented on September 23, 2024

This issue does not happen in a clean Python virtualenv on macOS 10.15.5.

# hc synthesize warcs -i archiveit -a 7760 -o ~/tmp/South_Louisiana_Flood                                                                                                                  
2020-06-23 19:34:52,667 [INFO] hypercane.actions.synthesize: Starting generation of files from input
2020-06-23 19:34:52,668 [INFO] hypercane.identify: processing input for type archiveit
2020-06-23 19:34:52,668 [INFO] hypercane.identify: discovering mementos for input type archiveit
2020-06-23 19:34:57,815 [INFO] hypercane.identify: discovered 359 URIs
2020-06-23 19:34:57,815 [INFO] hypercane.actions.synthesize: discovered 359 URI-Ms from the input
2020-06-23 19:34:57,816 [INFO] hypercane.actions.synthesize: Output directory /Users/smj/tmp/South_Louisiana_Flood does not exist, creating...
2020-06-23 19:40:48,848 [INFO] hypercane.actions.synthesize: Done generating directory of files, output is at /Users/smj/tmp/South_Louisiana_Flood

It is definitely a problem with the Docker configuration.

from hypercane.

shawnmjones avatar shawnmjones commented on September 23, 2024

Like the stacktrace states, the problem is on line 22 of hypercane/actions/synthesize.py:

args = parser.parse_args(args)
args = test_input_args(args)
args = parser.parse_args(args)

There is a duplicate call to parser.parse_args. I do not know why I inserted it. I'm going to run some tests inside and outside Docker. It definitely fails in Docker, but works fine in macOS. ¯_(ツ)_/¯

from hypercane.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.