Comments (9)
Raised an issue upstream.
from pypy.
Do you still encounter the issue using the version before the change pypy:3.6-7.3.0
?
from pypy.
@wglambert No, using the official 7.3.0 version works as intended. That's why I reported the issue as related specifically to version 7.3.1
Sorry I wasn't clear enough
from pypy.
Sorry for the delay here -- is there a really minimal example we can use to reproduce? I'm unfortunately not very familiar with uwsgi. 😇
from pypy.
No problem.
I reproduced by running the following commands inside a 3.6-7.3.0 container:
root@0787c616e556:/# pip install uwsgi
root@0787c616e556:/# uwsgi -T --http-socket :8000 --pypy-home /opt/pypy/bin/pypy3 --pypy-lib /opt/pypy/bin/libpypy3-c.so
This causes the error above:
unable to set pypy home to "/opt/pypy/bin/pypy3"
from pypy.
Ah, interesting. Looking at https://uwsgi-docs.readthedocs.io/en/latest/PyPy.html, I think --pypy-home
should just be set to /opt/pypy
?
Here's the results of my slightly adjusted test:
$ docker pull pypy:3
3: Pulling from library/pypy
Digest: sha256:df5733286236667bba1d312da7166afd99285c4279947c92ae12df6f864fa576
Status: Image is up to date for pypy:3
docker.io/library/pypy:3
$ docker run -it --rm pypy:3 bash
root@cce564c459d6:/# pip install uwsgi
Collecting uwsgi
Downloading uWSGI-2.0.19.1.tar.gz (803 kB)
|████████████████████████████████| 803 kB 7.3 MB/s
Building wheels for collected packages: uwsgi
Building wheel for uwsgi (setup.py) ... done
Created wheel for uwsgi: filename=uWSGI-2.0.19.1-pp36-pypy36_pp73-linux_x86_64.whl size=519300 sha256=44f9ee3c32cd4a9e0e8efb61f04a76c262f4f288b6fea3a0c16d90af2ad468b7
Stored in directory: /root/.cache/pip/wheels/dc/19/02/f60965a89e11274f20b4538d304410073d294f2f8f2706cf0d
Successfully built uwsgi
Installing collected packages: uwsgi
Successfully installed uwsgi-2.0.19.1
WARNING: You are using pip version 20.2.4; however, version 20.3 is available.
You should consider upgrading via the '/opt/pypy/bin/pypy3 -m pip install --upgrade pip' command.
root@cce564c459d6:/# uwsgi -T --http-socket :9090 --pypy-home /opt/pypy --pypy-lib /opt/pypy/bin/libpypy3-c.so
*** Starting uWSGI 2.0.19.1 (64bit) on [Mon Nov 30 18:21:50 2020] ***
compiled with version: 8.3.0 on 30 November 2020 18:20:21
os: Linux-5.7.0-0.bpo.2-amd64 #1 SMP Debian 5.7.10-1~bpo10+1 (2020-07-30)
nodename: cce564c459d6
machine: x86_64
clock source: unix
pcre jit disabled
detected number of CPU cores: 12
current working directory: /
detected binary path: /opt/pypy/bin/uwsgi
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
*** WARNING: you are running uWSGI without its master process manager ***
your memory page size is 4096 bytes
detected max file descriptor number: 1048576
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
uwsgi socket 0 bound to TCP address :9090 fd 3
uWSGI running as root, you can use --uid/--gid/--chroot options
*** WARNING: you are running uWSGI as root !!! (use the --uid flag) ***
debug: OperationError:
debug: operror-type: SyntaxError
debug: operror-value: ("Missing parentheses in call to 'print'", ('c callback', 332, 15, ' print "PyPy WARNING: unable to load logging.config"\n', 0))
from pypy.
Any news here? I am utilizing a slightly different approach with venv but in the end, I am running into the same issue.
from pypy.
debug: operror-type: SyntaxError debug: operror-value: ("Missing parentheses in call to 'print'", ('c callback', 332, 15, ' print "PyPy WARNING: unable to load logging.config"\n', 0))
Seems that the problem is already fixed on master but not here 2.0.19.1
from pypy.
Closing in favor of the (more appropriate) uwsgi discussions. 👍
from pypy.
Related Issues (20)
- [pypy3] build fails because dublicate pip HOT 3
- Update to pypy 7.0 (Python 3.6), which TAG to use to pull it? HOT 3
- truncate lib HOT 13
- pypy 2.7 with a newer Debian release HOT 1
- Release 7.3.1 HOT 1
- lzma module doesn't work HOT 1
- can not install pikepdf by pip install ... HOT 4
- `thread` module is missing HOT 10
- pypy3-libs missing HOT 2
- Remove python 2.7 installation inside pypy images HOT 1
- Latest images missing `linux/s390x` platform HOT 1
- Pypy ppc64le images missing from hub.docker.com HOT 3
- Use a newer version of setuptools for pypy3 HOT 3
- Add a shared tag for RC versions HOT 3
- pypy is built against an ancient version of SQLite HOT 1
- Wrong shebang on cgi.py HOT 4
- No images for `arm64` available HOT 4
- Move "docker pull pypy:3" to pypy3.8 instead of pypy3.7 HOT 3
- 3.10 image 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 pypy.