Syntax error when trying to import Cntlr from arelle module

p_sutherland

My goal is to use Arelle (open-source platform for XBRL community) to parse XBRL docs from the SEC.

I am following instructions found here.

I successfully git cloned Arelle's code into the Lib directory of Anaconda. However, when I try from arelle import Cntlr I get the following syntax error.

File "arelle\Cntlr.py", line 573 print(logEntry, file=file) ^ SyntaxError: invalid syntax

I am using Python 2.7.12. in Anaconda.

Any feedback is appreciated and I can provide further information upon request.

Martijn Pieters

The instructions you found are rather old (from 2014), and appear to be outdated.

I was able to install the package with the following steps:

# This is needed because the 3to2 library can't be installed as an egg; if
# you don't install it with `pip` first the installation of Arelle will fail.
$ pip install 3to2
# Install Arelle directly from GitHub, this will take a while
$ pip install git+https://github.com/Arelle/Arelle

With 3to2 installed, the installation script setup.py proceeds to translate the Arelle sourcecode back to a Python 2 compatible form. Translation takes several minutes, be patient.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Import Error when trying to import NLTK module

From Dev

module not found error problem when trying to import from another folder

From Dev

Syntax error when trying to import CSV with Hash symbol

From Dev

try:/except: returns a syntax error in Python when trying to run module

From Dev

libgtk error when trying to import pybind opencv module

From Dev

Python: 'ModuleNotFoundError' when trying to import module from imported package

From Dev

Syntax error at or near ")" when trying to get children from an adjacency tree

From Dev

syntax error in expression when trying to select from a DataTable

From Dev

Syntax error in CQL query when trying to write to cassandra from python

From Dev

SQL syntax error when trying Insert from select

From Dev

SQL Syntax error when trying to perform "replace into" from JDBC

From Dev

Error "Trying to re-register the builtin cmap 'cubehelix' when trying to import the python module "yt"

From Dev

Module has no attribute "_USE_C_DESCRIPTORS" error by mypy when trying to import a Protobuf module

From Dev

I'm getting error when trying to import reserve from urlresolver

From Dev

Getting Error When Trying to Import Data From Website Using Loop

From Dev

Error when trying to import from Database with Pandas and SQLAlchemy

From Dev

Error when trying to load a "standalone" component from a module

From Dev

Error when I import .css file from node-module

From Dev

Resolution for Import Error when trying to import 'Requests'

From Dev

Import error when trying to import tensorflow with gpu

From Dev

Trying to import a python module that is installed receiving error

From Dev

error while trying to import the imputer module

From Dev

Making a module fail on purpose when trying to import it

From Dev

ImportError when trying to import Prov Module in Python

From Dev

Why do I get a syntax error when trying to run a fab module?

From Dev

sqlite3.OperationalError: near "?": syntax error while trying to import data from csv into sqlite

From Dev

Error when trying to import sklearn modules : ImportError: DLL load failed: The specified module could not be found

From Dev

SQL error or missing database (near ".": syntax error) error in java when trying to update data from sqlite databse

From Dev

Python Import Error (ModuleNotFoundError) when importing a function from a module that imports a class from another module

Related Related

  1. 1

    Import Error when trying to import NLTK module

  2. 2

    module not found error problem when trying to import from another folder

  3. 3

    Syntax error when trying to import CSV with Hash symbol

  4. 4

    try:/except: returns a syntax error in Python when trying to run module

  5. 5

    libgtk error when trying to import pybind opencv module

  6. 6

    Python: 'ModuleNotFoundError' when trying to import module from imported package

  7. 7

    Syntax error at or near ")" when trying to get children from an adjacency tree

  8. 8

    syntax error in expression when trying to select from a DataTable

  9. 9

    Syntax error in CQL query when trying to write to cassandra from python

  10. 10

    SQL syntax error when trying Insert from select

  11. 11

    SQL Syntax error when trying to perform "replace into" from JDBC

  12. 12

    Error "Trying to re-register the builtin cmap 'cubehelix' when trying to import the python module "yt"

  13. 13

    Module has no attribute "_USE_C_DESCRIPTORS" error by mypy when trying to import a Protobuf module

  14. 14

    I'm getting error when trying to import reserve from urlresolver

  15. 15

    Getting Error When Trying to Import Data From Website Using Loop

  16. 16

    Error when trying to import from Database with Pandas and SQLAlchemy

  17. 17

    Error when trying to load a "standalone" component from a module

  18. 18

    Error when I import .css file from node-module

  19. 19

    Resolution for Import Error when trying to import 'Requests'

  20. 20

    Import error when trying to import tensorflow with gpu

  21. 21

    Trying to import a python module that is installed receiving error

  22. 22

    error while trying to import the imputer module

  23. 23

    Making a module fail on purpose when trying to import it

  24. 24

    ImportError when trying to import Prov Module in Python

  25. 25

    Why do I get a syntax error when trying to run a fab module?

  26. 26

    sqlite3.OperationalError: near "?": syntax error while trying to import data from csv into sqlite

  27. 27

    Error when trying to import sklearn modules : ImportError: DLL load failed: The specified module could not be found

  28. 28

    SQL error or missing database (near ".": syntax error) error in java when trying to update data from sqlite databse

  29. 29

    Python Import Error (ModuleNotFoundError) when importing a function from a module that imports a class from another module

HotTag

Archive