Moocng Installation

205 views
Skip to first unread message

Abdollah IDRISSI

unread,
Mar 12, 2014, 7:41:07 PM3/12/14
to open...@googlegroups.com
 
   Hello everyone

   I choose openmooc to make a new mooc-platforme. Working on the newest release of CentOS and refering to github Documentation I managed to succeed almost all its steps and yet i came into a problem that I couldn't solve -after installing moocng- with the command :

    
(moocng)[root@localhost moocng]# django-admin.py syncdb --settings=moocng.settings --migrate

Traceback (most recent call last):
  File "/var/www/moocng/bin/django-admin.py", line 5, in <module>
    management.execute_from_command_line()
  File "/var/www/moocng/lib/python2.6/site-packages/django/core/management/__init__.py", line 399, in execute_from_command_line
    utility.execute()
  File "/var/www/moocng/lib/python2.6/site-packages/django/core/management/__init__.py", line 392, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/var/www/moocng/lib/python2.6/site-packages/django/core/management/__init__.py", line 261, in fetch_command
    commands = get_commands()
  File "/var/www/moocng/lib/python2.6/site-packages/django/core/management/__init__.py", line 107, in get_commands
    apps = settings.INSTALLED_APPS
  File "/var/www/moocng/lib/python2.6/site-packages/django/conf/__init__.py", line 54, in __getattr__
    self._setup(name)
  File "/var/www/moocng/lib/python2.6/site-packages/django/conf/__init__.py", line 49, in _setup
    self._wrapped = Settings(settings_module)
  File "/var/www/moocng/lib/python2.6/site-packages/django/conf/__init__.py", line 132, in __init__
    % (self.SETTINGS_MODULE, e)
ImportError: Could not import settings 'moocng.settings' (Is it on sys.path? Is there an import error in the settings file?): No module named djcelery

Can you tell me whats wrong ?
Thanks

Alejandro Blanco

unread,
Mar 13, 2014, 3:29:13 AM3/13/14
to open...@googlegroups.com
Hi Abdollah. You are probably not executing the django-admin command in the right path.

Navigate through your deployment until you find the manage.py file. I'm guessing it is in "/var/www/moocng/moocng". Then execute, with the virtualenv loaded, this:

    python manage.py syncdb --migrate

This is the same that invoking django-admin.py, but this way you'll make sure you are in the right directory.

Regards.


--
You received this message because you are subscribed to the Google Groups "OpenMOOC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmooc+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openmooc/3ac4e3e6-87b9-4d4f-bb28-5831179665b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alejandro Blanco <abl...@yaco.es>

 

Yaco Sistemas S.L. <http://www.yaco.es/>

C/ Rioja 5, 41001 Sevilla

Abdollah IDRISSI

unread,
Mar 13, 2014, 5:35:08 AM3/13/14
to open...@googlegroups.com
 
  Thank you Mr.Alejandro

  That's the problem, I execute the command at the right place (in my case /var/www/moocng/moocng) from the beginning.

   No matter I did this punch of errors still appearing.

   And when i put :

            (moocng)[root@localhost moocng]# which django-admin.py
            /var/www/moocng/bin/django-admin.py

Alejandro Blanco

unread,
Mar 13, 2014, 5:45:44 AM3/13/14
to open...@googlegroups.com
Ok, it says "Import Error: No module named djcelery". So it seems like there is some dependence missing.

Go to /var/www/moocng/moocng/ and run: python setup.py develop

That should install all the dependencies.


--
You received this message because you are subscribed to the Google Groups "OpenMOOC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmooc+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.

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

Abdollah IDRISSI

unread,
Mar 13, 2014, 7:27:08 AM3/13/14
to open...@googlegroups.com

  Is is still showing the same error.

I'm sorry for the bothering.


You received this message because you are subscribed to a topic in the Google Groups "OpenMOOC" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openmooc/WmyCzmb4xZI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openmooc+u...@googlegroups.com.

To post to this group, send email to open...@googlegroups.com.

Sixto Martin

unread,
Mar 13, 2014, 7:30:50 AM3/13/14
to open...@googlegroups.com
Did you get any error when you executed at /var/www/moocng/moocng/ the command python setup.py develop   ?



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



--
Sixto Pablo Martín García
Ingeniero Informático
Yaco Sistemas SL
C/Rioja 5-1ª Planta
41001 Sevilla

Abdollah IDRISSI

unread,
Mar 13, 2014, 1:23:16 PM3/13/14
to open...@googlegroups.com
 
   Yes, here is the command :

[root@localhost www]# cd moocng/moocng/
[root@localhost moocng]# python setup.py develop
running develop
running egg_info
writing requirements to moocng.egg-info/requires.txt
writing moocng.egg-info/PKG-INFO
writing top-level names to moocng.egg-info/top_level.txt
writing dependency_links to moocng.egg-info/dependency_links.txt
writing entry points to moocng.egg-info/entry_points.txt
reading manifest file 'moocng.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'moocng.egg-info/SOURCES.txt'
running build_ext
Creating /usr/lib/python2.6/site-packages/moocng.egg-link (link to .)
Adding moocng 0.1.3 to easy-install.pth file

Installed /var/www/moocng/moocng
Processing dependencies for moocng==0.1.3
Searching for BeautifulSoup==3.0.8.1
Reading http://pypi.python.org/simple/BeautifulSoup/
No local packages or download links found for BeautifulSoup==3.0.8.1
error: Could not find suitable distribution for Requirement.parse('BeautifulSoup==3.0.8.1')


Alejandro Blanco

unread,
Mar 14, 2014, 3:06:31 AM3/14/14
to open...@googlegroups.com
It seems like the people behind the BeautifulSoup library have removed old versions from the python package index. While we fix this, a workaround is to edit the setup.py a change the BeautifulSoup version to 3.2.1, and test if everything works fine.


--
You received this message because you are subscribed to the Google Groups "OpenMOOC" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openmooc+u...@googlegroups.com.
To post to this group, send email to open...@googlegroups.com.

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

Pablo Martin

unread,
Mar 14, 2014, 3:18:04 AM3/14/14
to open...@googlegroups.com
2014-03-14 8:06 GMT+01:00 Alejandro Blanco <abl...@yaco.es>:
It seems like the people behind the BeautifulSoup library have removed old versions from the python package index. While we fix this, a workaround is to edit the setup.py a change the BeautifulSoup version to 3.2.1, and test if everything works fine.



Reply all
Reply to author
Forward
0 new messages