Install spynner in python on Windows 7 - python

I want to install spynner in python 2.7.9, on windows 7. I have tried using 'pip' but it is giving error. Traceback:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "c:\users\paramvir\appdata\local\temp\pip_build_Paramvir\autopy\setup.py", line 222, in <
module>
EXT_MODULES = create_ext_modules('src/')
File "c:\users\paramvir\appdata\local\temp\pip_build_Paramvir\autopy\setup.py", line 180, in c
reate_ext_modules
raise IOError('windows directory not found at: "%s"' % win_dir)
IOError: windows directory not found at: "c:\users\paramvir\appdata\local\temp\pip_build_Paramvi
r\autopy\windows\win32"
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "c:\users\paramvir\appdata\local\temp\pip_build_Paramvir\autopy\setup.py", line 222, in <modu
le>
EXT_MODULES = create_ext_modules('src/')
File "c:\users\paramvir\appdata\local\temp\pip_build_Paramvir\autopy\setup.py", line 180, in creat
e_ext_modules
raise IOError('windows directory not found at: "%s"' % win_dir)
IOError: windows directory not found at: "c:\users\paramvir\appdata\local\temp\pip_build_Paramvir\au
topy\windows\win32"
how do I install spynner? Thanks

i recently got the same error as you are , and i fix it without using the pip command
download the spynner zip file and unzip to the C:\Anaconda\Lib\site-packages
here is the link:
https://pypi.python.org/pypi/spynner
download the autopy file and install the windows installer
https://pypi.python.org/pypi/autopy/0.51

Related

get-pip.py script not running.i am using python 3.2.1.getting the error. i have tried repairing,uninstall/reinstalling everything

here is the error message i am getting while running the script on IDLE.i have downloaded the get-pip.py file from the pypi.org.
Traceback (most recent call last):
File "C:\Users\hp1\Desktop\get-pip.py", line 20649, in <module>
main()
File "C:\Users\hp1\Desktop\get-pip.py", line 197, in main
bootstrap(tmpdir=tmpdir)
File "C:\Users\hp1\Desktop\get-pip.py", line 82, in bootstrap
import pip._internal
File "c:\users\hp1\appdata\local\temp\tmpjlf6u8\pip.zip\pip\_internal\__init__.py", line 42, in <module>
File "c:\users\hp1\appdata\local\temp\tmpjlf6u8\pip.zip\pip\_internal\cmdoptions.py", line 16, in <module>
File "c:\users\hp1\appdata\local\temp\tmpjlf6u8\pip.zip\pip\_internal\index.py", line 15, in <module>
File "c:\users\hp1\appdata\local\temp\tmpjlf6u8\pip.zip\pip\_vendor\requests\__init__.py", line 83, in <module>
File "c:\users\hp1\appdata\local\temp\tmpjlf6u8\pip.zip\pip\_internal\compat.py", line 61
return u"".join(u"\\x%x" % c for c in raw_bytes), err.end
^
SyntaxError: invalid syntax
You must read prerequisites before running this script. It is a tool by PyPA, not pypi.org. So you must follow this link: pip Installation
Another thing is it works with these versions (2.7, 3.3, 3.4, 3.5, 3.6) of python according to official documentation.

Unexpected Error while executing imgkit

I'm a newbie to Python, While learning imgkit (PI module) I got this error which was not expected for a simple code. Below is the code
import imgkit
imgkit.from_url('https://www.google.co.in/','fs.jpg')
and the error which I got is
Traceback (most recent call last):
File "G:\python\lib\site-packages\imgkit-0.1.8-py3.6.egg\imgkit\config.py", line 30, in __init__
with open(self.wkhtmltoimage):
FileNotFoundError: [Errno 2] No such file or directory: b''
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\ALEXANDER\Desktop\def img.py", line 3, in <module>
imgkit.from_url('https://www.google.co.in/','fs.jpg')
File "G:\python\lib\site-packages\imgkit-0.1.8-py3.6.egg\imgkit\api.py", line 20, in from_url
rtn = IMGKit(url, 'url', options=options, toc=toc, cover=cover, config=config, cover_first=cover_first)
File "G:\python\lib\site-packages\imgkit-0.1.8-py3.6.egg\imgkit\imgkit.py", line 34, in __init__
self.config = Config() if not config else config
File "G:\python\lib\site-packages\imgkit-0.1.8-py3.6.egg\imgkit\config.py", line 36, in __init__
'http://wkhtmltopdf.org\n'.format(self.wkhtmltoimage))
OSError: No wkhtmltoimage executable found: "b''"
If this file exists please check that this process can read it. Otherwise please install wkhtmltopdf - http://wkhtmltopdf.org
Could anyone tell me what mistake I have done.
you need to these lines after installing wkhtmltopdf on your windows system:
path_wkthmltoimage = r'C:\Program Files\wkhtmltopdf\bin\wkhtmltoimage.exe'
config = imgkit.config(wkhtmltoimage=path_wkthmltoimage)
imgkit.from_file('table.html', 'table.jpg',config=config)
try: brew install caskroom/cask/wkhtmltopdf
It looks like you need to install wkhtmltopdf. To do so, run pip install wkhtmltopdf

Pytsk install failure: Unable to locate SleuthKit header files using ubuntu 12.04

Currently having issues locating SleuthKit (3.2.3-2ubuntu1) header files when attempting to install pytsk in Ubuntu 12.04. This is the installation error I am receiving:
Downloading/unpacking pytsk
Downloading pytsk-4.1.3-20140506.tar.gz (142kB): 142kB downloaded
Running setup.py (path:/tmp/pip_build_root/pytsk/setup.py) egg_info for package pytsk
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pytsk/setup.py", line 117, in <module>
raise EnvironmentError('Unable to locate SleuthKit header files.')
EnvironmentError: Unable to locate SleuthKit header files.
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pytsk/setup.py", line 117, in <module>
raise EnvironmentError('Unable to locate SleuthKit header files.')
EnvironmentError: Unable to locate SleuthKit header files.
Log from /home/some_jerk/.pip/ reads as follows:
------------------------------------------------------------
/usr/local/bin/pip run on Thu Feb 12 12:12:28 2015
Downloading/unpacking pytsk
Getting page https://pypi.python.org/simple/pytsk/
URLs to search for versions for pytsk:
* https://pypi.python.org/simple/pytsk/
Analyzing links from page https://pypi.python.org/simple/pytsk/
Found link https://pypi.python.org/packages/2.7/p/pytsk/pytsk-4.1.3-20140506.linux-x86_64.tar.gz#md5=dbc9cce02bb318d5f3145dd23ffa93f7 (from https://pypi.python.org/simple/pytsk/), version: 4.1.3-20140506.linux-x86_64
Found link https://pypi.python.org/packages/source/p/pytsk/pytsk-4.1.3-20140506.tar.gz#md5=a0d0c7af34b6873334d48a61295e51eb (from https://pypi.python.org/simple/pytsk/), version: 4.1.3-20140506
Ignoring link https://pypi.python.org/packages/2.7/p/pytsk/pytsk-4.1.3-20140506.linux-x86_64.tar.gz#md5=dbc9cce02bb318d5f3145dd23ffa93f7 (from https://pypi.python.org/simple/pytsk/), version 4.1.3-20140506.linux-x86_64 is a pre-release (use --pre to allow).
Downloading from URL https://pypi.python.org/packages/source/p/pytsk/pytsk-4.1.3-20140506.tar.gz#md5=a0d0c7af34b6873334d48a61295e51eb (from https://pypi.python.org/simple/pytsk/)
Running setup.py (path:/tmp/pip_build_root/pytsk/setup.py) egg_info for package pytsk
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pytsk/setup.py", line 117, in <module>
raise EnvironmentError('Unable to locate SleuthKit header files.')
EnvironmentError: Unable to locate SleuthKit header files.
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/tmp/pip_build_root/pytsk/setup.py", line 117, in <module>
raise EnvironmentError('Unable to locate SleuthKit header files.')
EnvironmentError: Unable to locate SleuthKit header files.
----------------------------------------
Cleaning up...
Removing temporary dir /tmp/pip_build_root...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pytsk
Exception information:
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/commands/install.py", line 278, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 1229, in prepare_files
req_to_install.run_egg_info()
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/req.py", line 325, in run_egg_info
command_desc='python setup.py egg_info')
File "/usr/local/lib/python2.7/dist-packages/pip-1.5.6-py2.7.egg/pip/util.py", line 697, in call_subprocess
% (command_desc, proc.returncode, cwd))
InstallationError: Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_root/pytsk
After some google-fu and referencing the pytsk troubleshooting documentation on GitHub I haven’t found anything that addresses this issue. In my research I also came across some instructions on an install using the more forthright method of Debian package tools instead of apt-get, but this seems to be tailored to development on SleuthKit 4.1.2.
Are there dependencies missing from the pytsk documentation, is this an issue with version conflicts (i.e. a SleuthKit 3.2.3 install trying to pull 4.1.3 from source), or am I missing something obvious?
Thanks in advance, hive mind.
You need the header files, however these aren't installed by default.
apt-get (or whatever) install libtsk

Trouble installing django-imagekit - 'execfile' is not defined

I am having problems installing django-imagekit under python 3.2/django 1.5. Is django-imagekit only for python 2 (then why is it available in pip-3.2)?
Trying to install django-imagekit from within my virtualenv.
------------------------------------------------------------
/home/testuser/webapps/app/bin/pip run on Tue Nov 19 10:38:45 2013
Downloading/unpacking django-imagekit
Running setup.py egg_info for package django-imagekit
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/testuser/webapps/app/build/django-imagekit/setup.py", line 25, in <module>
execfile(os.path.join(os.path.dirname(__file__),
NameError: name 'execfile' is not defined
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "/home/testuser/webapps/app/build/django-imagekit/setup.py", line 25, in <module>
execfile(os.path.join(os.path.dirname(__file__),
NameError: name 'execfile' is not defined
----------------------------------------
Command python setup.py egg_info failed with error code 1 in /home/testuser/webapps/app/build/django-imagekit
Exception information:
Traceback (most recent call last):
File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 1009, in prepare_files
req_to_install.run_egg_info()
File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 225, in run_egg_info
req_to_install.run_egg_info()
File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/req.py", line 225, in run_egg_info
command_desc='python setup.py egg_info')
File "/home/testuser/webapps/app/lib/python3.2/site-packages/pip-1.1-py3.2.egg/pip/__init__.py", line 256, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in /home/testuser/webapps/app/build/django-imagekit
It doesn't look like this module has been updated for python3 yet. Django has only officially supported python3 since 1.5, so several packages have yet to update.
I'm the maintainer of django-imagekit and, unfortunately, it isn't quite ready for Python 3 yet. As for why it's "available" for pip-3.2…My understanding is that pip doesn't do any filtering of packages based on the version of Python you're using; pip-3.2 is named that way because it installs packages into Python 3.2, but it doesn't use a separate index.
EDIT:
We just pushed ImageKit 3.2 which has support for Python 3! Give it a try (:

Registry error when installing MySQL-python into virtualenv using pip and easy_install

The pip and easy install commands (install MySQL-python) provide the massive error listed below.
I've been looking around for an answer a while now on this site and through google. The recurring answer is to install python dev (pip install python-dev) however the response I receive is "no distributions at all found"
Does anyone know the correct syntax in order to do this? or could someone be kind enough to point out where I'm going wrong.
All help is greatly appreciated. Thanks
C:\virtualenvs\myvirtualenv2\Scripts\pip-script.py run on 04/13/11 16:28:18
Downloading/unpacking mySQL-python
Running setup.py egg_info for package mySQL-python
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "C:\virtualenvs\myvirtualenv2\build\mySQL-python\setup.py", line 15, in <module>
metadata, options = get_config()
File "setup_windows.py", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2] The system cannot find the file specified
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 14, in <module>
File "C:\virtualenvs\myvirtualenv2\build\mySQL-python\setup.py", line 15, in <module>
metadata, options = get_config()
File "setup_windows.py", line 7, in get_config
serverKey = _winreg.OpenKey(_winreg.HKEY_LOCAL_MACHINE, options['registry_key'])
WindowsError: [Error 2] The system cannot find the file specified
----------------------------------------
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
File "C:\virtualenvs\myvirtualenv2\lib\site-packages\pip-1.0-py2.6.egg\pip\basecommand.py", line 126, in main
self.run(options, args)
File "C:\virtualenvs\myvirtualenv2\lib\site-packages\pip-1.0-py2.6.egg\pip\commands\install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "C:\virtualenvs\myvirtualenv2\lib\site-packages\pip-1.0-py2.6.egg\pip\req.py", line 980, in prepare_files
req_to_install.run_egg_info()
File "C:\virtualenvs\myvirtualenv2\lib\site-packages\pip-1.0-py2.6.egg\pip\req.py", line 216, in run_egg_info
command_desc='python setup.py egg_info')
File "C:\virtualenvs\myvirtualenv2\lib\site-packages\pip-1.0-py2.6.egg\pip\__init__.py", line 255, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command python setup.py egg_info failed with error code 1
Try ActivePython:
pypm -E C:\virtualenvs\myvirtualenv2 install mysql-python
no compile orgy. no strange errors. no terror.
Installing mysqldb on windows is tricky. I can install it manually, after downloading and unpacking mySQL-python:
Go to MySQL-python-1.2.3 folder
Edit the file site.cfg
Run regedit in Start > Run and verify the proper path for MySQL, mine looks like SOFTWARE\MySQL AB\MySQL Server 5.1
Uncomment the line registry_key
Set it:
registry_key = SOFTWARE\MySQL AB\MySQL Server 5.1
Run python setup.py install under your virtualenv

Categories

Resources