Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error importing ConfigParser in Python 2.7 #8

Open
hmartos opened this issue Jun 3, 2016 · 1 comment
Open

Error importing ConfigParser in Python 2.7 #8

hmartos opened this issue Jun 3, 2016 · 1 comment

Comments

@hmartos
Copy link
Contributor

hmartos commented Jun 3, 2016

There is an error importing config parser from the following line in Python2.7
from .configparsermanager import CFGINFO

Here is the stacktrace:

Traceback (most recent call last):
  File "C:\Python27\lib\runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "C:\Python27\lib\runpy.py", line 72, in _run_code
    exec code in run_globals
  File "C:\wReputationalRisk\reputationalrisk\tweemanager\tweemanager\__main__.py", line 133, in <module>
    utilities.resultshandler = utilities.outputhandler(cmdargs['--output'])
  File "C:/wReputationalRisk/reputationalrisk/tweemanager/tweemanager\utilities.py", line 78, in __init__
    from tweetdocument import TweetDocument
  File "C:/wReputationalRisk/reputationalrisk/tweemanager/tweemanager\tweetdocument.py", line 26, in <module>
    class TweetDocument(mongoengine.DynamicDocument):
  File "C:\Python27\lib\site-packages\mongoengine\base\metaclasses.py", line 363, in __new__
    new_class._meta['collection'] = collection(new_class)
  File "C:/wReputationalRisk/reputationalrisk/tweemanager/tweemanager\tweetdocument.py", line 15, in create_collection_name
    from .configparsermanager import CFGINFO
ValueError: Attempted relative import in non-package`
@hmarrao
Copy link
Contributor

hmarrao commented Jun 4, 2016

will change this to a proper config python management!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants