Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip can't get pylibbvg #15

Open
dgleich opened this issue Jul 18, 2014 · 8 comments
Open

pip can't get pylibbvg #15

dgleich opened this issue Jul 18, 2014 · 8 comments
Assignees

Comments

@dgleich
Copy link
Owner

dgleich commented Jul 18, 2014

On linux, this should work:

virtualenv bvg
. bvg/bin/activate
pip install pylibbvg

David

@dgleich
Copy link
Owner Author

dgleich commented Jul 18, 2014

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

@dgleich
Copy link
Owner Author

dgleich commented Jul 19, 2014

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

@yuyongyang800
Copy link
Collaborator

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.

@dgleich
Copy link
Owner Author

dgleich commented Jul 20, 2014

Please send me a report on this issue on Monday. The sequence of commands --

virtualenv bvg
. bvg/bin/activate
pip install pylibbvg

Must work.

@yuyongyang800
Copy link
Collaborator

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.

@dgleich
Copy link
Owner Author

dgleich commented Jul 21, 2014

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

@yuyongyang800
Copy link
Collaborator

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.

@dgleich
Copy link
Owner Author

dgleich commented Jul 22, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants