Error When Trying To Start Web Server - First Time

402 views
Skip to first unread message

Keyvan Moussavi

unread,
Dec 9, 2016, 11:08:52 AM12/9/16
to Bots Open Source EDI Translator
I'm trying to start the bots web server but I observer the following error, any ideas?

Traceback (most recent call last):
  File "./bots-webserver.py", line 5, in <module>
    webserver.start()
  File "/home/keyvan/Downloads/bots-3.2.0/bots/webserver.py", line 37, in start
    botsinit.generalinit(configdir)     #find locating of bots, configfiles, init paths etc.
  File "/home/keyvan/Downloads/bots-3.2.0/bots/botsinit.py", line 112, in generalinit
    django.setup()
  File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 115, in populate
    app_config.ready()
  File "/usr/lib/python2.7/dist-packages/django/contrib/admin/apps.py", line 22, in ready
    self.module.autodiscover()
  File "/usr/lib/python2.7/dist-packages/django/contrib/admin/__init__.py", line 24, in autodiscover
    autodiscover_modules('admin', register_to=site)
  File "/usr/lib/python2.7/dist-packages/django/utils/module_loading.py", line 74, in autodiscover_modules
    import_module('%s.%s' % (app_config.name, module_to_search))
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/home/keyvan/Downloads/bots-3.2.0/bots/admin.py", line 87, in <module>
    class MyConfirmruleAdminForm(forms.ModelForm):
  File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 274, in __new__
    "needs updating." % name
django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form MyConfirmruleAdminForm needs updating.

henk-jan ebbers

unread,
Dec 9, 2016, 11:41:40 AM12/9/16
to bots...@googlegroups.com
hi Keyvan

you have "/home/keyvan/Downloads/bots-3.2.0/bots/webserver.py"

I really would expect

"/usr/lib/python2.7/dist-packages/bots/webserver.py"

(unless you did have the explicit intention to install it there instead of default place to install...an experienced python usrr myabe would.

else:
delete that dirctory /home/keyvan/Downloads/bots-3.2.0/
than start bots (probably) as bots-webserver.py

kind regards,
henk-jan
> --
> You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com <mailto:botsmail+u...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Moussavi, Keyvan

unread,
Dec 9, 2016, 1:02:45 PM12/9/16
to bots...@googlegroups.com
Thanks for the speedy response, I did what you suggested and now I observe this problem:

######################################
Traceback (most recent call last):
  File "./webserver.py", line 81, in <module>
    start()
  File "./webserver.py", line 37, in start
    botsinit.generalinit(configdir)     #find locating of bots, configfiles, init paths etc.
  File "/usr/lib/python2.7/dist-packages/bots/botsinit.py", line 112, in generalinit
    django.setup()
  File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
    apps.populate(settings.INSTALLED_APPS)
  File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 115, in populate
    app_config.ready()
  File "/usr/lib/python2.7/dist-packages/django/contrib/admin/apps.py", line 22, in ready
    self.module.autodiscover()
  File "/usr/lib/python2.7/dist-packages/django/contrib/admin/__init__.py", line 24, in autodiscover
    autodiscover_modules('admin', register_to=site)
  File "/usr/lib/python2.7/dist-packages/django/utils/module_loading.py", line 74, in autodiscover_modules
    import_module('%s.%s' % (app_config.name, module_to_search))
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/dist-packages/bots/admin.py", line 16, in <module>
    class BotsAdmin(admin.ModelAdmin):
  File "/usr/lib/python2.7/dist-packages/bots/admin.py", line 19, in BotsAdmin
    list_per_page = botsglobal.ini.getint('settings','adminlimit',botsglobal.ini.getint('settings','limit',30))
AttributeError: 'NoneType' object has no attribute 'getint'

######################################
To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+unsubscribe@googlegroups.com <mailto:botsmail+unsubscribe@googlegroups.com>.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the Google Groups "Bots Open Source EDI Translator" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/botsmail/OaAsBImb96w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to botsmail+unsubscribe@googlegroups.com.

henk-jan ebbers

unread,
Dec 9, 2016, 1:18:01 PM12/9/16
to bots...@googlegroups.com
hi keyvan,

very hard to say what goes wrong.

this all points to install that is not OK.

best is to go back: remove all installed botsstuff (I guess installed libs are OK)

and try again.


kind regards,

henk-jan


On 12/09/2016 07:02 PM, Moussavi, Keyvan wrote:
> Thanks for the speedy response, I did what you suggested and now I observe this problem:
>
> ######################################
> Traceback (most recent call last):
> File "./webserver.py", line 81, in <module>
> start()
> File "./webserver.py", line 37, in start
> botsinit.generalinit(configdir) #find locating of bots, configfiles, init paths etc.
> File "/usr/lib/python2.7/dist-packages/bots/botsinit.py", line 112, in generalinit
> django.setup()
> File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 18, in setup
> apps.populate(settings.INSTALLED_APPS)
> File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 115, in populate
> app_config.ready()
> File "/usr/lib/python2.7/dist-packages/django/contrib/admin/apps.py", line 22, in ready
> self.module.autodiscover()
> File "/usr/lib/python2.7/dist-packages/django/contrib/admin/__init__.py", line 24, in autodiscover
> autodiscover_modules('admin', register_to=site)
> File "/usr/lib/python2.7/dist-packages/django/utils/module_loading.py", line 74, in autodiscover_modules
> import_module('%s.%s' % (app_config.name <http://app_config.name>, module_to_search))
> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> __import__(name)
> File "/usr/lib/python2.7/dist-packages/bots/admin.py", line 16, in <module>
> class BotsAdmin(admin.ModelAdmin):
> File "/usr/lib/python2.7/dist-packages/bots/admin.py", line 19, in BotsAdmin
> list_per_page = botsglobal.ini.getint('settings','adminlimit',botsglobal.ini.getint('settings','limit',30))
> AttributeError: 'NoneType' object has no attribute 'getint'
>
> ######################################
>
> Keyvan
> 703-282-4166
>
> import_module('%s.%s' % (app_config.name <http://app_config.name>, module_to_search))
> File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
> __import__(name)
> File "/home/keyvan/Downloads/bots-3.2.0/bots/admin.py", line 87, in <module>
> class MyConfirmruleAdminForm(forms.ModelForm):
> File "/usr/lib/python2.7/dist-packages/django/forms/models.py", line 274, in __new__
> "needs updating." % name
> django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form MyConfirmruleAdminForm needs updating.
>
> --
> You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com <mailto:botsmail%2Bunsu...@googlegroups.com>
> <mailto:botsmail+u...@googlegroups.com <mailto:botsmail%2Bunsu...@googlegroups.com>>.
> For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to a topic in the Google Groups "Bots Open Source EDI Translator" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/botsmail/OaAsBImb96w/unsubscribe <https://groups.google.com/d/topic/botsmail/OaAsBImb96w/unsubscribe>.
> To unsubscribe from this group and all its topics, send an email to botsmail+u...@googlegroups.com <mailto:botsmail%2Bunsu...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout <https://groups.google.com/d/optout>.
>
>
> --
> You received this message because you are subscribed to the Google Groups "Bots Open Source EDI Translator" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to botsmail+u...@googlegroups.com <mailto:botsmail+u...@googlegroups.com>.
Message has been deleted
Message has been deleted

Keyvan Moussavi

unread,
Dec 14, 2016, 1:35:23 PM12/14/16
to Bots Open Source EDI Translator
Okay, so here is where we are.

Tried to use Vagrant, based on your suggestion on SourceForge but I still get this message:
django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form MyConfirmruleAdminForm needs updating.

For testing purposes installed bots in /tmp/
Went to /tmp/bots and ran:
- vagrant init
- vagrant up
- vagrant ssh
- In the shell 'sudo su -'
- pip install cherrypy
- pip install django
- /vagrant/bots/bots-webserver.py

Python is version 2.7 in vagrant.  Any ideas.  What is this error message?

On Saturday, December 10, 2016 at 7:53:19 AM UTC-5, Dennis Decoene wrote:
In fact you are better off without running it in the dist-packages or site-packages folder. Your original setup was ok. But that is a whole other discussion...

henk-jan ebbers

unread,
Dec 14, 2016, 1:42:43 PM12/14/16
to bots...@googlegroups.com
no idea what an 'vagrant' is.

probably you heard this from one of the stealing Belgium people.

trying to get hold fo bots copyrights.


kind regards,

henk-jan

Willoughby

unread,
Dec 14, 2016, 2:04:34 PM12/14/16
to Bots Open Source EDI Translator
Well, if you Google the phrase "MyConfirmruleAdminForm needs updating" it would point to a django issue.
Based on that, I would guess your django is either too old or too new.
The last I looked it needs django >= 1.4.0, django <= 1.7.0

Keyvan Moussavi

unread,
Dec 14, 2016, 2:55:23 PM12/14/16
to Bots Open Source EDI Translator
Correct, reverted back to version 1.7.8 and everything worked.
Reply all
Reply to author
Forward
0 new messages