Oh sorry. I did not see the other thread. The issue is already fixed. -- Zhuoyun Wei
On Sun, May 13, 2018, at 15:57, Zhuoyun Wei wrote: > Congratulations! > > I'm trying to update the AUR package of beancount but encountered the > following error when running setup.py: > > > ==> Starting package()... > Traceback (most recent call last): > File "setup.py", line 172, in <module> > shell=False) > File "/usr/lib/python3.6/subprocess.py", line 336, in check_output > **kwargs).stdout > File "/usr/lib/python3.6/subprocess.py", line 403, in run > with Popen(*popenargs, **kwargs) as process: > File "/usr/lib/python3.6/subprocess.py", line 709, in __init__ > restore_signals, start_new_session) > File "/usr/lib/python3.6/subprocess.py", line 1344, in _execute_child > raise child_exception_type(errno_num, err_msg, err_filename) > FileNotFoundError: [Errno 2] No such file or directory: 'hg': 'hg' > ==> ERROR: A failure occurred in package(). > Aborting... > > > I do not have Mercury installed. It seems to my the setup.py is trying > to invoke `hg` even if it is not avaiable[sic]. > > If I am not mistaken, this is not the intended behaviour: > > > 2018-05-06 > - Changes to support git versioning if hg versioning is not available. > > > Looking into setup.py, the try-except clause only catches > subprocess.CalledProcessError but not FileNotFoundError. > > > > 2018-05-12 00:51:21 Martin Blais <bl...@furius.ca>: > > Releasing 2.1.0. > > This release focused on merging various long-standing pull requests adding > > features desired by users. > > > > - UTF8 support > > - Support for transaction tags and links in indented postings block in > > grammar > > - CI build setup (Bitbucket Pipelines and Travis-CI on github) > > - Performance improvements from dict implementation changes > > - Globbing patterns in include statements > > - Patches to fix specific SQL bugs encountered by users (and new functions > > added) > > - Updated price source importers (Yahoo), added IEX & Quandl, deleted > > Google Finance > > - Clarified timezone usage in price source importers > > - Removed dependency on "zip" UNIX tool for Windows support, added > > dependency on "requests" package > > > > Thanks to Martin Michlmayr, Ethan Glasser-Camp, Jakob Schnitzer, Adrian > > Medrano Calvo, Johannes Harms, Patrick > > Ruckstuhl, Hugo Ideler for pull requests merged in this release. > > Full changelog below. > > > > > > > > > > * Version: 2.1.0 > > > > 2018-05-12 > > > > - Added back lexer test from Adrian Medrano Calvo's UTF8 changes to head. > > > > > > 2018-05-08 > > > > - Fixed #287: In the price fetcher, store the datetime instances as > > naive-in-UTC in order to avoid a serialization problem with older Python > > versions. > > > > > > 2018-05-06 > > > > - Changes to support git versioning if hg versioning is not available. > > > > > > 2018-05-05 > > > > - Fixed #289: Add option to find beancount version. All scripts now support > > --version. > > > > - Amended PR64 to remove the need for __getitem__(). Clarified docstring. > > > > - Merged PR64 from Jakob Schnitzer: Inventory: use dict instead of list as a > > base. > > > > > > 2018-05-04 > > > > - Fixed #290: Validation of account name components was incorrectly swapped. > > > > > > 2018-05-03 > > > > - Amended PR74: Adding a new unit test, fail if tags / link appear after the > > first posting. Performance amendment to tags/links and clarification to the > > freezing of tags & links and their default values. > > > > - Merged PR74 / Fixed #99: Allow tags and links to be spread over several > > lines. > > > > - Amended PR14: added simple unit testing for regexp, changes in parsing > > UTF-8 > > account type to match changes in Beancount head. > > > > - Merged PR14 by Adrian Medrano Calvo: Support account names to consist of > > Unicode letters and numbers. > > > > 2018-05-02 > > > > - Removed a few accidental __author__ metadatas from files, normalized to > > __copyright__ as all other files. > > > > > > 2018-05-01 > > > > - Added patch for clean build for lexer. 2.6.1 results in a build warning. > > > > - Merged PR73 (Ethan Glasser-Camp) - Cleanups to lexer and more restrictive > > syntax for comments within a transaction's indented block. > > > > - Fixed failing test re. new grammar. > > > > - Merged PR29: Update grammar to allow comments in the middle of > > transactions > > (Ethan Glasser-Camp). > > > > - Merged PR71: Use enhanced extract method which passes existing entries > > (Patrick Ruckstuhl). > > > > > > 2018-04-29 > > > > - Added polymorphic POSSIGN(_, account) function to the SQL shell in order > > to > > support correcting for per-account sign. > > > > - Implemented polymorphic NEG() function in the SQL shell, which works on > > instances of Decimal, Amount, Position, Inventory. > > > > - Changed the SQL shell's operators to dispatch to Python's default operator > > selection instead of coercing to Decimal instances. > > > > > > 2018-04-28 > > > > - Added QUARTER() function to the SQL shell. > > (See https://groups.google.com/d/msg/beancount/fTlSnQRPayo/1yN8zd76AAAJ.) > > > > - Updated version of flex on Ubuntu (2.6.1) generates warnings. Fixed a few. > > But Beancount now fails on account names with a dash inthyem; added a test > > for those. (The lexer is not the issue; I suspect a bison update from 4/17.) > > > > > > 2018-04-18 > > > > - Fixed #157: Building a price map with zero prices should not fail, > > especially when done accidentally. > > > > - Fixed #264: Converted zip compression in bake from using an external zip > > tool to using the 'zipfile' module packaged with Python. I'm doing this to > > fix the CI build as well. > > > > > > 2018-04-17 > > > > - Fixed #265: Refined the timezone specification of the price sources. In > > doing this, I documented it in the beancount.prices.source module and now > > pass in a timezone-aware datetime instance instead of a date, and the source > > is now required to also require a timezone-aware datetime instance. I fixed > > all the tests, and added a utility to simulate running them from different > > timezones. > > > > - Implemented multi-file support for bean-doctor context command. Use it > > like > > this: > > > > bean-doctor context <toplevel.beancount> <file.beancount>:<lineno> > > > > The previous syntax is still supported; like this: > > > > bean-doctor context <toplevel.beancount> <lineno> > > > > > > 2018-04-05 > > > > - Since I added a dependency on 'requests', forgot to add to checkdeps. > > Done. > > > > > > 2018-04-04 > > > > - Handle error on an invalid implementation of a price source (e.g., in this > > case an obsoleted price source string of 'google' imports something else and > > referenceing .Source fails). > > > > - Bubble up error from Yahoo price source. > > > > - Fixed #267: Implemented a price source from the IEX exchange. > > > > > > 2018-04-03 > > > > - Implemented Quandl importer on its REST API. Another implementation, based > > on the Quandl Python client API was proposed by Hugo Ideler (see PR34), but > > I didn't want to add a dependency on the client library (nor on Pandas), and > > after reading the description on Quandl API's website, I figured the library > > was simple enough the output could be parsed directly. I wrote a new > > implementation from scratch, parsing just the time-series datasets. > > > > - Merged PR68 from Martin Michlmayr, added Travis Yaml support file. > > > > - Fixed Emacs functionality to uncomment regions (change submitted by Stefan > > Monnier on the list). > > > > > > 2018-04-02 > > > > - Fixed #193: Removed the broken Google Finance price source importer. > > Google > > has removed this service in the favor of a special Search page and this has > > been broken for the recent little while. > > > > - Fixed #203: Updated the Yahoo price source implementation to use the > > undocumented v7 and v8 APIs; moved away from the "ichart" and "download" > > APIs. The Yahoo importer is back in function. > > > > This introduced a new dependency on the awesome 'requests' library, which > > really, was quite inevitable). > > > > > > 2018-04-01 > > > > - Merged PR65: Use parse_version to compare versions; then replicated > > parse_version() locally to avoid the dependency on setuptools. > > > > - Merged PR15 by Johannes Harms: > > Added the following features to the forecasting plugin: > > - Yearly repetition of recurring transactions (instead of just monthly) > > - Users may optionally specify an end date > > - Users may optionally specify the number of repetitions > > "I used this code to calculate scenarios for a possible real estate purchase > > and I contribute a cleaned-up version as an example file." > > > > - Merged PR54 & Fixed #232: Align quoted commodities correctly in ledger > > price > > statements (from Martin Michlmayr). > > > > - Merged PR57: query_execute: Allow ordering by columns which may be None > > (from Jakob Schnitzer). Made some adjustments to generalize on all > > datatypes. > > > > - Merged PR62: Also allow 0/0 in SAFEDIV() (from Jakob Schnitzer), with > > small > > adjustments to catch only the specific invalid operations on Decimal. > > > > - Merged PR64 from yagebu@ (Jakob Schnitzer), which makes the Inventory > > class > > rely on the fact that Position is immutable in order to avoid unnecessary > > copies. This yields an 18% speedup with no difference. > > > > - Removed unused and invalid mutating method Position.set_units(). Amazing > > obsolete stuff like this can still be found. > > > > > > 2018-03-31 > > > > - Fixed #10: "print from close_date" causes problems on account open. This > > was > > stemming from a bug in the implementation of the FROM clause execution. I > > changed the "entry" context functions to also accept a RowContext object, as > > the simple functions may be called in either entry or posting context. > > > > (The SQL shell remains the part of Beancount which is severely undertested > > and wading into that code once again has convinced me I need to rewrite the > > shell from scratch, it'll be simpler and better. The distinction between > > entry and posting context will go away in the next version.) > > > > - Fixed #120: Documents directive with a trailing slash fails. > > > > > > 2018-03-28 > > > > - Fixed failing test in amount_test probably due to some recent merges. > > > > > > 2018-03-27 > > > > - Completed PR #59 which adds support for globbing patterns in includes, > > inserting a chdir() around glob.glob() to handle expansion of relative > > filenames. (Credits to Martin Michlmayr for submitting the patch in the > > first place.) > > > > > > > > -- > > You received this message because you are subscribed to the Google Groups > > "Beancount" group. > > To unsubscribe from this group and stop receiving emails from it, send an > > email to > > beancount+unsubscr...@googlegroups.com. > > To post to this group, send email to beancount@googlegroups.com. > > To view this discussion on the web visit > > https://groups.google.com/d/msgid/beancount/ > > CAK21%2BhMA_Vc%2ByRSmBcZPHWUVDjvpk-Wp5toE8LtEWqsg4gixNQ%40mail.gmail.com. > > For more options, visit https://groups.google.com/d/optout. > > -- > Zhuoyun Wei > Email had 1 attachment: > + signature.asc > 1k (application/pgp-signature) -- You received this message because you are subscribed to the Google Groups "Beancount" group. To unsubscribe from this group and stop receiving emails from it, send an email to beancount+unsubscr...@googlegroups.com. To post to this group, send email to beancount@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beancount/1526198309.3036433.1370208176.4B8A2534%40webmail.messagingengine.com. For more options, visit https://groups.google.com/d/optout.