codypiersall / pynng

Python bindings for Nanomsg Next Generation.
https://pynng.readthedocs.io
MIT License
268 stars 58 forks source link

Missing wheel for python 3.10 #98

Open mentaal opened 2 years ago

mentaal commented 2 years ago

Hi there.

When trying to install pynng in a virtual environment, I get this output:

(pynng) @ c:\Users\gkuhn\python_envs
$ pip install pynng
Collecting pynng
  Using cached pynng-0.7.1.tar.gz (3.8 MB)
Requirement already satisfied: cffi in c:\users\gkuhn\python_envs\pynng\lib\site-packages (from pynng) (1.15.0)
Requirement already satisfied: sniffio in c:\users\gkuhn\python_envs\pynng\lib\site-packages (from pynng) (1.2.0)
Requirement already satisfied: pycparser in c:\users\gkuhn\python_envs\pynng\lib\site-packages (from cffi->pynng) (2.21)
Building wheels for collected packages: pynng
  Building wheel for pynng (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'c:\Users\gkuhn\python_envs\pynng\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gkuhn\\AppData\\Local\\Temp\\pip-install-_lsnddaz\\pynng_833f7a4b1d1c4976b0acd23e2b6511eb\\setup.py'"'"'; __file__='"'"'C:\\Users\\gkuhn\\AppData\\Local\\Temp\\pip-install-_lsnddaz\\pynng_833f7a4b1d1c4976b0acd23e2b6511eb\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\gkuhn\AppData\Local\Temp\pip-wheel-i2etpxqh'
       cwd: C:\Users\gkuhn\AppData\Local\Temp\pip-install-_lsnddaz\pynng_833f7a4b1d1c4976b0acd23e2b6511eb\
  Complete output (5 lines):
  running bdist_wheel
  running build
  running build_py
  error: [WinError 2] The system cannot find the file specified
  building mbedtls with: ['cmake', '-DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=true', '-A', 'win32', '-DENABLE_PROGRAMS=OFF', '-DCMAKE_BUILD_TYPE=Release', '-DCMAKE_INSTALL_PREFIX=../prefix', '..']
  ----------------------------------------
  ERROR: Failed building wheel for pynng
  Running setup.py clean for pynng
Failed to build pynng
Installing collected packages: pynng
    Running setup.py install for pynng ... error
    ERROR: Command errored out with exit status 1:
     command: 'c:\Users\gkuhn\python_envs\pynng\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gkuhn\\AppData\\Local\\Temp\\pip-install-_lsnddaz\\pynng_833f7a4b1d1c4976b0acd23e2b6511eb\\setup.py'"'"'; __file__='"'"'C:\\Users\\gkuhn\\AppData\\Local\\Temp\\pip-install-_lsnddaz\\pynng_833f7a4b1d1c4976b0acd23e2b6511eb\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\gkuhn\AppData\Local\Temp\pip-record-56v2thz6\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\Users\gkuhn\python_envs\pynng\include\site\python3.10\pynng'
         cwd: C:\Users\gkuhn\AppData\Local\Temp\pip-install-_lsnddaz\pynng_833f7a4b1d1c4976b0acd23e2b6511eb\
    Complete output (4 lines):
    running install
    running build
    running build_py
    error: [WinError 183] Cannot create a file when that file already exists: 'mbedtls/build'
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\Users\gkuhn\python_envs\pynng\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\gkuhn\\AppData\\Local\\Temp\\pip-install-_lsnddaz\\pynng_833f7a4b1d1c4976b0acd23e2b6511eb\\setup.py'"'"'; __file__='"'"'C:\\Users\\gkuhn\\AppData\\Local\\Temp\\pip-install-_lsnddaz\\pynng_833f7a4b1d1c4976b0acd23e2b6511eb\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\gkuhn\AppData\Local\Temp\pip-record-56v2thz6\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\Users\gkuhn\python_envs\pynng\include\site\python3.10\pynng' Check the logs for full command output.
WARNING: You are using pip version 21.2.3; however, version 21.3.1 is available.
You should consider upgrading via the 'c:\Users\gkuhn\python_envs\pynng\Scripts\python.exe -m pip install --upgrade pip' command.

I am using Python 3.10: Python 3.10.0 (tags/v3.10.0:b494f59, Oct 4 2021, 18:46:30) [MSC v.1929 32 bit (Intel)]

mentaal commented 2 years ago

Ah I see, it's just because there isn't a Python 3.10 wheel on pypi

SimonSegerblomRex commented 2 years ago

@codypiersall, is it time for a new micro release now with Python 3.10 wheels since #102 has been merged?

aqc-carlodri commented 2 years ago

@codypiersall would love to see python 3.10 support!

MrSmith33 commented 2 years ago

Any chance for 3.10 support?

carlodri commented 2 years ago

@MrSmith33 I have managed to rebuild pynng on conda-forge, where windows and Python 3.10 builds are available.

superlevure commented 1 year ago

Anyone beside @codypiersall has the permissions to resolve this?