libbvg
libbvg copied to clipboard
pip can't get pylibbvg
On linux, this should work:
virtualenv bvg . bvg/bin/activate pip install pylibbvg
David
After installing cython, which should be required
(bvg)dgleich@recurrent:~/scratch$ pip install pylibbvg
Downloading/unpacking pylibbvg
Downloading pylibbvg-2.0.4.tar.gz
Running setup.py egg_info for package pylibbvg
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/dgleich/scratch/bvg/build/pylibbvg/setup.py", line 42, in <module>
long_description = open('README.rst').read(),
IOError: [Errno 2] No such file or directory: 'README.rst'
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/dgleich/scratch/bvg/build/pylibbvg/setup.py", line 42, in <module>
long_description = open('README.rst').read(),
IOError: [Errno 2] No such file or directory: 'README.rst'
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/dgleich/scratch/bvg/build/pylibbvg
Storing complete log in /home/dgleich/.pip/pip.log
This is still not working as of 2.0.12
Do you have install_requires?
http://ogirardot.wordpress.com/2013/01/05/state-of-the-pythonpypi-dependency-graph/
David
I did add the option "install_requires = ['cython >= 0.19.2’]” in the setup.py file. The problem is that the command “python setup.py build_ext - - inplace” works fine for building the library. I also tried the command “pip install - -global-option build_ext pylibbvg” but it failed to compile the C code. — Best regards, Yongyang Yu
On July 19, 2014 at 1:56:12 PM, David Gleich ([email protected]) wrote:
This is still not working as of 2.0.12
Do you have install_requires?
http://ogirardot.wordpress.com/2013/01/05/state-of-the-pythonpypi-dependency-graph/
David
— Reply to this email directly or view it on GitHub.
Please send me a report on this issue on Monday. The sequence of commands --
virtualenv bvg
. bvg/bin/activate
pip install pylibbvg
Must work.
pylibbvg installation issue is fixed. The virtualenv works fine with the new update of 2.0.21. The previous problem comes from missing the header file folder. I also figured out the way of building the C library before compiling the python interface.
This still fails for me.
Downloading pylibbvg-2.0.21.tar.gz (151Kb): 151Kb downloaded
Running setup.py egg_info for package pylibbvg
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/dgleich/scratch/bvg/build/pylibbvg/setup.py", line 4, in <module>
from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/dgleich/scratch/bvg/build/pylibbvg/setup.py", line 4, in <module>
from Cython.Distutils import build_ext
ImportError: No module named Cython.Distutils
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/dgleich/scratch/bvg/build/pylibbvg
Storing complete log in /home/dgleich/.pip/pip.log
It seems that install_requires=['Cython'] does not install the cython dependency correctly. I have updated it to a new version which forces to install cython before the installation of the package. I have tested it on a clean machine and cython is indeed installed before the library.
Okay, this seems like it's sorta working now. But we need to get the code for this version and the packaging script into the repository.