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

Installing module using pip giving error in build wheel #1123

Closed
sidhujasminder opened this issue Aug 4, 2017 · 5 comments
Closed

Installing module using pip giving error in build wheel #1123

sidhujasminder opened this issue Aug 4, 2017 · 5 comments

Comments

@sidhujasminder
Copy link

  • Pip version:9.0.1
  • Python version:2.7.10
  • Operating system: mac OSX

Description:

I am trying to get a python module successfully installed in the virtualenv. What happens is, that when in virtualenv it starts to build wheels for the module but it shows an error. But it is seen that the module is successfully installed and runs proper even with the error in bdist_wheel. It is expected that no such error should emerge executing the pip install command.

No such error is found when installing the module by cloning the module from git. "python setup.py install"

The link to the repository is: https://github.com/Juniper/jsnapy

PS: THIS ERROR DOES NOT COME UP WHEN INSTALLED USING SUDO.

What I've run:

virtualenv env_jsnapy
source env_jsnapy/bin/activate
pip install jsnapy

Collecting jsnapy
  Using cached jsnapy-1.2.0.tar.gz
Requirement already satisfied: junos-eznc in ./env_jsnapy/lib/python2.7/site-packages (from jsnapy)
Requirement already satisfied: colorama in ./env_jsnapy/lib/python2.7/site-packages (from jsnapy)
Requirement already satisfied: configparser in ./env_jsnapy/lib/python2.7/site-packages (from jsnapy)
Requirement already satisfied: pyparsing in ./env_jsnapy/lib/python2.7/site-packages (from jsnapy)
Requirement already satisfied: icdiff in ./env_jsnapy/lib/python2.7/site-packages (from jsnapy)
Requirement already satisfied: future in ./env_jsnapy/lib/python2.7/site-packages (from jsnapy)
Requirement already satisfied: lxml>=3.2.4 in ./env_jsnapy/lib/python2.7/site-packages (from junos-eznc->jsnapy)
Requirement already satisfied: pyserial in ./env_jsnapy/lib/python2.7/site-packages (from junos-eznc->jsnapy)
Requirement already satisfied: scp>=0.7.0 in ./env_jsnapy/lib/python2.7/site-packages (from junos-eznc->jsnapy)
Requirement already satisfied: jinja2>=2.7.1 in ./env_jsnapy/lib/python2.7/site-packages (from junos-eznc->jsnapy)
Requirement already satisfied: PyYAML>=3.10 in ./env_jsnapy/lib/python2.7/site-packages (from junos-eznc->jsnapy)
Requirement already satisfied: six in ./env_jsnapy/lib/python2.7/site-packages (from junos-eznc->jsnapy)
Requirement already satisfied: netaddr in ./env_jsnapy/lib/python2.7/site-packages (from junos-eznc->jsnapy)
Requirement already satisfied: paramiko>=1.15.2 in ./env_jsnapy/lib/python2.7/site-packages (from junos-eznc->jsnapy)
Requirement already satisfied: ncclient>=0.5.3 in ./env_jsnapy/lib/python2.7/site-packages (from junos-eznc->jsnapy)
Requirement already satisfied: MarkupSafe>=0.23 in ./env_jsnapy/lib/python2.7/site-packages (from jinja2>=2.7.1->junos-eznc->jsnapy)
Requirement already satisfied: pynacl>=1.0.1 in ./env_jsnapy/lib/python2.7/site-packages (from paramiko>=1.15.2->junos-eznc->jsnapy)
Requirement already satisfied: bcrypt>=3.1.3 in ./env_jsnapy/lib/python2.7/site-packages (from paramiko>=1.15.2->junos-eznc->jsnapy)
Requirement already satisfied: cryptography>=1.1 in ./env_jsnapy/lib/python2.7/site-packages (from paramiko>=1.15.2->junos-eznc->jsnapy)
Requirement already satisfied: pyasn1>=0.1.7 in ./env_jsnapy/lib/python2.7/site-packages (from paramiko>=1.15.2->junos-eznc->jsnapy)
Requirement already satisfied: setuptools>0.6 in ./env_jsnapy/lib/python2.7/site-packages (from ncclient>=0.5.3->junos-eznc->jsnapy)
Requirement already satisfied: cffi>=1.4.1 in ./env_jsnapy/lib/python2.7/site-packages (from pynacl>=1.0.1->paramiko>=1.15.2->junos-eznc->jsnapy)
Requirement already satisfied: ipaddress in ./env_jsnapy/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.15.2->junos-eznc->jsnapy)
Requirement already satisfied: asn1crypto>=0.21.0 in ./env_jsnapy/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.15.2->junos-eznc->jsnapy)
Requirement already satisfied: enum34 in ./env_jsnapy/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.15.2->junos-eznc->jsnapy)
Requirement already satisfied: idna>=2.1 in ./env_jsnapy/lib/python2.7/site-packages (from cryptography>=1.1->paramiko>=1.15.2->junos-eznc->jsnapy)
Requirement already satisfied: pycparser in ./env_jsnapy/lib/python2.7/site-packages (from cffi>=1.4.1->pynacl>=1.0.1->paramiko>=1.15.2->junos-eznc->jsnapy)
Building wheels for collected packages: jsnapy
  Running setup.py bdist_wheel for jsnapy ... error
  Complete output from command /Users/user_123/Desktop/jsnapy_test/env_jsnapy/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/v3/qxxjzwss1_dd4rf0x8314lyr0000gn/T/pip-build-UXWqCD/jsnapy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /var/folders/v3/qxxjzwss1_dd4rf0x8314lyr0000gn/T/tmpNBpgeKpip-wheel- --python-tag cp27:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/jnpr
  copying lib/jnpr/__init__.py -> build/lib/jnpr
  creating build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/__init__.py -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/check.py -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/jsnapy.py -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/notify.py -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/operator.py -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/setup_logging.py -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/snap.py -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/sqlite_get.py -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/sqlite_store.py -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/version.py -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/xml_comparator.py -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/jsnapy.cfg -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/logging.yml -> build/lib/jnpr/jsnapy
  copying lib/jnpr/jsnapy/content.html -> build/lib/jnpr/jsnapy
  running build_scripts
  creating build/scripts-2.7
  copying and adjusting tools/jsnap2py -> build/scripts-2.7
  changing mode of build/scripts-2.7/jsnap2py from 644 to 755
  installing to build/bdist.macosx-10.12-intel/wheel
  running install
  running install_lib
  creating build/bdist.macosx-10.12-intel
  creating build/bdist.macosx-10.12-intel/wheel
  creating build/bdist.macosx-10.12-intel/wheel/jnpr
  copying build/lib/jnpr/__init__.py -> build/bdist.macosx-10.12-intel/wheel/jnpr
  creating build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/__init__.py -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/check.py -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/content.html -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/jsnapy.cfg -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/jsnapy.py -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/logging.yml -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/notify.py -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/operator.py -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/setup_logging.py -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/snap.py -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/sqlite_get.py -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/sqlite_store.py -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/version.py -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  copying build/lib/jnpr/jsnapy/xml_comparator.py -> build/bdist.macosx-10.12-intel/wheel/jnpr/jsnapy
  running install_data
  creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc
  creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy
  creating build/bdist.macosx-10.12-intel/wheel/Users
  creating build/bdist.macosx-10.12-intel/wheel/Users/user_123
  creating build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop
  creating build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test
  creating build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy
  creating build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc
  creating build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy
  copying lib/jnpr/jsnapy/logging.yml -> build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy
  creating build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/var
  creating build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs
  creating build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
  copying logs/__init__.py -> build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
  copying logs/critical.log -> build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
  copying logs/debug.log -> build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
  copying logs/errors.log -> build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
  copying logs/info.log -> build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
  copying logs/jsnapy.log -> build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
  creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/__init__.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/config_check_no_test.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/config_diff.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/config_multiple_check.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/config_multiple_snapcheck.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/config_single_check.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/config_single_snapcheck.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/config_test_rpc.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/contains1.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/devices.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/first_test.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/main.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/module_check.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/module_data.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/module_device.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/module_snapcheck.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/send_mail.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_all_same.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_all_same2.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_bgp_neighbor.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_contains.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_delta.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_diff.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_exists.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_filter.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_full_output.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_get_config.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_in_range.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_interface.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_is_equal.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_is_gt.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_is_in.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_is_lt.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_no_diff.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_not_equal.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_not_exists.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_not_in.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_not_less.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_not_more.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_not_range.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_wo_mssg.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying samples/test_xml.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
  copying lib/jnpr/jsnapy/jsnapy.cfg -> build/bdist.macosx-10.12-intel/wheel/Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy
  creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/testfiles
  copying testfiles/README -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/testfiles
  creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/snapshots
  copying snapshots/README -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/snapshots
  running install_egg_info
  running egg_info
  writing requirements to lib/jsnapy.egg-info/requires.txt
  writing lib/jsnapy.egg-info/PKG-INFO
  writing top-level names to lib/jsnapy.egg-info/top_level.txt
  writing dependency_links to lib/jsnapy.egg-info/dependency_links.txt
  writing entry points to lib/jsnapy.egg-info/entry_points.txt
  reading manifest file 'lib/jsnapy.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  writing manifest file 'lib/jsnapy.egg-info/SOURCES.txt'
  Copying lib/jsnapy.egg-info to build/bdist.macosx-10.12-intel/wheel/jsnapy-1.2.0-py2.7.egg-info
  running install_scripts
  creating build/bdist.macosx-10.12-intel/wheel/jsnapy-1.2.0.data
  creating build/bdist.macosx-10.12-intel/wheel/jsnapy-1.2.0.data/scripts
  copying build/scripts-2.7/jsnap2py -> build/bdist.macosx-10.12-intel/wheel/jsnapy-1.2.0.data/scripts
  changing mode of build/bdist.macosx-10.12-intel/wheel/jsnapy-1.2.0.data/scripts/jsnap2py to 755
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/private/var/folders/v3/qxxjzwss1_dd4rf0x8314lyr0000gn/T/pip-build-UXWqCD/jsnapy/setup.py", line 188, in <module>
      'Topic :: Text Processing :: Markup :: XML'
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/core.py", line 151, in setup
      dist.run_commands()
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 215, in run
      self.run_command('install')
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/cmd.py", line 326, in run_command
      self.distribution.run_command(command)
    File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/private/var/folders/v3/qxxjzwss1_dd4rf0x8314lyr0000gn/T/pip-build-UXWqCD/jsnapy/setup.py", line 100, in run
      default_config_location)
  Exception: jsnapy.cfg not found at /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/jsnapy.cfg
  
  ----------------------------------------
  Failed building wheel for jsnapy
  Running setup.py clean for jsnapy
Failed to build jsnapy
Installing collected packages: jsnapy
  Running setup.py install for jsnapy ... done
Successfully installed jsnapy-1.2.0

What I've also run:

Installing the same module using git install, but there it installs fine without error.

virtualenv env_jsnapy
source env_jsnapy/bin/activate
git clone https://github.com/Juniper/jsnapy.git
cd jsnapy
python setup.py install

running install
running build
running build_py
creating build
creating build/lib
creating build/lib/jnpr
copying lib/jnpr/__init__.py -> build/lib/jnpr
creating build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/__init__.py -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/check.py -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/jsnapy.py -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/notify.py -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/operator.py -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/setup_logging.py -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/snap.py -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/sqlite_get.py -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/sqlite_store.py -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/version.py -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/xml_comparator.py -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/jsnapy.cfg -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/logging.yml -> build/lib/jnpr/jsnapy
copying lib/jnpr/jsnapy/content.html -> build/lib/jnpr/jsnapy
running build_scripts
creating build/scripts-2.7
copying and adjusting tools/jsnap2py -> build/scripts-2.7
changing mode of build/scripts-2.7/jsnap2py from 644 to 755
running install_lib
copying build/lib/jnpr/__init__.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr
creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/__init__.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/check.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/content.html -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/jsnapy.cfg -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/jsnapy.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/logging.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/notify.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/operator.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/setup_logging.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/snap.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/sqlite_get.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/sqlite_store.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/version.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
copying build/lib/jnpr/jsnapy/xml_comparator.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/__init__.py to __init__.pyc
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy/__init__.py to __init__.pyc
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy/check.py to check.pyc
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy/jsnapy.py to jsnapy.pyc
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy/notify.py to notify.pyc
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy/operator.py to operator.pyc
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy/setup_logging.py to setup_logging.pyc
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy/snap.py to snap.pyc
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy/sqlite_get.py to sqlite_get.pyc
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy/sqlite_store.py to sqlite_store.pyc
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy/version.py to version.pyc
byte-compiling /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jnpr/jsnapy/xml_comparator.py to xml_comparator.pyc
running install_data
creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc
creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy
copying lib/jnpr/jsnapy/logging.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy
creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/var
creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs
creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
copying logs/__init__.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
copying logs/critical.log -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
copying logs/debug.log -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
copying logs/errors.log -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
copying logs/info.log -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
copying logs/jsnapy.log -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/var/logs/jsnapy
creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/__init__.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/config_check_no_test.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/config_diff.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/config_multiple_check.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/config_multiple_snapcheck.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/config_single_check.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/config_single_snapcheck.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/config_test_rpc.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/contains1.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/devices.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/first_test.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/main.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/module_check.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/module_data.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/module_device.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/module_snapcheck.py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/send_mail.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_all_same.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_all_same2.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_bgp_neighbor.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_contains.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_delta.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_diff.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_exists.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_filter.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_full_output.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_get_config.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_in_range.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_interface.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_is_equal.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_is_gt.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_is_in.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_is_lt.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_no_diff.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_not_equal.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_not_exists.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_not_in.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_not_less.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_not_more.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_not_range.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_wo_mssg.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying samples/test_xml.yml -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/samples
copying lib/jnpr/jsnapy/jsnapy.cfg -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy
creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/testfiles
copying testfiles/README -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/testfiles
creating /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/snapshots
copying snapshots/README -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/etc/jsnapy/snapshots
running install_egg_info
running egg_info
creating lib/jsnapy.egg-info
writing requirements to lib/jsnapy.egg-info/requires.txt
writing lib/jsnapy.egg-info/PKG-INFO
writing top-level names to lib/jsnapy.egg-info/top_level.txt
writing dependency_links to lib/jsnapy.egg-info/dependency_links.txt
writing entry points to lib/jsnapy.egg-info/entry_points.txt
writing manifest file 'lib/jsnapy.egg-info/SOURCES.txt'
reading manifest file 'lib/jsnapy.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'lib/jsnapy.egg-info/SOURCES.txt'
Copying lib/jsnapy.egg-info to /Users/user_123/Desktop/jsnapy_test/env_jsnapy/lib/python2.7/site-packages/jsnapy-1.2.1.dev0-py2.7.egg-info
running install_scripts
copying build/scripts-2.7/jsnap2py -> /Users/user_123/Desktop/jsnapy_test/env_jsnapy/bin
changing mode of /Users/user_123/Desktop/jsnapy_test/env_jsnapy/bin/jsnap2py to 755
Installing jsnapy script to /Users/user_123/Desktop/jsnapy_test/env_jsnapy/bin
@benoit-pierre
Copy link
Member

@sidhujasminder: I don't think this is a setuptools/pip bug, see this jsnapy issue.

@sidhujasminder
Copy link
Author

@benoit-pierre no that was a permission issue. /etc/jsnapy required sudo permissions and running pip with sudo in virtualenv would install it as a global system package and not local to the virtualenv.
This one, I don't think it is a bug, there is some issue with how bdist_wheel is working. I am naive to this so just need some help.

@benoit-pierre
Copy link
Member

Did you read the whole discussion?

They do a lot of gnarly stuff in their setup.py, trying to detect if running in a virtualenv or not, installing things outside of Python' site-packages, IMHO, just misusing setuptools as a distribution package manager. All this dynamic stuff is not going to translate well to wheels and/or installing in a virtualenv.

I do get a permission error when installing in a environment created with venv, and the same error as you when created with virtualenv.

pip installing https://github.com/Juniper/jsnapy/archive/master.zip directly, however, does work with a venv environment, but still fails in a virtualenv one...

Please open a bug on their bug-tracker.

@sidhujasminder
Copy link
Author

@benoit-pierre so how do you suggest to desgin the structure because there is a need for some external files to be used for its usage.
The checking of the presence of virtual environment is done because of these external files only. Enabling installation without sudo.

@benoit-pierre
Copy link
Member

I guess switch to using package_data in place of data_files in setup.py and use pkg_resources' resource manager API at runtime to access those files.

Also see this discussion regarding data_files/package_data and the way their uses interact with distutils, setuptoools, and pip/wheel.

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