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

mezzanine-project mezzanine_project: error: unrecognized arguments: -a #257

Closed
n1ywb opened this issue Jun 23, 2015 · 9 comments
Closed

Comments

@n1ywb
Copy link

n1ywb commented Jun 23, 2015

Trying to use cartridge master with Mezzanine master and django 1.8, I get the following error when I try to create the cartridge project

$ mkvirtualenv mezmaster
$ pip install git+https://github.com/stephenmcd/mezzanine.git#egg=mezzanine
$ pip install git+https://github.com/stephenmcd/cartridge.git#egg=cartridge
$ mezzanine-project -a cartridge localvore-dev
usage: mezzanine-project mezzanine_project [-h] [--version] [-v {0,1,2,3}]
                                           [--settings SETTINGS]
                                           [--pythonpath PYTHONPATH]
                                           [--traceback] [--no-color]
                                           [--template TEMPLATE]
                                           [--extension EXTENSIONS]
                                           [--name FILES]
                                           name [directory]
mezzanine-project mezzanine_project: error: unrecognized arguments: -a

installed packages

$ pip freeze
Cartridge==0.9.5
Django==1.8.2
Mezzanine==3.1.10
Pillow==2.8.2
PyPDF2==1.24
argparse==1.2.1
beautifulsoup4==4.3.2
bleach==1.4.1
chardet==2.3.0
django-contrib-comments==1.6.1
filebrowser-safe==0.3.8
future==0.14.3
grappelli-safe==0.3.13
html5lib==0.99999
oauthlib==0.7.2
pytz==2015.4
reportlab==3.2.0
requests==2.7.0
requests-oauthlib==0.5.0
six==1.9.0
tzlocal==1.2
wsgiref==0.1.2
xhtml2pdf==0.0.6

Let me know if you need more info

@n1ywb
Copy link
Author

n1ywb commented Jun 23, 2015

I also tried

$ mezzanine-project --template cartridge localvore-dev
CommandError: couldn't handle project template cartridge.

@Kniyl
Copy link
Collaborator

Kniyl commented Jun 23, 2015

That is the consequence of a recent merge in mezzanine that changed the project layout to match django's one. Cartridge has still to catch up.

More information at https://groups.google.com/forum/m/#!topic/mezzanine-users/7bqDYtfCId8

@JamesRamm
Copy link

Any timescale on when this will be fixed? Currently, cartridge is essentially broken for clean installs and without trawling the internet to find hacks, making a new cartridge website is a no go.

If you do this:

mkvirtualenv mywebsite
pip install mezzanine cartridge

You will end up with mezzanine 4.0, django 1.8 and cartridge 0.95. Attempting to make a new cartridge website will fail...

@ryneeverett
Copy link
Collaborator

The latest compatible releases seem to be cartridge==0.9.3 and mezzanine<4.0.

@stephenmcd
Copy link
Owner

You can also use Mezzanine 4.0, Django 1.8 plus the development branch of Cartridge using these steps to start a project:

https://groups.google.com/d/msg/mezzanine-users/q8Cu1obn2BA/JyXCXCafwdQJ

@ryneeverett
Copy link
Collaborator

Thanks @stephenmcd, works beautifully and seems smarter for new projects.

@jayetan
Copy link

jayetan commented Jul 21, 2015

https://groups.google.com/d/msg/mezzanine-users/q8Cu1obn2BA/JyXCXCafwdQJ

this doesn't fixed the issue I got
django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form ProductAdminForm needs updating.

@stephenmcd
Copy link
Owner

this doesn't fixed the issue I got
django.core.exceptions.ImproperlyConfigured: Creating a ModelForm without either the 'fields' attribute or the 'exclude' attribute is prohibited; form ProductAdminForm needs updating.

Sorry I don't think this is related.

Actual issue fixed by stephenmcd/mezzanine@f3be54b and a0f2cd7

@rcarmo
Copy link

rcarmo commented Jul 22, 2015

I'd like to keep this open until pip is updated, since I just came across the exact same issue with a fresh install and it's just nicer to new users...

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

7 participants