Giter Club home page Giter Club logo

Comments (9)

Falldog avatar Falldog commented on June 18, 2024

@Guoozz I can't see the steps about pyconcrete, only the way to build python from source

from pyconcrete.

k870611 avatar k870611 commented on June 18, 2024

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.

zoakes avatar zoakes commented on June 18, 2024

I have this same issue, did anyone figure this out?

from pyconcrete.

tompap avatar tompap commented on June 18, 2024

Same here :/

from pyconcrete.

javadba avatar javadba commented on June 18, 2024

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.

pfee avatar pfee commented on June 18, 2024

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.

pfee avatar pfee commented on June 18, 2024

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.

PIP issue #2732

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.

pfee avatar pfee commented on June 18, 2024

Potential way to pass the passphase into setup.py without needing input from the terminal:

https://stackoverflow.com/questions/18725137/how-to-obtain-arguments-passed-to-setup-py-from-pip-with-install-option

https://pip.pypa.io/en/stable/reference/pip_install/#cmdoption-install-option

from pyconcrete.

Falldog avatar Falldog commented on June 18, 2024

It should be fix in #92

from pyconcrete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.