Open Joost-A opened 4 years ago
To be honest I don't know what is necessary to support this kind of package with conda... conda has always given me problems. Can you try to manually build the package on your machine instead of downloading it from PyPI?
cd python
python setup.py sdist bdist_wheel;
Thank you for your quick response. If I try building it manually as you suggested I get the following error message:
C:\Users\user\ovf-master\python>python setup.py sdist bdist_wheel;
Traceback (most recent call last):
File "setup.py", line 49, in <module>
META_FILE = read(META_PATH)
File "setup.py", line 45, in read
with codecs.open(os.path.join(HERE, *parts), "rb", "utf-8") as f:
File "C:\Users\user\AppData\Local\Programs\Python\Python37-32\lib\codecs.py", line 898, in open
file = builtins.open(filename, mode, buffering)
FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\user\\ovf-master\\python\\ovf\\__init__.py'
I looked around for the __init__.py file, but I couldn't find it so I (with my basic python knowledge) am not quite sure why it is called. Any help is appreciated.
The __init__.py
file is automatically generated by cmake (https://cmake.org).
Here are the steps to build from source, that worked for me:
cmake
on the source directory. You can use the cmake GUI for that. Make sure to set OVF_BUILD_PYTHON_BINDINGS=ON.ovf.sln
(and the __init.py__
file). Open the solution in Visual Studio and build it from there. This will create the ovf.dll
file, which I copied to the ovf\python
directory.cd python python setup.py sdist bdist_wheel;
Dear @Joost-A, were you able to resolve your issue? If so, I'd like to close this.
For reference, the Python-package build in the CI is currently: https://github.com/spirit-code/ovf/blob/ba6cab7a6627254801ebc4966af3fe53c0c3fff7/.github/workflows/ci.yml#L135-L159
I tried to install the package with the anaconda prompt on a windows 10 system using the command 'pip install ovf'. I recieved the following error message:
I then tried to clone the respository with git. I gave the anaconda prompt the command: "pip install git+https://github.com/spirit-code/ovf.git" and got the following error message.
Details; -python version: 3.6 -pip version: 20.0.2 -operating system : 64 bit windows 10 -git version: 2.25.1.windows.1