Comments (3)
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.
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.
Like the stacktrace states, the problem is on line 22 of hypercane/actions/synthesize.py:
hypercane/hypercane/actions/synthesize.py
Lines 18 to 22 in e9dff85
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)
- Finish Hypercane GUI script for report action HOT 2
- Finish Hypercane GUI scripts for filter include-only and exclude actions HOT 2
- Create Hypercane GUI script for identifying Memento objects based on collection IDs HOT 2
- Create a Hypercane GUI convenience script that runs sample, report, and synthesize commands for a Raintale story HOT 1
- Create a Linux install for Hypercane HOT 1
- Replace Hypercane GUI's Download button HOT 8
- Remove Wooey's Re-run and Resubmit buttons from the Hypercane GUI
- Create a Linux installer for Hypercane HOT 2
- Update raiseversion.sh to also update the version and date-released on CITATION.cff
- Fix poor responsiveness for script placement in GUI HOT 1
- Hypercane does not tell the user when the HC_STORAGE_CACHE variable has not been set HOT 1
- Write Documentation for Hypercane WUI HOT 2
- Hypercane WUI suspends rendering in Firefox
- Move Hypercane from MongoDB to PostgreSQL for storage and caching
- Add provenance fields to the WARCs created by synthesize
- Fix typo in the DSA1 implementation
- Improve the HALG file format HOT 1
- Add a command for managing the cache
- Add functionality to synthesize warcs from archive.today HOT 2
- Synthesize warc using regular vs raw stream HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hypercane.