On 11/04/2021 23:43, Daniele Nicolodi wrote:
> On 11/04/2021 23:16, kuba....@gmail.com wrote:
>> Hi,
>>
>> I'm having some problems using the debugger in the beangulp project.
>>
>> I'm using PyCharm 2021.1.
>> Python 3.9.2 (default, Feb 20 2021, 00:00:00) 
>> [GCC 10.2.1 20201125 (Red Hat 10.2.1-9)] on linux
>>
>> When I run pytest normally everything runs fine, but if I try and use
>> the debugger, the application bombs out with 
>> AttributeError: partially initialized module 'csv' has no attribute
>> 'Dialect' (most likely due to a circular import)
>>
>> My guess is that since the csv_importer was renamed to csv, the loader
>> is getting confused with the importer module name and the csv python
>> module. Given this only happens with the debugger, there must be some
>> race condition. 
>>
>> When I have renamed the csv importer module name to something else, my
>> problem is resolved.
>>
>> Any thoughts?
> 
> Can you reproduce the problem with anything else than PyCharm?

Also, please note that the csv importer is in the
beancount.ingest.importers.csv module in beancount v2, thus the rename
is just bringing back the old module name and not something recent.

Cheers,
Dan

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/beancount/e63102a3-55af-1441-cad7-4f654b06127a%40grinta.net.

Reply via email to