Closed Gition closed 2 years ago
It still can't find expat, bzip2 and zlib. Please note that you need the development version of these libraries which inlcudes dll and header files. Not finding pthreads on windows is normal.
We currently use Miniconda to get us all the dependencies we need, see the CI script to supply the libraries. You could try that.
It still can't find expat, bzip2 and zlib. Please note that you need the development version of these libraries which inlcudes dll and header files. Not finding pthreads on windows is normal.
We currently use Miniconda to get us all the dependencies we need, see the CI script to supply the libraries. You could try that.
Hi Ionvia,
I think I can't access the CI script to supply the libraries. Could you give me some guidance to do that.
Thank you a lot.
Sorry, bad copy&paste. The link is: https://github.com/osmcode/pyosmium/blob/633a3d95348678544db4d968d20c6718dbeb3390/appveyor.yml
Sorry, bad copy&paste. The link is: https://github.com/osmcode/pyosmium/blob/633a3d95348678544db4d968d20c6718dbeb3390/appveyor.yml
Hi, What am I supposed to do with this script please? With miniconda I am getting:
EnvironmentSectionNotValid: The following sections on 'C:\Users\mattm\appveyor.yml' are invalid and will be ignored:
Is there not a more straightforward way to install expat, bzip2, and zlib, so that I can use an already-existing venv in Windows?
You are meant to read the file and then follow a similar path to install the libraries. That's nothing automatic except for appveyor.
You can try the binary wheels from the latest action build. Download the pyosmium-win64-dist, unzip it and then use pip to install the whl
file that matches your Python version. Should now be working for all supported Python versions.
There will be proper binary wheels for Windows for all versions in the next release.
3.3.0 is out which comes with Windows binary wheels for Python 3.5 - 3.10.
Hi there,
I use Win10 x64 with a 3.9.2 version of python. Install osmium with: pip install osmium failed even though I correctly set these three variables like system variables:
EXPAT_INCLUDE_DIR BZIP2_INCLUDE_DIR ZLIB_INCLUDE_DIR
It seems that pthread.h also is not found. Thank you.
Collecting osmium Using cached osmium-3.2.0.tar.gz (2.3 MB) Requirement already satisfied: requests in c:\prgfiles\python39\lib\site-packages (from osmium) (2.25.1) Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\prgfiles\python39\lib\site-packages (from requests->osmium) (1.26.4) Requirement already satisfied: idna<3,>=2.5 in c:\prgfiles\python39\lib\site-packages (from requests->osmium) (2.10) Requirement already satisfied: chardet<5,>=3.0.2 in c:\prgfiles\python39\lib\site-packages (from requests->osmium) (4.0.0) Requirement already satisfied: certifi>=2017.4.17 in c:\prgfiles\python39\lib\site-packages (from requests->osmium) (2020.12.5) Building wheels for collected packages: osmium Building wheel for osmium (setup.py): started Building wheel for osmium (setup.py): finished with status 'error' Running setup.py clean for osmium Failed to build osmium Installing collected packages: osmium Running setup.py install for osmium: started Running setup.py install for osmium: finished with status 'error' 2021-08-18T14:19:42,682 Using pip 21.2.4 from c:\prgfiles\python39\lib\site-packages\pip (python 3.9) 2021-08-18T14:19:42,682 Non-user install because site-packages writeable
2021-08-18T14:19:43,994 Building wheels for collected packages: osmium
2021-08-18T14:19:44,245 running bdist_wheel 2021-08-18T14:19:44,245 running build 2021-08-18T14:19:44,245 running build_py 2021-08-18T14:19:44,260 creating build 2021-08-18T14:19:44,260 creating build\lib.win-amd64-3.9 2021-08-18T14:19:44,260 creating build\lib.win-amd64-3.9\osmium 2021-08-18T14:19:44,260 copying src\osmium\helper.py -> build\lib.win-amd64-3.9\osmium 2021-08-18T14:19:44,276 copying src\osmium\version.py -> build\lib.win-amd64-3.9\osmium 2021-08-18T14:19:44,276 copying src\osmium__init.py -> build\lib.win-amd64-3.9\osmium 2021-08-18T14:19:44,276 creating build\lib.win-amd64-3.9\osmium\osm 2021-08-18T14:19:44,276 copying src\osmium/osm\mutable.py -> build\lib.win-amd64-3.9\osmium/osm 2021-08-18T14:19:44,276 copying src\osmium/osm\init.py -> build\lib.win-amd64-3.9\osmium/osm 2021-08-18T14:19:44,276 creating build\lib.win-amd64-3.9\osmium\replication 2021-08-18T14:19:44,276 copying src\osmium/replication\server.py -> build\lib.win-amd64-3.9\osmium/replication 2021-08-18T14:19:44,276 copying src\osmium/replication\utils.py -> build\lib.win-amd64-3.9\osmium/replication 2021-08-18T14:19:44,291 copying src\osmium/replication\init__.py -> build\lib.win-amd64-3.9\osmium/replication 2021-08-18T14:19:44,291 running build_ext 2021-08-18T14:19:44,345 -- Building for: Visual Studio 16 2019 2021-08-18T14:19:44,360 -- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19042. 2021-08-18T14:19:45,713 -- The C compiler identification is MSVC 19.29.30133.0 2021-08-18T14:19:46,525 -- The CXX compiler identification is MSVC 19.29.30133.0 2021-08-18T14:19:46,556 -- Detecting C compiler ABI info 2021-08-18T14:19:47,385 -- Detecting C compiler ABI info - done 2021-08-18T14:19:47,392 -- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped 2021-08-18T14:19:47,392 -- Detecting C compile features 2021-08-18T14:19:47,392 -- Detecting C compile features - done 2021-08-18T14:19:47,400 -- Detecting CXX compiler ABI info 2021-08-18T14:19:48,193 -- Detecting CXX compiler ABI info - done 2021-08-18T14:19:48,193 -- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped 2021-08-18T14:19:48,193 -- Detecting CXX compile features 2021-08-18T14:19:48,193 -- Detecting CXX compile features - done 2021-08-18T14:19:48,275 -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) 2021-08-18T14:19:48,275 -- Looking for pthread.h 2021-08-18T14:19:48,822 -- Looking for pthread.h - not found 2021-08-18T14:19:48,822 -- Found Threads: TRUE 2021-08-18T14:19:48,838 -- Found Protozero: C:/Users/icojoc/AppData/Local/Temp/pip-install-a9pr7kt5/osmium_6fa5bfd14b0b420595aab711eca0274b/contrib/protozero/include (found suitable version "1.7.0", minimum required is "1.6.3") 2021-08-18T14:19:48,838 CMake Warning at cmake/FindOsmium.cmake:138 (message): 2021-08-18T14:19:48,838 Osmium: Can not find some libraries for PBF input/output, please install 2021-08-18T14:19:48,838 them or configure the paths. 2021-08-18T14:19:48,838 Call Stack (most recent call first): 2021-08-18T14:19:48,838 CMakeLists.txt:9 (find_package)
2021-08-18T14:19:48,853 -- Could NOT find EXPAT (missing: EXPAT_INCLUDE_DIR) 2021-08-18T14:19:48,885 -- Could NOT find BZip2 (missing: BZIP2_LIBRARIES BZIP2_INCLUDE_DIR) 2021-08-18T14:19:48,901 -- Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR) 2021-08-18T14:19:48,901 CMake Warning at cmake/FindOsmium.cmake:164 (message): 2021-08-18T14:19:48,901 Osmium: Can not find some libraries for XML input/output, please install 2021-08-18T14:19:48,901 them or configure the paths. 2021-08-18T14:19:48,901 Call Stack (most recent call first): 2021-08-18T14:19:48,901 CMakeLists.txt:9 (find_package)