issue with installation

31 views
Skip to first unread message

Jonathan Aquilina

unread,
Jul 20, 2014, 5:03:45 AM7/20/14
to coinb...@googlegroups.com
Good Morning,

I am seeting coinbox up on gentoo for a project and potential customization.

i am following the core installation instructions

Babel==1.3
-e git+https://github.com/coinbox/coinbox-mod-auth@12bb7c4dc578c3ce447e45191d559d2012e35ec0#egg=Coinbox_mod_auth-master
-e git+https://github.com/coinbox/coinbox-mod-base@4897a433b7cae2f7c7f8eb2f62e327d6e1e817ee#egg=Coinbox_mod_base-master
-e git+https://github.com/coinbox/coinbox-mod-config@8c566b8abda17a136ec1e2783c87fb09d7c0aa4f#egg=Coinbox_mod_config-master
-e git+https://github.com/coinbox/coinbox-mod-currency@e6b2141824fb2a64e74bcb3e7068da8d9d9aaf2c#egg=Coinbox_mod_currency-master
-e git+https://github.com/coinbox/coinbox-mod-customer@6578d5b0cd885cae2a240d577550a01783537859#egg=Coinbox_mod_customer-master
-e git+https://github.com/coinbox/coinbox-mod-installer@130457eda94401907444ba7ea97ddd4161a26a8c#egg=Coinbox_mod_installer-master
-e git+https://github.com/coinbox/coinbox-mod-sales@fcbd18db9b2fa3716423e60a5e9921438f720e04#egg=Coinbox_mod_sales-master
-e git+https://github.com/coinbox/coinbox-mod-stock@6d24f92350ce0aac50e00f99b0b98b48d73a1070#egg=Coinbox_mod_stock-master
-e git+https://github.com/coinbox/coinbox-mod-taxes@2fedf729a6b8f01ee3c3a479a02dc47f53049d56#egg=Coinbox_mod_taxes-master
-e git+https://github.com/coinbox/coinbox-core@726bf3d3a9a299b916459fa5a63c5c47fb0b0641#egg=Coinbox_pos-master
ProxyTypes==0.9
PyDispatcher==2.0.3
PySide==1.2.2
SQLAlchemy==0.9.6
py-bcrypt==0.4
pytz==2014.4
pyxdg==0.25
wsgiref==0.1.2


in the above im not seeing coinbox mentioned at all when i do the 2nd pip freeze | less

i installed both the core and all modules in developer mode.  Any help would be greatly appreciated

--
Jonathan Aquilina

Jad Kik

unread,
Jul 20, 2014, 5:28:51 AM7/20/14
to coinb...@googlegroups.com
Hello,

Actually because you are installing in developer mode, you will see the address of the github repository instead of the names "coinbox-".

Everything seems correct for you now. You have to set the environment variables (optional) and run coinbox. Let me know if it doesn't work.

Jonathan Aquilina

unread,
Jul 20, 2014, 6:03:43 AM7/20/14
to coinb...@googlegroups.com
when i try to run it i do get an error. I am on google hangouts if you would like to chat there.


--
You received this message because you are subscribed to the Google Groups "Coin Box POS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coinboxpos+...@googlegroups.com.
To post to this group, send email to coinb...@googlegroups.com.
Visit this group at http://groups.google.com/group/coinboxpos.
For more options, visit https://groups.google.com/d/optout.



--
Jonathan Aquilina

Jonathan Aquilina

unread,
Jul 20, 2014, 6:06:55 AM7/20/14
to coinb...@googlegroups.com
when i try to run coinbox i get the following coinbox

[INFO]  cbpos.core: Python: 2.7.6 (default, May 27 2014, 10:42:50)
[GCC 4.7.3] (core.py:246)
[WARNING]       cbpos.core: We are appending the run subparser to the arguments... (core.py:328)
[ERROR] root: An error stopped the application (coinbox:17)
[ERROR] root: No module named PIL (coinbox:18)
Traceback (most recent call last):
  File "/home/jaquilina/coinBox/src/coinbox-pos/coinbox", line 13, in <module>
    retcode = cbpos.loader.run()
  File "/home/jaquilina/coinBox/src/coinbox-pos/cbpos/core.py", line 298, in run
    if not self.load_database():
  File "/home/jaquilina/coinBox/src/coinbox-pos/cbpos/core.py", line 185, in load_database
    models = mod.load_models()
  File "/home/jaquilina/coinBox/src/coinbox-mod-base/cbmod/base/loader.py", line 8, in load_models
    from cbmod.base.models import StoredFile
  File "/home/jaquilina/coinBox/src/coinbox-mod-base/cbmod/base/models/__init__.py", line 2, in <module>
    from .storedfile import StoredFile
  File "/home/jaquilina/coinBox/src/coinbox-mod-base/cbmod/base/models/storedfile.py", line 3, in <module>
    from PIL import Image
ImportError: No module named PIL
[INFO]  root: Exiting... (coinbox:21)
[INFO]  cbpos.core: Terminating application... (core.py:358)

--
Jonathan Aquilina

Jad Kik

unread,
Jul 20, 2014, 7:17:29 AM7/20/14
to coinb...@googlegroups.com
Ah, do a `pip install PIL`. I don't know why it's not in the requirements file.
To unsubscribe from this group and stop receiving emails from it, send an email to coinboxpos+unsubscribe@googlegroups.com.

To post to this group, send email to coinb...@googlegroups.com.
Visit this group at http://groups.google.com/group/coinboxpos.
For more options, visit https://groups.google.com/d/optout.



--
Jonathan Aquilina



--
Jonathan Aquilina

Jonathan Aquilina

unread,
Jul 20, 2014, 7:20:21 AM7/20/14
to coinb...@googlegroups.com
if you like i could submit a patch but i would need to fork the repo no?



To unsubscribe from this group and stop receiving emails from it, send an email to coinboxpos+...@googlegroups.com.

To post to this group, send email to coinb...@googlegroups.com.
Visit this group at http://groups.google.com/group/coinboxpos.
For more options, visit https://groups.google.com/d/optout.



--
Jonathan Aquilina

Jonathan Aquilina

unread,
Jul 20, 2014, 7:22:59 AM7/20/14
to coinb...@googlegroups.com
im getting the following error when i try to install pil via pip.

http://pastebin.com/wTigGHpi
--
Jonathan Aquilina

Jad Kik

unread,
Jul 20, 2014, 7:37:22 AM7/20/14
to coinb...@googlegroups.com
That's an error with PIL... There are fixes for it if you search around, but I can't test this now...

You might want to check http://python-pillow.github.io/ which is a drop-in replacement to PIL. Maybe it works for you.

Jonathan Aquilina

unread,
Jul 20, 2014, 7:44:01 AM7/20/14
to coinb...@googlegroups.com
ok, what does PIL do exactly?


To unsubscribe from this group and stop receiving emails from it, send an email to coinboxpos+...@googlegroups.com.

To post to this group, send email to coinb...@googlegroups.com.
Visit this group at http://groups.google.com/group/coinboxpos.
For more options, visit https://groups.google.com/d/optout.



--
Jonathan Aquilina

Jad Kik

unread,
Jul 20, 2014, 7:49:10 AM7/20/14
to coinb...@googlegroups.com
Image Processing. I use it for the product images, e.g. resizing, converting, thumbnails, that kind of stuff.

Usually it's installed by default, even in a virtualenv. I've noticed it isn't installed in virtual environments on Windows, IIRC. I'm not sure why it isn't installed on gentoo.

Jonathan Aquilina

unread,
Jul 20, 2014, 7:55:12 AM7/20/14
to coinb...@googlegroups.com
gentoo is a bit different then most distros as the package tree is all source based. not binary based like ubuntu or debian

i would love to help debug the issues im seeing are there any upstream patches?
like gentoo i have python-imaging which im guessing isnt the same as PIL but it installs python pillow etc if i saw correctly



To unsubscribe from this group and stop receiving emails from it, send an email to coinboxpos+...@googlegroups.com.

To post to this group, send email to coinb...@googlegroups.com.
Visit this group at http://groups.google.com/group/coinboxpos.
For more options, visit https://groups.google.com/d/optout.



--
Jonathan Aquilina

Jonathan Aquilina

unread,
Jul 20, 2014, 1:01:04 PM7/20/14
to coinb...@googlegroups.com
if i install python imaging as that is what google returned me should that solve the problem?
--
Jonathan Aquilina

Jonathan Aquilina

unread,
Jul 21, 2014, 3:05:01 AM7/21/14
to coinb...@googlegroups.com
Can i make a suggestion on this. Can PIL/pillow be an option thing to have installed? For what I am planning on using coinbox for its rather useless.
--
Jonathan Aquilina

Jad Kik

unread,
Jul 21, 2014, 4:29:57 AM7/21/14
to coinb...@googlegroups.com
I'll see if I can do it.

For now though, if you prefer to install it from gentoo's package manager:
  • you can create the virtualenv with `--system-site-packages` and install PIL from the package manager `python-imaging`
  • or you can do all the steps outside of a virtual environment, and install PIL from the package manager.
Jonathan Aquilina

Jonathan Aquilina

unread,
Jul 21, 2014, 5:20:55 AM7/21/14
to coinb...@googlegroups.com
does that mean i need to create a new virtualenv? or can i pass --system-site-packages


To unsubscribe from this group and stop receiving emails from it, send an email to coinboxpos+...@googlegroups.com.

To post to this group, send email to coinb...@googlegroups.com.
Visit this group at http://groups.google.com/group/coinboxpos.
For more options, visit https://groups.google.com/d/optout.



--
Jonathan Aquilina

Jonathan Aquilina

unread,
Jul 24, 2014, 3:14:14 PM7/24/14
to coinb...@googlegroups.com

Hi jad

Pil can that be made as a configurable option instead of required?

Jad Kik

unread,
Jul 24, 2014, 4:46:36 PM7/24/14
to coinb...@googlegroups.com
I made a change regarding this.

If PIL is not available it will not process the image and use it as is. No configuration for it, but it will emit a warning which you should see in the console.

Note that it's still declared in the setup.py file of coinbox-mod-base. So when you are installing that module comment 'PIL' out.

Let me know if this works for you. If you encounter any issue, I'll see what I can do.
Reply all
Reply to author
Forward
0 new messages