Comments (9)
@Guoozz I can't see the steps about pyconcrete
, only the way to build python from source
from pyconcrete.
I face same problem too, my OS is centos 7.2, Python 3.6.5 |Anaconda, Inc. And I hava update setuptools to 40.6.3, wheel to 0.32.3, pip to 18.1, but it stiil show the error msg below
[root@localhost tool]# python -m pip install pyconcrete-0.12.1.tar.gz
Processing ./pyconcrete-0.12.1.tar.gz
Building wheels for collected packages: pyconcrete
Running setup.py bdist_wheel for pyconcrete ... error
Complete output from command /home/anaconda3/bin/python -u -c "import setuptoo ls, tokenize;file='/tmp/pip-req-build-d9t_g5fy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(comp ile(code, file, 'exec'))" bdist_wheel -d /tmp/pip-wheel-u_ks8h_2 --python-ta g cp36:
running bdist_wheel
running build
please input the passphrase
for encrypt your python script (enter for default) :
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-req-build-d9t_g5fy/setup.py", line 416, in
distclass=ExeDistribution,
File "/home/anaconda3/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/home/anaconda3/lib/python3.6/distutils/dist.py", line 955, in run_com mands
self.run_command(cmd)
File "/home/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_com mand
cmd_obj.run()
File "/home/anaconda3/lib/python3.6/site-packages/wheel/bdist_wheel.py", lin e 188, in run
self.run_command('build')
File "/home/anaconda3/lib/python3.6/distutils/cmd.py", line 313, in run_comm and
self.distribution.run_command(command)
File "/home/anaconda3/lib/python3.6/distutils/dist.py", line 974, in run_com mand
cmd_obj.run()
File "/tmp/pip-req-build-d9t_g5fy/setup.py", line 167, in run
self.pre_process()
File "/tmp/pip-req-build-d9t_g5fy/setup.py", line 140, in pre_process
self.passphrase = input("please input the passphrase \nfor encrypt your py thon script (enter for default) : \n")
EOFError: EOF when reading a line
Failed building wheel for pyconcrete
Running setup.py clean for pyconcrete
Failed to build pyconcrete
Installing collected packages: pyconcrete
Running setup.py install for pyconcrete ... error
Complete output from command /home/anaconda3/bin/python -u -c "import setupt ools, tokenize;file='/tmp/pip-req-build-d9t_g5fy/setup.py';f=getattr(tokeniz e, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(co mpile(code, file, 'exec'))" install --record /tmp/pip-record-lcc9sxv3/instal l-record.txt --single-version-externally-managed --compile:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-version-externally-managed not recognized
----------------------------------------
Command "/home/anaconda3/bin/python -u -c "import setuptools, tokenize;file= '/tmp/pip-req-build-d9t_g5fy/setup.py';f=getattr(tokenize, 'open', open)(_file _);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'e xec'))" install --record /tmp/pip-record-lcc9sxv3/install-record.txt --single-ve rsion-externally-managed --compile" failed with error code 1 in /tmp/pip-req-bui ld-d9t_g5fy/
Does have other way to solve this error ? The Info I search is said update setuptools and wheel can solve this problem.
Thanks
from pyconcrete.
I have this same issue, did anyone figure this out?
from pyconcrete.
Same here :/
from pyconcrete.
likewise on macos mojave
Building wheel for pyconcrete (setup.py) ... error
ERROR: Complete output from command /usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/tmp/pip-install-4y3lrwm3/pyconcrete/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /private/tmp/pip-wheel-5abe01_t --python-tag cp37:
ERROR: running bdist_wheel
running build
please input the passphrase
for encrypt your python script (enter for default) :
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/private/tmp/pip-install-4y3lrwm3/pyconcrete/setup.py", line 416, in <module>
distclass=ExeDistribution,
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/local/lib/python3.7/site-packages/wheel/bdist_wheel.py", line 192, in run
self.run_command('build')
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/lib/python3.7/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/private/tmp/pip-install-4y3lrwm3/pyconcrete/setup.py", line 167, in run
self.pre_process()
File "/private/tmp/pip-install-4y3lrwm3/pyconcrete/setup.py", line 140, in pre_process
self.passphrase = input("please input the passphrase \nfor encrypt your python script (enter for default) : \n")
EOFError: EOF when reading a line
----------------------------------------
ERROR: Failed building wheel for pyconcrete
Running setup.py clean for pyconcrete
Failed to build pyconcrete
Installing collected packages: pyconcrete
Running setup.py install for pyconcrete ... error
ERROR: Complete output from command /usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/tmp/pip-install-4y3lrwm3/pyconcrete/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-y44af_gf/install-record.txt --single-version-externally-managed --compile:
ERROR: usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: option --single-version-externally-managed not recognized
----------------------------------------
ERROR: Command "/usr/local/opt/python/bin/python3.7 -u -c 'import setuptools, tokenize;__file__='"'"'/private/tmp/pip-install-4y3lrwm3/pyconcrete/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/tmp/pip-record-y44af_gf/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-4y3lrwm3/pyconcrete/
from pyconcrete.
Same with openSUSE Leap 15.1, python 3.6.9, python3-pip-10.0.1-lp151.2.2.noarch
Some of the error message:
please input the passphrase
for encrypt your python script (enter for default) :
Traceback (most recent call last):
File "<string>", line 1, in <module>
<snip ...>
File "/tmp/pip-install-kzk6i9r5/pyconcrete/setup.py", line 140, in pre_process
self.passphrase = input("please input the passphrase \nfor encrypt your python script (enter for default) : \n")
EOFError: EOF when reading a line
----------------------------------------
Failed building wheel for pyconcrete
from pyconcrete.
Looking around elsewhere for mentions of pip install and stdin, it appears that pip used to allow user interaction while setup.py was running. However this is no longer the case and pip closes stdin, preventing setup.py reading.
This seems like the reason why the "input()" call in setup.py is failing. Hence the fix may be to make pyconcrete's setup.py non-interactive.
from pyconcrete.
Potential way to pass the passphase into setup.py without needing input from the terminal:
https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-install-option
from pyconcrete.
It should be fix in #92
from pyconcrete.
Related Issues (20)
- Does pyconcrete generate .pyc files during execution, if yes which location? HOT 2
- How work with pip to install pye library?
- No module named xx
- Error opening pye-protected models.py and migrations/* files HOT 1
- Can't migrate the database.
- Variable key for different files HOT 1
- Can't Install On Termux HOT 1
- Installation Error in Kali Linux ( on python 3.8) HOT 1
- I want to run pye in a script HOT 3
- Password change HOT 1
- Encryption for installed packages HOT 2
- Can't work
- whether encrypted pye file can be decrypted to pyc file? HOT 1
- Testing application HOT 2
- Support for Python 3.10 HOT 1
- Cannot build or install it HOT 2
- Jinja2 and Django HOT 1
- Cannot get change of passphrase working HOT 1
- Error using multiprocessing with pyconcrete
- Example of django doesn't work HOT 4
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 pyconcrete.