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
from prices import Price #171
Comments
Did you follow the setup steps, most importantly |
I've created new virtualenv, cloned current master and executed |
Yes, I attempted to do setup.py though I got an error: configure: error: in `/tmp/easy_install-aJSds8/pycrypto-2.6.1': and so I tried putting in all the apps one at a time, I got each one and added it to the server. any thoughts on that C compiled programs error? |
Do you have C++ headers for python installed? Something like |
Likely no, though I am attempting to launch this on a webfaction server, What would be the procedure to install C++ package for python there? |
If your compiler is working, could it be that your Try @artursmet did you recently switch to cpppython? I sure hope they keep maintaining cpython ;) |
Yes, I got beyond the price import error, I will continue adapting the apps until they work Thank you for the lift |
I'll close this issue as it does not require any action from our side but you can keep updating it with questions and we'll do our best to help. |
from ..order.models import DigitalDeliveryGroup this error has risen during syncdb command Im assuming its the "from ..order.models" and the .. part needs revising? |
I can assure you the paths are correct as both the site and its test suite pass on multiple versions of python: https://travis-ci.org/mirumee/saleor What exactly are you running to get this error? |
python 2.7.5 django 1.6.2 extra note: I am attempting to install this framework into my existing site ; Also modifying that path to fit my project worked and I got to the next error: |
Looks like you need to |
thats the dilemma with crypto and the C dependencies |
What would be the procedure to install C++ package for python there? |
Artur really meant C headers, cpython is (luckily) not written in C++. Maybe you could look at Webfaction-specific forums for Python help? This looks like a clue: https://community.webfaction.com/questions/12333/pycrypto-import-error |
Look at this: http://docs.webfaction.com/software/python.html#error-permission-denied-during-package-installation |
This worked: wget https://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-2.6.tar.gz then: pip install django-payments Next: next steps: |
Set the paths and now I got the database to sync |
Great to hear that. Seeing as you had to alter the paths it might take some tweaking to get tests to run however I strongly recommend you take that extra step as having a working test suite can be of enormous help when refactoring code. Especially code you did not write in the first place. |
Well, after synchronising.. the admin panel looks great.. on the other hand I am now into troubleshooting the functionalities individually: Im here: Im looking through the entire repository and I am not finding the base.html file |
Got it up and running and now I went to test a product, so using the default models of Bags and categories when trying to add a catergory the following errors: RuntimeError at /admin/product/category/add/ |
It might be easier for us to help if you included a full stack trace. |
There is something wrong with your |
yes it is there twice @python_2_unicode_compatible and again @python_2_unicode_compatible |
No, I meant twice on the same class. Category and Product are separate things. It would be much easier if you first got things to work on your local machine as I suspect some of the problems are a result of merging into an existing project while others are related to WebFaction. |
Yes, I am doing this on a production setting to integrate with an existing website, If this succeeds then this, saleor, would be the easiest ecommerce project for django that is boxed together nicely with everything one would need; and integration with existing site would be great I've spent a day with satchmo and lfs each and this one is most promising to reach completion in merging with an existing site and also on webfaction |
/lib/python2.7/django/utils/encoding.py in |
Yes, I know what the decorator does but in your case it seems that both |
there is python3.3 in the root and python2.7 is in the django app so structure is kind of like this: / /apps /apps/mysite/apache2 /apps/mysite/lib/python2.7 in there is django in /apps/mysite/myproject is each app from saleor and apps that existed before saleor |
Did you add the entire |
the entirety of saleor folder |
! |
Could you then do a separate checkout of the saleor repository in some other directory and try to run its test suite? You do not need a database for that as the tests do not use the ORM. |
There is a folder called utils which I did not upload though Im not sure how to add that in: I have a feeling that there is where this recursion is going haywire as in that utils folder is .py file that populates those premade models additional: |
No, the utils folder is for our internal use for now. You don't need it. |
Python Version: 2.7.5 |
Patrys, Have you any other considerations? |
Did you try my suggestion above? The one about trying to run the test suite of a clean Saleor clone. |
Yes, though I did not manage to get the files linked up correctly |
* Annotating type for channel initially. * Tests and minor fixes. * Tweaked getChannel() async/await
I am getting this error:
ImportError cart: No module named prices
I found the source of the error:
from prices import Price
this line is found on the following files:
https://github.com/mirumee/saleor/blob/25adc3c8e840c81418833290a89e240baf7833e1/saleor/product/models/discounts.py
https://github.com/mirumee/saleor/blob/fcf982842c2ad9f9795efe4b11d9dc3f9a251fba/saleor/product/models/variants.py
https://github.com/mirumee/saleor/blob/214138810c1722f1b61e01c115eeecb362f93fb9/saleor/cart/__init__.py
https://github.com/mirumee/saleor/blob/25adc3c8e840c81418833290a89e240baf7833e1/saleor/order/models.py
and I see that I cannot find this module anywhere as I did do a search. This is preventing me from syncing to the DB and getting this running successfully.
Let me know what is missing as I am still searching.
The text was updated successfully, but these errors were encountered: