Skip to content

Error #5

Closed
Closed

Description

@thezakman

when installing:

installing library code to build/bdist.linux-i686/egg
running install_lib
warning: install_lib: 'build/lib.linux-i686-2.7' does not exist -- no Python modules to install

root@darkmatter# cpp2python sample.c

Traceback (most recent call last):
File "/usr/local/bin/cpp2python", line 9, in
load_entry_point('cpp2python==0.2.0', 'console_scripts', 'cpp2python')()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 558, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2682, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2355, in load
return self.resolve()
File "/usr/local/lib/python2.7/dist-packages/pkg_resources/init.py", line 2361, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
ImportError: No module named cpp2python
root@darkmatter:~/Desktop/CTF-Challenges

Activity

  1. andreikop commented on Aug 23, 2015

    @andreikop
    Owner

    @stuaxo, maybe you can look at this?
    I'm having the same problem on Mint 16

  2. stuaxo commented on Aug 23, 2015

    @stuaxo
    Contributor

    Sure, I've got a mint vm, will give it a go ..

  3. stuaxo commented on Aug 23, 2015

    @stuaxo
    Contributor

    It "works for me" on Mint 17, 32 Bit ... I'll need to get a version 16 VM and retry.

    Can you paste the exact commands you used to grab the source and their output ?

    Here is what I did:

    $ sudo apt-get install python python-setuptools git
    $ git clone https://github.com/hlamer/cpp2python
    $ cd cpp2python
    $ sudo python setup.py install

    After that I'm able to run cpp2python

    (I haven't pasted the full output as I need to sort out the guest extensions)

  4. andreikop commented on Aug 23, 2015

    @andreikop
    Owner

    @stuaxo, I also do sudo python setup.py install, repo is cloned, packages are installed.

    Hmm, but my box should not be used as a reference since I have Mint 16 + trusty repositories enabled. It can be considered as broken installation.

    @thezakman, which distribution do you use?

  5. thezakman commented on Aug 23, 2015

    @thezakman
    Author

    I used Debian, will post The output when i get home.

    Em 23/08/2015, às 17:06, Andrei Kopats notifications@github.com escreveu:

    @stuaxo, I also do sudo python setup.py install, repo is cloned, packages are installed.

    Hmm, bug my box should not be used as a reference since I have Mint 16 + trusty repositories enabled. It can be considered as broken installation.

    @thezakman, which distribution do you use?

    —
    Reply to this email directly or view it on GitHub.

  6. andreikop commented on Aug 27, 2015

    @andreikop
    Owner

    @stuaxo, here is my output on Linux Mint 17.2 (based on Ubuntu 14.04)

    a@a-desktop ~/code/cpp2python (master)$ sudo python setup.py  install 
    [sudo] password for a: 
    running install
    running bdist_egg
    running egg_info
    creating cpp2python.egg-info
    writing cpp2python.egg-info/PKG-INFO
    writing top-level names to cpp2python.egg-info/top_level.txt
    writing dependency_links to cpp2python.egg-info/dependency_links.txt
    writing entry points to cpp2python.egg-info/entry_points.txt
    writing manifest file 'cpp2python.egg-info/SOURCES.txt'
    reading manifest file 'cpp2python.egg-info/SOURCES.txt'
    writing manifest file 'cpp2python.egg-info/SOURCES.txt'
    installing library code to build/bdist.linux-x86_64/egg
    running install_lib
    warning: install_lib: 'build/lib.linux-x86_64-2.7' does not exist -- no Python modules to install
    
    creating build
    creating build/bdist.linux-x86_64
    creating build/bdist.linux-x86_64/egg
    creating build/bdist.linux-x86_64/egg/EGG-INFO
    copying cpp2python.egg-info/PKG-INFO -> build/bdist.linux-x86_64/egg/EGG-INFO
    copying cpp2python.egg-info/SOURCES.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
    copying cpp2python.egg-info/dependency_links.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
    copying cpp2python.egg-info/entry_points.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
    copying cpp2python.egg-info/top_level.txt -> build/bdist.linux-x86_64/egg/EGG-INFO
    zip_safe flag not set; analyzing archive contents...
    creating dist
    creating 'dist/cpp2python-0.2.0-py2.7.egg' and adding 'build/bdist.linux-x86_64/egg' to it
    removing 'build/bdist.linux-x86_64/egg' (and everything under it)
    Processing cpp2python-0.2.0-py2.7.egg
    Copying cpp2python-0.2.0-py2.7.egg to /usr/local/lib/python2.7/dist-packages
    Adding cpp2python 0.2.0 to easy-install.pth file
    Installing cpp2python script to /usr/local/bin
    
    Installed /usr/local/lib/python2.7/dist-packages/cpp2python-0.2.0-py2.7.egg
    Processing dependencies for cpp2python==0.2.0
    Finished processing dependencies for cpp2python==0.2.0
    
    a@a-desktop ~/code/cpp2python (master)*$ cpp2python 
    Traceback (most recent call last):
      File "/usr/local/bin/cpp2python", line 9, in <module>
        load_entry_point('cpp2python==0.2.0', 'console_scripts', 'cpp2python')()
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 351, in load_entry_point
        return get_distribution(dist).load_entry_point(group, name)
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2363, in load_entry_point
        return ep.load()
      File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2088, in load
        entry = __import__(self.module_name, globals(),globals(), ['__name__'])
    ImportError: No module named cpp2python
    a@a-desktop ~/code/cpp2python (master)*$ 
    
  7. stuaxo commented on Aug 27, 2015

    @stuaxo
    Contributor

    It looks like those are two different pythons - when you use sudo it's using the one in /usr/local and when you are the user it's using the /usr

  8. stuaxo commented on Aug 27, 2015

    @stuaxo
    Contributor

    If $ which python outputs /usr/bin/python then install it with sudo /usr/bin/python setup.py install

  9. andreikop commented on Aug 28, 2015

    @andreikop
    Owner

    cpp2python is installed to local, but I have only 1 Python interpreter at /usr/bin

  10. stuaxo commented on Aug 28, 2015

    @stuaxo
    Contributor

    Oh, yeah - weird.

    I can try and get an iso of 17.2 and see what happens, certainly on the 17.1 version I'm able to install git, python-setuptools and install it fine ..

  11. stuaxo commented on Aug 29, 2015

    @stuaxo
    Contributor

    Yay, reproduced it.. think it only worked as I was testing from a particular directory .. testing fix now ..

  12. thezakman commented on Sep 8, 2015

    @thezakman
    Author

    Thanks for fixing this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions