Comments (3)
Hi, @jujes, and thanks for reporting this.
The Docker builds aren't currently used by us for anything and therefore we're not actively checking that they work. However, we would like make Shoop easy to install and it would be nice to have a working Docker image too, as on option for trying out Shoop.
I checked more details about the error by triggering a build from fresh master at Docker Hub and got a more detailed error log: https://hub.docker.com/r/shoopio/shoop/builds/b6kr7zen9wmcpnzu4pujy2a/
The log is quite unreadable, but I managed to find a fatal error from it:
bower ESUDO Cannot be run with sudo
Additional error details:
Since bower is a user command, there is no need to execute it with superuser permissions.
If you're having permission errors when using bower without sudo, please spend a few minutes learning more about how your system should work and make any necessary repairs.
So bower cannot be ran as root, as our Dockerfile currently does. (Found similar issues on other projects too, like this one: GeoNode/geonode#1070)
So, I see two possible ways to fix this:
- (A) Add a separate
pip wheel /var/www/shoop/working_copy
to the Dockefile and run it as non-root user. Then do thepip install
part using the generated wheel file, i.e. something likepip install dist/shoop*.wheel
- (B) Add the
--allow-root
option to our Bower invocations.
I think A is better and shouldn't be hard to implement. Want to give it a try?
from shuup.
Hi @suutari-ai
I dont' know how separate pip whell in the Dockerfile ..
now this is my output:
Running setup.py install for shuup: started
Running setup.py install for shuup: finished with status 'error'
Complete output from command /var/www/shuup/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-latoanes-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\
n', '\n'), __file__, 'exec'))" install --record /tmp/pip-cdgjmfy3-record/install-record.txt --single-version-externally-managed --compile --install-headers /var/www/shuup/venv/include/site/python3.4/shuup:
--- Logging error ---
Traceback (most recent call last):
File "/usr/lib/python3.4/logging/__init__.py", line 980, in emit
stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 1561-1563: ordinal not in range(128)
Call stack:
File "/var/www/shuup/venv/bin/pip", line 11, in <module>
sys.exit(main())
File "/var/www/shuup/venv/lib/python3.4/site-packages/pip/__init__.py", line 221, in main
return command.main(cmd_args)
File "/var/www/shuup/venv/lib/python3.4/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/var/www/shuup/venv/lib/python3.4/site-packages/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/var/www/shuup/venv/lib/python3.4/site-packages/pip/req/req_set.py", line 742, in install
**kwargs
File "/var/www/shuup/venv/lib/python3.4/site-packages/pip/req/req_install.py", line 880, in install
spinner=spinner,
File "/var/www/shuup/venv/lib/python3.4/site-packages/pip/utils/__init__.py", line 714, in call_subprocess
'\n----------------------------------------'
Message: 'running install\nrunning build\nrunning build_production_resources\n*** (1/5) Building: ./shuup/xtheme\n\n> [email protected] build
.
.
.
.
Arguments: ()
Command "/var/www/shuup/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-latoanes-build/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-cdgjmfy3-record/install-record.txt --single-version-externally-managed --compile --install-headers /var/www/shuup/venv/include/site/python3.4/shuup" failed with error code 1 in /tmp/pip-latoanes-build/
The command '/bin/sh -c /var/www/shuup/venv/bin/pip install /var/www/shuup/working_copy' returned a non-zero code: 1
from shuup.
Fixed by PR #873.
from shuup.
Related Issues (20)
- Contact
- npm build failes on windows
- Error in docker HOT 5
- Unable to make the APIs work. No module name shuup.api found
- Okay
- django-enumfields==2.0.0 gives AttributeError: '_EnumDict' object has no attribute '_cls_name'
- GDPR - shuup_mutaddress rows not anonymized
- Anonymizing a Contact anonymizes Admin as well
- GDPR - Download Data button doesnโt return any data
- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-07on5v5j/cairocffi/ HOT 2
- JavaScript Files are not loading in Shuup Admin
- Add SECURITY.md HOT 3
- Default products are not visible on home page. HOT 1
- Error while docker-compose up HOT 2
- Is shuup public repo dead ? HOT 1
- Add Contributing.md
- Add a code of conduct.md
- can't docker-compose up
- Shuup Still Active? HOT 3
- The Multi vendor Addon HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shuup.