Im using Windows 7 for developing Django 1.3.7 using PostgreSQL 9.3 as database. on my settings.py I set DATABASE_ENGINE = 'django.db.backends.postgresql_psycopg2' but when I try to execute python manage.py syncdb I got this error:
C:\Django-Proj\myproj\myproj>python manage.py syncdb
Traceback (most recent call last):
File "manage.py", line 61, in <module>
execute_manager(settings)
File "c:\Python27\lib\site-packages\django\core\management\__init__.py", line
438, in execute_manager
utility.execute()
File "c:\Python27\lib\site-packages\django\core\management\__init__.py", line
379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "c:\Python27\lib\site-packages\django\core\management\__init__.py", line
261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "c:\Python27\lib\site-packages\django\core\management\__init__.py", line
67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "c:\Python27\lib\site-packages\django\utils\importlib.py", line 35, in im
port_module
__import__(name)
File "c:\Python27\lib\site-packages\django\core\management\commands\syncdb.py"
, line 7, in <module>
from django.core.management.sql import custom_sql_for_model, emit_post_sync_
signal
File "c:\Python27\lib\site-packages\django\core\management\sql.py", line 6, in
<module>
from django.db import models
File "c:\Python27\lib\site-packages\django\db\__init__.py", line 78, in <modul
e>
connection = connections[DEFAULT_DB_ALIAS]
File "c:\Python27\lib\site-packages\django\db\utils.py", line 93, in __getitem
__
backend = load_backend(db['ENGINE'])
File "c:\Python27\lib\site-packages\django\db\utils.py", line 33, in load_back
end
return import_module('.base', backend_name)
File "c:\Python27\lib\site-packages\django\utils\importlib.py", line 35, in im
port_module
__import__(name)
File "c:\Python27\lib\site-packages\django\db\backends\postgresql_psycopg2\bas
e.py", line 24, in <module>
raise ImproperlyConfigured("Error loading psycopg2 module: %s" % e)
django.core.exceptions.ImproperlyConfigured: Error loading psycopg2 module: No m
odule named psycopg2
Then I try to install psycopg2 but it got an error:
C:\>pip install psycopg2
Downloading/unpacking psycopg2
Running setup.py (path:c:\users\samuel\appdata\local\temp\pip_build_Samuel\psy
copg2\setup.py) egg_info for package psycopg2
Installing collected packages: psycopg2
Running setup.py install for psycopg2
building 'psycopg2._psycopg' extension
error: Unable to find vcvarsall.bat
Complete output from command C:\Python27\python.exe -c "import setuptools, t
okenize;__file__='c:\\users\\samuel\\appdata\\local\\temp\\pip_build_Samuel\\psy
copg2\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().r
eplace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\samuel\appda
ta\local\temp\pip-dsnjrg-record\install-record.txt --single-version-externally-m
anaged --compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-2.7
creating build\lib.win-amd64-2.7\psycopg2
copying lib\errorcodes.py -> build\lib.win-amd64-2.7\psycopg2
copying lib\extensions.py -> build\lib.win-amd64-2.7\psycopg2
copying lib\extras.py -> build\lib.win-amd64-2.7\psycopg2
copying lib\pool.py -> build\lib.win-amd64-2.7\psycopg2
copying lib\psycopg1.py -> build\lib.win-amd64-2.7\psycopg2
copying lib\tz.py -> build\lib.win-amd64-2.7\psycopg2
copying lib\_json.py -> build\lib.win-amd64-2.7\psycopg2
copying lib\_range.py -> build\lib.win-amd64-2.7\psycopg2
copying lib\__init__.py -> build\lib.win-amd64-2.7\psycopg2
creating build\lib.win-amd64-2.7\psycopg2\tests
copying tests\dbapi20.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\dbapi20_tpc.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\testconfig.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\testutils.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_async.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_bugX000.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_bug_gc.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_cancel.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_connection.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_copy.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_cursor.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_dates.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_extras_dictcursor.py -> build\lib.win-amd64-2.7\psycopg2\test
s
copying tests\test_green.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_lobject.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_module.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_notify.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_psycopg2_dbapi20.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_quote.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_transaction.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_types_basic.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_types_extras.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\test_with.py -> build\lib.win-amd64-2.7\psycopg2\tests
copying tests\__init__.py -> build\lib.win-amd64-2.7\psycopg2\tests
running build_ext
building 'psycopg2._psycopg' extension
error: Unable to find vcvarsall.bat
----------------------------------------
Cleaning up...
Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\use
rs\\samuel\\appdata\\local\\temp\\pip_build_Samuel\\psycopg2\\setup.py';exec(com
pile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __f
ile__, 'exec'))" install --record c:\users\samuel\appdata\local\temp\pip-dsnjrg-
record\install-record.txt --single-version-externally-managed --compile failed w
ith error code 1 in c:\users\samuel\appdata\local\temp\pip_build_Samuel\psycopg2
Storing debug log for failure in C:\Users\Samuel\pip\pip.log
Does anyone have an idea about my case? thanks in advance
There is the huge list of Unofficial Windows Binaries for Python Extension Packages which are extremely useful for Windows users.
http://www.lfd.uci.edu/~gohlke/pythonlibs/#psycopg
Go to the link, download and install it and you are good to go.
Cheers !
Don't try to compile psycopg2 for Windows. You'll need a Visual Studio install or Windows SDK and all sorts of other mess.
Just grab a binary build: http://initd.org/psycopg/download/
Related
I am trying to install pygobject using pip, even with brew in MacOS, but now successful. I followed guides.
If I use the official installation guide in https://pygobject.readthedocs.io/en/latest/getting_started.html, then I have gtk+3 installed, but when I try to import the library:
python3 -c 'import gi; gi.require_version("Gtk", "3.0"); print("ok")'
Traceback (most recent call last):
File "<string>", line 1, in <module>
This is the output of the installation after using pip3:
(base) khalil presentation (master) >> pip3 install gobject pygobject
Collecting gobject
Downloading gobject-0.1.0-py3-none-any.whl (5.9 kB)
Collecting pygobject
Using cached PyGObject-3.42.1.tar.gz (718 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: pycairo>=1.16.0 in /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages (from pygobject) (1.20.1)
Building wheels for collected packages: pygobject
Building wheel for pygobject (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: /Library/Frameworks/Python.framework/Versions/3.6/bin/python3 /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /var/folders/t0/_kkpxc35687gknp4d99b9lbr0000gn/T/tmpsnfmi_oc
cwd: /private/var/folders/t0/_kkpxc35687gknp4d99b9lbr0000gn/T/pip-install-2saq002f/pygobject_1efb85aba31e4700a39a2c6c52381a62
Complete output (90 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.6
creating build/lib.macosx-10.9-x86_64-3.6/pygtkcompat
copying pygtkcompat/pygtkcompat.py -> build/lib.macosx-10.9-x86_64-3.6/pygtkcompat
copying pygtkcompat/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/pygtkcompat
copying pygtkcompat/generictreemodel.py -> build/lib.macosx-10.9-x86_64-3.6/pygtkcompat
creating build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/_signalhelper.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/_constants.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/pygtkcompat.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/_ossighelper.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/importer.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/_error.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/_gtktemplate.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/_propertyhelper.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/types.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/docstring.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/_option.py -> build/lib.macosx-10.9-x86_64-3.6/gi
copying gi/module.py -> build/lib.macosx-10.9-x86_64-3.6/gi
creating build/lib.macosx-10.9-x86_64-3.6/gi/repository
copying gi/repository/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/gi/repository
creating build/lib.macosx-10.9-x86_64-3.6/gi/overrides
copying gi/overrides/GIMarshallingTests.py -> build/lib.macosx-10.9-x86_64-3.6/gi/overrides
copying gi/overrides/Gdk.py -> build/lib.macosx-10.9-x86_64-3.6/gi/overrides
copying gi/overrides/Pango.py -> build/lib.macosx-10.9-x86_64-3.6/gi/overrides
copying gi/overrides/GdkPixbuf.py -> build/lib.macosx-10.9-x86_64-3.6/gi/overrides
copying gi/overrides/Gtk.py -> build/lib.macosx-10.9-x86_64-3.6/gi/overrides
copying gi/overrides/__init__.py -> build/lib.macosx-10.9-x86_64-3.6/gi/overrides
copying gi/overrides/GLib.py -> build/lib.macosx-10.9-x86_64-3.6/gi/overrides
copying gi/overrides/GObject.py -> build/lib.macosx-10.9-x86_64-3.6/gi/overrides
copying gi/overrides/Gio.py -> build/lib.macosx-10.9-x86_64-3.6/gi/overrides
copying gi/overrides/keysyms.py -> build/lib.macosx-10.9-x86_64-3.6/gi/overrides
running build_ext
pycairo: new API
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
main()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 262, in build_wheel
metadata_directory)
File "/private/var/folders/t0/_kkpxc35687gknp4d99b9lbr0000gn/T/pip-build-env-8drx7d57/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 231, in build_wheel
wheel_directory, config_settings)
File "/private/var/folders/t0/_kkpxc35687gknp4d99b9lbr0000gn/T/pip-build-env-8drx7d57/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
self.run_setup()
File "/private/var/folders/t0/_kkpxc35687gknp4d99b9lbr0000gn/T/pip-build-env-8drx7d57/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 268, in run_setup
self).run_setup(setup_script=setup_script)
File "/private/var/folders/t0/_kkpxc35687gknp4d99b9lbr0000gn/T/pip-build-env-8drx7d57/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 158, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 1259, in <module>
main()
File "setup.py", line 1254, in main
zip_safe=False,
File "/private/var/folders/t0/_kkpxc35687gknp4d99b9lbr0000gn/T/pip-build-env-8drx7d57/overlay/lib/python3.6/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/private/var/folders/t0/_kkpxc35687gknp4d99b9lbr0000gn/T/pip-build-env-8drx7d57/overlay/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 1088, in run
self._setup_extensions()
File "setup.py", line 1083, in _setup_extensions
add_pycairo(gi_cairo_ext)
File "setup.py", line 1066, in add_pycairo
ext.include_dirs += [get_pycairo_include_dir()]
File "setup.py", line 893, in get_pycairo_include_dir
include_dir = find_path(find_new_api())
File "setup.py", line 848, in find_new_api
import cairo
File "/private/var/folders/t0/_kkpxc35687gknp4d99b9lbr0000gn/T/pip-build-env-8drx7d57/overlay/lib/python3.6/site-packages/cairo/__init__.py", line 1, in <module>
from ._cairo import * # noqa: F401,F403
ImportError: dlopen(/private/var/folders/t0/_kkpxc35687gknp4d99b9lbr0000gn/T/pip-build-env-8drx7d57/overlay/lib/python3.6/site-packages/cairo/_cairo.cpython-36m-darwin.so, 0x0002): symbol not found in flat namespace '_cairo_append_path'
----------------------------------------
ERROR: Failed building wheel for pygobject
Failed to build pygobject
ERROR: Could not build wheels for pygobject, which is required to install pyproject.toml-based projects
(base) khalil presentation (master) >> ```
Problem solved! Thanks to #rasjani
First, I upgraded to the latest version of python, then I create a new_env using conda:
conda create --name new_env python=3.9.12
conda activate new_env
conda install -c conda-forge pygobject
Solution from: Github
I've been trying to solve this issue for about a week or two now, still haven't found a solution. I'm on Arch Linux. Here's what I've tried so far:
installed python-gobject and gobject-introspection through pacman
installed pycairo through python
Tried installing PyGObject through python, but it's throwing an error
tried pip install PyGObject --no-use-pep517
pip install --upgrade wheel
Reset $PATH variable
I do have Anaconda installed, which has been mentioned in other forums with similar issues, but haven't figured out what the problem could be regarding conda.
The main problem is I can't get PyGObject installed.
Here's the output for the program I'm trying to run:
$ ./lutris
Traceback (most recent call last):
File "/home/greyside/git/lutris/bin/./lutris", line 52, in <module>
from lutris.gui.application import Application # pylint: disable=no-name-in-module
File "/home/greyside/git/lutris/lutris/gui/application.py", line 28, in <module>
import gi
ModuleNotFoundError: No module named 'gi'
Here's the output for pip install PyGObject:
$ pip install PyGObject
Collecting PyGObject
Using cached PyGObject-3.42.0.tar.gz (716 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: pycairo>=1.16.0 in /home/greyside/anaconda3/lib/python3.9/site-packages (from PyGObject) (1.21.0)
Building wheels for collected packages: PyGObject
Building wheel for PyGObject (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /home/greyside/anaconda3/bin/python /home/greyside/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpn15zx71v
cwd: /tmp/pip-install-s12pfc6q/pygobject_15ec34742d654e599404ba75c60a660e
Complete output (98 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/pygtkcompat
copying pygtkcompat/pygtkcompat.py -> build/lib.linux-x86_64-3.9/pygtkcompat
copying pygtkcompat/generictreemodel.py -> build/lib.linux-x86_64-3.9/pygtkcompat
copying pygtkcompat/__init__.py -> build/lib.linux-x86_64-3.9/pygtkcompat
creating build/lib.linux-x86_64-3.9/gi
copying gi/types.py -> build/lib.linux-x86_64-3.9/gi
copying gi/pygtkcompat.py -> build/lib.linux-x86_64-3.9/gi
copying gi/module.py -> build/lib.linux-x86_64-3.9/gi
copying gi/importer.py -> build/lib.linux-x86_64-3.9/gi
copying gi/docstring.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_signalhelper.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_propertyhelper.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_ossighelper.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_option.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_gtktemplate.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_error.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_constants.py -> build/lib.linux-x86_64-3.9/gi
copying gi/__init__.py -> build/lib.linux-x86_64-3.9/gi
creating build/lib.linux-x86_64-3.9/gi/repository
copying gi/repository/__init__.py -> build/lib.linux-x86_64-3.9/gi/repository
creating build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/keysyms.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/__init__.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Pango.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Gtk.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Gio.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GdkPixbuf.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Gdk.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GObject.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GLib.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GIMarshallingTests.py -> build/lib.linux-x86_64-3.9/gi/overrides
running build_ext
pycairo: new API
Traceback (most recent call last):
File "/home/greyside/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
main()
File "/home/greyside/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/greyside/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 248, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 244, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 229, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 281, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 174, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 1259, in <module>
main()
File "setup.py", line 1219, in main
setup(
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "setup.py", line 1088, in run
self._setup_extensions()
File "setup.py", line 1083, in _setup_extensions
add_pycairo(gi_cairo_ext)
File "setup.py", line 1066, in add_pycairo
ext.include_dirs += [get_pycairo_include_dir()]
File "setup.py", line 893, in get_pycairo_include_dir
include_dir = find_path(find_new_api())
File "setup.py", line 848, in find_new_api
import cairo
File "/tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/cairo/__init__.py", line 1, in <module>
from ._cairo import * # noqa: F401,F403
ImportError: /tmp/pip-build-env-4lzlmpry/overlay/lib/python3.9/site-packages/cairo/_cairo.cpython-39-x86_64-linux-gnu.so: undefined symbol: cairo_tee_surface_index
----------------------------------------
ERROR: Failed building wheel for PyGObject
Failed to build PyGObject
ERROR: Could not build wheels for PyGObject which use PEP 517 and cannot be installed directly
And here's the output for pip install PyGObject --no-use-pep517:
pip install PyGObject --no-use-pep517
Collecting PyGObject
Using cached PyGObject-3.42.0.tar.gz (716 kB)
Requirement already satisfied: pycairo>=1.16.0 in /home/greyside/anaconda3/lib/python3.9/site-packages (from PyGObject) (1.21.0)
Building wheels for collected packages: PyGObject
Building wheel for PyGObject (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: /home/greyside/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py'"'"'; __file__='"'"'/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d /tmp/pip-wheel-72srifkn
cwd: /tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/
Complete output (85 lines):
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/pygtkcompat
copying pygtkcompat/pygtkcompat.py -> build/lib.linux-x86_64-3.9/pygtkcompat
copying pygtkcompat/generictreemodel.py -> build/lib.linux-x86_64-3.9/pygtkcompat
copying pygtkcompat/__init__.py -> build/lib.linux-x86_64-3.9/pygtkcompat
creating build/lib.linux-x86_64-3.9/gi
copying gi/types.py -> build/lib.linux-x86_64-3.9/gi
copying gi/pygtkcompat.py -> build/lib.linux-x86_64-3.9/gi
copying gi/module.py -> build/lib.linux-x86_64-3.9/gi
copying gi/importer.py -> build/lib.linux-x86_64-3.9/gi
copying gi/docstring.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_signalhelper.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_propertyhelper.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_ossighelper.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_option.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_gtktemplate.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_error.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_constants.py -> build/lib.linux-x86_64-3.9/gi
copying gi/__init__.py -> build/lib.linux-x86_64-3.9/gi
creating build/lib.linux-x86_64-3.9/gi/repository
copying gi/repository/__init__.py -> build/lib.linux-x86_64-3.9/gi/repository
creating build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/keysyms.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/__init__.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Pango.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Gtk.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Gio.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GdkPixbuf.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Gdk.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GObject.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GLib.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GIMarshallingTests.py -> build/lib.linux-x86_64-3.9/gi/overrides
running build_ext
pycairo: new API
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 1259, in <module>
main()
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 1219, in main
setup(
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/greyside/anaconda3/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 1088, in run
self._setup_extensions()
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 1083, in _setup_extensions
add_pycairo(gi_cairo_ext)
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 1066, in add_pycairo
ext.include_dirs += [get_pycairo_include_dir()]
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 893, in get_pycairo_include_dir
include_dir = find_path(find_new_api())
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 848, in find_new_api
import cairo
File "/home/greyside/anaconda3/lib/python3.9/site-packages/cairo/__init__.py", line 1, in <module>
from ._cairo import * # noqa: F401,F403
ImportError: /home/greyside/anaconda3/lib/python3.9/site-packages/cairo/_cairo.cpython-39-x86_64-linux-gnu.so: undefined symbol: cairo_tee_surface_index
----------------------------------------
ERROR: Failed building wheel for PyGObject
Running setup.py clean for PyGObject
Failed to build PyGObject
Installing collected packages: PyGObject
Running setup.py install for PyGObject ... error
ERROR: Command errored out with exit status 1:
command: /home/greyside/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py'"'"'; __file__='"'"'/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-0v4b5sk8/install-record.txt --single-version-externally-managed --compile --install-headers /home/greyside/anaconda3/include/python3.9/PyGObject
cwd: /tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/
Complete output (89 lines):
running install
/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build/lib.linux-x86_64-3.9
creating build/lib.linux-x86_64-3.9/pygtkcompat
copying pygtkcompat/pygtkcompat.py -> build/lib.linux-x86_64-3.9/pygtkcompat
copying pygtkcompat/generictreemodel.py -> build/lib.linux-x86_64-3.9/pygtkcompat
copying pygtkcompat/__init__.py -> build/lib.linux-x86_64-3.9/pygtkcompat
creating build/lib.linux-x86_64-3.9/gi
copying gi/types.py -> build/lib.linux-x86_64-3.9/gi
copying gi/pygtkcompat.py -> build/lib.linux-x86_64-3.9/gi
copying gi/module.py -> build/lib.linux-x86_64-3.9/gi
copying gi/importer.py -> build/lib.linux-x86_64-3.9/gi
copying gi/docstring.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_signalhelper.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_propertyhelper.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_ossighelper.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_option.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_gtktemplate.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_error.py -> build/lib.linux-x86_64-3.9/gi
copying gi/_constants.py -> build/lib.linux-x86_64-3.9/gi
copying gi/__init__.py -> build/lib.linux-x86_64-3.9/gi
creating build/lib.linux-x86_64-3.9/gi/repository
copying gi/repository/__init__.py -> build/lib.linux-x86_64-3.9/gi/repository
creating build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/keysyms.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/__init__.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Pango.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Gtk.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Gio.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GdkPixbuf.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/Gdk.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GObject.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GLib.py -> build/lib.linux-x86_64-3.9/gi/overrides
copying gi/overrides/GIMarshallingTests.py -> build/lib.linux-x86_64-3.9/gi/overrides
running build_ext
pycairo: new API
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 1259, in <module>
main()
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 1219, in main
setup(
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/__init__.py", line 87, in setup
return distutils.core.setup(**attrs)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 148, in setup
return run_commands(dist)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 163, in run_commands
dist.run_commands()
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 967, in run_commands
self.run_command(cmd)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/command/install.py", line 68, in run
return orig.install.run(self)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/command/install.py", line 670, in run
self.run_command('build')
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/dist.py", line 1214, in run_command
super().run_command(command)
File "/home/greyside/anaconda3/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 986, in run_command
cmd_obj.run()
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 1088, in run
self._setup_extensions()
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 1083, in _setup_extensions
add_pycairo(gi_cairo_ext)
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 1066, in add_pycairo
ext.include_dirs += [get_pycairo_include_dir()]
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 893, in get_pycairo_include_dir
include_dir = find_path(find_new_api())
File "/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py", line 848, in find_new_api
import cairo
File "/home/greyside/anaconda3/lib/python3.9/site-packages/cairo/__init__.py", line 1, in <module>
from ._cairo import * # noqa: F401,F403
ImportError: /home/greyside/anaconda3/lib/python3.9/site-packages/cairo/_cairo.cpython-39-x86_64-linux-gnu.so: undefined symbol: cairo_tee_surface_index
----------------------------------------
ERROR: Command errored out with exit status 1: /home/greyside/anaconda3/bin/python -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py'"'"'; __file__='"'"'/tmp/pip-install-yujdqs8g/pygobject_33b98e7ae1f94d9ea4537c84d96133cb/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-0v4b5sk8/install-record.txt --single-version-externally-managed --compile --install-headers /home/greyside/anaconda3/include/python3.9/PyGObject Check the logs for full command output.
Whenever I try to install sip with pip, it shows an error. The full output was :
Defaulting to user installation because normal site-packages is not writeable
Collecting sip
Using cached sip-6.5.0.tar.gz (1.2 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: toml in c:\users\Admin\appdata\roaming\python\pyt
hon310-32\site-packages (from sip) (0.10.2)
Requirement already satisfied: setuptools in c:\program files\python310-32\lib\s
ite-packages (from sip) (57.4.0)
Requirement already satisfied: packaging in c:\users\Admin\appdata\roaming\pytho
n\python310-32\site-packages (from sip) (21.3)
Requirement already satisfied: pyparsing!=3.0.5,>=2.0.2 in c:\users\Admin\appdat
a\roaming\python\python310-32\site-packages (from packaging->sip) (3.0.6)
Building wheels for collected packages: sip
It was running perfectly. But;
Building wheel for sip (pyproject.toml) ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python310-32\python.exe' 'C:\Users\Admin\AppData\R
oaming\Python\Python310-32\site-packages\pip\_vendor\pep517\in_process\_in_proce
ss.py' build_wheel 'C:\Users\Admin\AppData\Local\Temp\tmpbp29upup'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-z5zff4sm\sip_b8fe66d11
90b4a5bb4ab29314f68ed38
Complete output (147 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win32-3.10
creating build\lib.win32-3.10\sipbuild
copying sipbuild\abstract_builder.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\abstract_project.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\api.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\argument_parser.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\bindings.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\buildable.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\builder.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\configurable.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\distutils_builder.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\exceptions.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\helpers.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\installable.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\project.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\pyproject.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\py_versions.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\setuptools_builder.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\version.py -> build\lib.win32-3.10\sipbuild
copying sipbuild\__init__.py -> build\lib.win32-3.10\sipbuild
creating build\lib.win32-3.10\sipbuild\distinfo
copying sipbuild\distinfo\distinfo.py -> build\lib.win32-3.10\sipbuild\distinf
o
copying sipbuild\distinfo\main.py -> build\lib.win32-3.10\sipbuild\distinfo
copying sipbuild\distinfo\__init__.py -> build\lib.win32-3.10\sipbuild\distinf
o
creating build\lib.win32-3.10\sipbuild\module
copying sipbuild\module\abi_version.py -> build\lib.win32-3.10\sipbuild\module
copying sipbuild\module\main.py -> build\lib.win32-3.10\sipbuild\module
copying sipbuild\module\module.py -> build\lib.win32-3.10\sipbuild\module
copying sipbuild\module\__init__.py -> build\lib.win32-3.10\sipbuild\module
creating build\lib.win32-3.10\sipbuild\tools
copying sipbuild\tools\build.py -> build\lib.win32-3.10\sipbuild\tools
copying sipbuild\tools\install.py -> build\lib.win32-3.10\sipbuild\tools
copying sipbuild\tools\sdist.py -> build\lib.win32-3.10\sipbuild\tools
copying sipbuild\tools\wheel.py -> build\lib.win32-3.10\sipbuild\tools
copying sipbuild\tools\__init__.py -> build\lib.win32-3.10\sipbuild\tools
creating build\lib.win32-3.10\sipbuild\module\source
creating build\lib.win32-3.10\sipbuild\module\source\12
copying sipbuild\module\source\12\apiversions.c -> build\lib.win32-3.10\sipbui
ld\module\source\12
copying sipbuild\module\source\12\array.c -> build\lib.win32-3.10\sipbuild\mod
ule\source\12
copying sipbuild\module\source\12\array.h -> build\lib.win32-3.10\sipbuild\mod
ule\source\12
copying sipbuild\module\source\12\bool.cpp -> build\lib.win32-3.10\sipbuild\mo
dule\source\12
copying sipbuild\module\source\12\descriptors.c -> build\lib.win32-3.10\sipbui
ld\module\source\12
copying sipbuild\module\source\12\int_convertors.c -> build\lib.win32-3.10\sip
build\module\source\12
copying sipbuild\module\source\12\LICENSE -> build\lib.win32-3.10\sipbuild\mod
ule\source\12
copying sipbuild\module\source\12\LICENSE-GPL2 -> build\lib.win32-3.10\sipbuil
d\module\source\12
copying sipbuild\module\source\12\LICENSE-GPL3 -> build\lib.win32-3.10\sipbuil
d\module\source\12
copying sipbuild\module\source\12\MANIFEST.in -> build\lib.win32-3.10\sipbuild
\module\source\12
copying sipbuild\module\source\12\objmap.c -> build\lib.win32-3.10\sipbuild\mo
dule\source\12
copying sipbuild\module\source\12\pyproject.toml -> build\lib.win32-3.10\sipbu
ild\module\source\12
copying sipbuild\module\source\12\qtlib.c -> build\lib.win32-3.10\sipbuild\mod
ule\source\12
copying sipbuild\module\source\12\README.in -> build\lib.win32-3.10\sipbuild\m
odule\source\12
copying sipbuild\module\source\12\setup.cfg.in -> build\lib.win32-3.10\sipbuil
d\module\source\12
copying sipbuild\module\source\12\setup.py.in -> build\lib.win32-3.10\sipbuild
\module\source\12
copying sipbuild\module\source\12\sip.h.in -> build\lib.win32-3.10\sipbuild\mo
dule\source\12
copying sipbuild\module\source\12\sip.pyi -> build\lib.win32-3.10\sipbuild\mod
ule\source\12
copying sipbuild\module\source\12\sip.rst.in -> build\lib.win32-3.10\sipbuild\
module\source\12
copying sipbuild\module\source\12\sipint.h -> build\lib.win32-3.10\sipbuild\mo
dule\source\12
copying sipbuild\module\source\12\siplib.c -> build\lib.win32-3.10\sipbuild\mo
dule\source\12
copying sipbuild\module\source\12\threads.c -> build\lib.win32-3.10\sipbuild\m
odule\source\12
copying sipbuild\module\source\12\voidptr.c -> build\lib.win32-3.10\sipbuild\m
odule\source\12
creating build\lib.win32-3.10\sipbuild\module\source\13
copying sipbuild\module\source\13\array.c -> build\lib.win32-3.10\sipbuild\mod
ule\source\13
copying sipbuild\module\source\13\array.h -> build\lib.win32-3.10\sipbuild\mod
ule\source\13
copying sipbuild\module\source\13\bool.cpp -> build\lib.win32-3.10\sipbuild\mo
dule\source\13
copying sipbuild\module\source\13\descriptors.c -> build\lib.win32-3.10\sipbui
ld\module\source\13
copying sipbuild\module\source\13\int_convertors.c -> build\lib.win32-3.10\sip
build\module\source\13
copying sipbuild\module\source\13\LICENSE -> build\lib.win32-3.10\sipbuild\mod
ule\source\13
copying sipbuild\module\source\13\LICENSE-GPL2 -> build\lib.win32-3.10\sipbuil
d\module\source\13
copying sipbuild\module\source\13\LICENSE-GPL3 -> build\lib.win32-3.10\sipbuil
d\module\source\13
copying sipbuild\module\source\13\MANIFEST.in -> build\lib.win32-3.10\sipbuild
\module\source\13
copying sipbuild\module\source\13\objmap.c -> build\lib.win32-3.10\sipbuild\mo
dule\source\13
copying sipbuild\module\source\13\pyproject.toml -> build\lib.win32-3.10\sipbu
ild\module\source\13
copying sipbuild\module\source\13\README.in -> build\lib.win32-3.10\sipbuild\m
odule\source\13
copying sipbuild\module\source\13\setup.cfg.in -> build\lib.win32-3.10\sipbuil
d\module\source\13
copying sipbuild\module\source\13\setup.py.in -> build\lib.win32-3.10\sipbuild
\module\source\13
copying sipbuild\module\source\13\sip.h.in -> build\lib.win32-3.10\sipbuild\mo
dule\source\13
copying sipbuild\module\source\13\sip.pyi -> build\lib.win32-3.10\sipbuild\mod
ule\source\13
copying sipbuild\module\source\13\sip.rst.in -> build\lib.win32-3.10\sipbuild\
module\source\13
copying sipbuild\module\source\13\sipint.h -> build\lib.win32-3.10\sipbuild\mo
dule\source\13
copying sipbuild\module\source\13\siplib.c -> build\lib.win32-3.10\sipbuild\mo
dule\source\13
copying sipbuild\module\source\13\threads.c -> build\lib.win32-3.10\sipbuild\m
odule\source\13
copying sipbuild\module\source\13\voidptr.c -> build\lib.win32-3.10\sipbuild\m
odule\source\13
running build_ext
Traceback (most recent call last):
File "C:\Users\Admin\AppData\Roaming\Python\Python310-32\site-packages\pip\_
vendor\pep517\in_process\_in_process.py", line 363, in <module>
main()
File "C:\Users\Admin\AppData\Roaming\Python\Python310-32\site-packages\pip\_
vendor\pep517\in_process\_in_process.py", line 345, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "C:\Users\Admin\AppData\Roaming\Python\Python310-32\site-packages\pip\_
vendor\pep517\in_process\_in_process.py", line 261, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\build_meta.py", line 230, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\build_meta.py", line 215, in _build_with_temp_dir
self.run_setup()
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\build_meta.py", line 267, in run_setup
super(_BuildMetaLegacyBackend,
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\build_meta.py", line 158, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 49, in <module>
setup(
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\__init__.py", line 155, in setup
return distutils.core.setup(**attrs)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\core.py", line 148, in setup
return run_commands(dist)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\core.py", line 163, in run_commands
dist.run_commands()
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\dist.py", line 967, in run_commands
self.run_command(cmd)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\wheel\bdist_wheel.py", line 299, in run
self.run_command('build')
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\command\build.py", line 135, in run
self.run_command(cmd_name)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\dist.py", line 986, in run_command
cmd_obj.run()
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\command\build_ext.py", line 79, in run
_build_ext.run(self)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\command\build_ext.py", line 339, in run
self.build_extensions()
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\command\build_ext.py", line 448, in build_ext
ensions
self._build_extensions_serial()
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\command\build_ext.py", line 473, in _build_ex
tensions_serial
self.build_extension(ext)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\command\build_ext.py", line 202, in build_extension
_build_ext.build_extension(self, ext)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\command\build_ext.py", line 528, in build_ext
ension
objects = self.compiler.compile(sources,
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\_msvccompiler.py", line 327, in compile
self.initialize()
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\_distutils\_msvccompiler.py", line 224, in initialize
vc_env = _get_vc_env(plat_spec)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\msvc.py", line 316, in msvc14_get_vc_env
return _msvc14_get_vc_env(plat_spec)
File "C:\Users\Admin\AppData\Local\Temp\pip-build-env-py_mvk7m\overlay\Lib\s
ite-packages\setuptools\msvc.py", line 270, in _msvc14_get_vc_env
raise distutils.errors.DistutilsPlatformError(
setuptools._distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0
or greater is required. Get it with "Microsoft C++ Build Tools": https://visual
studio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for sip
Failed to build sip
ERROR: Could not build wheels for sip, which is required to install pyproject.toml-based projects
Can you please help me find the problem.
I wrote this ( line copied from https://pypi.org/project/sip/ ) :
pip install sip
OS : Microsoft Windows 8.1 Pro [Version 6.3.9600]
Python Version: 3.10.0
PIP Version: 21.3.1
I just tried installing sip in a venv, and it went smoothly. I guess you need to upgrade pip:
pip install --upgrade pip
and then run again the installation script:
pip install sip
Run the command in the script directory on this path C:\Users\XXXXX\AppData\Local\Programs\Python\Python310\Scripts
I founded that method on this video:
https://www.youtube.com/watch?v=YVfvLYM2Yes&ab_channel=MustufaBaig
This method worked for me.
I am trying to install cplex for python 2.7.9. I downloaded IBM ILOG CPLEX Studio Preview 12.6.1 32bit and I tried to install it from Pycharm (using the GUI and the install package button) but I got this error message:
Figuring out CPlex setup.
Targeting 32bit platform.
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "C:\Users\me\AppData\Local\Temp\pycharm-packaging0.tmp\pycpx\setup.py", line 148, in <module>
"concert include directory", 'and', '', False)
File "C:\Users\me\AppData\Local\Temp\pycharm-packaging0.tmp\pycpx\setup.py", line 145, in find_path
% (name, (', '.join(goal_list))))
Exception: CPLEX concert include directory not found: please set environment variable CPLEX_PATH to point to the base of the CPlex/Concert installation. Attempting to find files: ilconcert/iloexpression.h, ilconcert/iloalg.h, ilconcert/iloenv.h, ilconcert/ilosolution.h.
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in C:\Users\me\AppData\Local\Temp\pycharm-packaging0.tmp\pycpx
Storing debug log for failure in C:\Users\me\pip\pip.log
Alternatively, I tried to install it from cmd.exe using python setup.py install and I got this output:
C:\Program Files (x86)\IBM\ILOG\CPLEX_Studio_Preview1261\cplex\python\2.7\x86_win32>python setup.py
install
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\cplex
copying cplex\callbacks.py -> build\lib\cplex
copying cplex\six.py -> build\lib\cplex
copying cplex\__init__.py -> build\lib\cplex
creating build\lib\cplex\_internal
copying cplex\_internal\_aux_functions.py -> build\lib\cplex\_internal
copying cplex\_internal\_constants.py -> build\lib\cplex\_internal
copying cplex\_internal\_list_array_utils.py -> build\lib\cplex\_internal
copying cplex\_internal\_matrices.py -> build\lib\cplex\_internal
copying cplex\_internal\_ostream.py -> build\lib\cplex\_internal
copying cplex\_internal\_parameters_auto.py -> build\lib\cplex\_internal
copying cplex\_internal\_parameter_classes.py -> build\lib\cplex\_internal
copying cplex\_internal\_parameter_hierarchy.py -> build\lib\cplex\_internal
copying cplex\_internal\_procedural.py -> build\lib\cplex\_internal
copying cplex\_internal\_pycplex.py -> build\lib\cplex\_internal
copying cplex\_internal\_pycplex_platform.py -> build\lib\cplex\_internal
copying cplex\_internal\_subinterfaces.py -> build\lib\cplex\_internal
copying cplex\_internal\__init__.py -> build\lib\cplex\_internal
creating build\lib\cplex\exceptions
copying cplex\exceptions\error_codes.py -> build\lib\cplex\exceptions
copying cplex\exceptions\__init__.py -> build\lib\cplex\exceptions
copying cplex\_internal\py27_cplex1261.pyd -> build\lib\cplex\_internal
copying cplex\_internal\cplex1261.dll -> build\lib\cplex\_internal
running install_lib
copying build\lib\cplex\callbacks.py -> C:\Python27\Lib\site-packages\cplex
copying build\lib\cplex\exceptions\error_codes.py -> C:\Python27\Lib\site-packages\cplex\exceptions
copying build\lib\cplex\exceptions\__init__.py -> C:\Python27\Lib\site-packages\cplex\exceptions
copying build\lib\cplex\six.py -> C:\Python27\Lib\site-packages\cplex
copying build\lib\cplex\_internal\cplex1261.dll -> C:\Python27\Lib\site-packages\cplex\_internal
copying build\lib\cplex\_internal\py27_cplex1261.pyd -> C:\Python27\Lib\site-packages\cplex\_interna
l
copying build\lib\cplex\_internal\_aux_functions.py -> C:\Python27\Lib\site-packages\cplex\_internal
copying build\lib\cplex\_internal\_constants.py -> C:\Python27\Lib\site-packages\cplex\_internal
copying build\lib\cplex\_internal\_list_array_utils.py -> C:\Python27\Lib\site-packages\cplex\_inter
nal
copying build\lib\cplex\_internal\_matrices.py -> C:\Python27\Lib\site-packages\cplex\_internal
copying build\lib\cplex\_internal\_ostream.py -> C:\Python27\Lib\site-packages\cplex\_internal
copying build\lib\cplex\_internal\_parameters_auto.py -> C:\Python27\Lib\site-packages\cplex\_intern
al
copying build\lib\cplex\_internal\_parameter_classes.py -> C:\Python27\Lib\site-packages\cplex\_inte
rnal
copying build\lib\cplex\_internal\_parameter_hierarchy.py -> C:\Python27\Lib\site-packages\cplex\_in
ternal
copying build\lib\cplex\_internal\_procedural.py -> C:\Python27\Lib\site-packages\cplex\_internal
copying build\lib\cplex\_internal\_pycplex.py -> C:\Python27\Lib\site-packages\cplex\_internal
copying build\lib\cplex\_internal\_pycplex_platform.py -> C:\Python27\Lib\site-packages\cplex\_inter
nal
copying build\lib\cplex\_internal\_subinterfaces.py -> C:\Python27\Lib\site-packages\cplex\_internal
copying build\lib\cplex\_internal\__init__.py -> C:\Python27\Lib\site-packages\cplex\_internal
copying build\lib\cplex\__init__.py -> C:\Python27\Lib\site-packages\cplex
byte-compiling C:\Python27\Lib\site-packages\cplex\callbacks.py to callbacks.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\exceptions\error_codes.py to error_codes.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\exceptions\__init__.py to __init__.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\six.py to six.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_aux_functions.py to _aux_functions.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_constants.py to _constants.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_list_array_utils.py to _list_array_uti
ls.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_matrices.py to _matrices.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_ostream.py to _ostream.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_parameters_auto.py to _parameters_auto
.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_parameter_classes.py to _parameter_cla
sses.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_parameter_hierarchy.py to _parameter_h
ierarchy.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_procedural.py to _procedural.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_pycplex.py to _pycplex.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_pycplex_platform.py to _pycplex_platfo
rm.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\_subinterfaces.py to _subinterfaces.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\_internal\__init__.py to __init__.pyc
byte-compiling C:\Python27\Lib\site-packages\cplex\__init__.py to __init__.pyc
running install_egg_info
Removing C:\Python27\Lib\site-packages\cplex-12.6.1.0-py2.7.egg-info
Writing C:\Python27\Lib\site-packages\cplex-12.6.1.0-py2.7.egg-info
But when I type import cplex I got this error:
import cplex
Traceback (most recent call last):
File "C:\Python27\lib\site-packages\IPython\core\interactiveshell.py", line 2735, in run_code
exec code_obj in self.user_global_ns, self.user_ns
File "<ipython-input-11-062a62e47666>", line 1, in <module>
import cplex
File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.5\helpers\pydev\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Python27\lib\site-packages\cplex\__init__.py", line 43, in <module>
from . import _internal
File "C:\Program Files (x86)\JetBrains\PyCharm Community Edition 4.5\helpers\pydev\pydev_import_hook.py", line 21, in do_import
module = self._system_import(name, *args, **kwargs)
File "C:\Python27\lib\site-packages\cplex\_internal\__init__.py", line 21, in <module>
from . import _aux_functions
ImportError: cannot import name _aux_functions
Please can anyone help me?
You might just want to set the path in your environment variables for python to tell that CPLEX is at this location. Like CPLEXhome/python/PLATFORM/.
You might want to copy the /cplex dir from the IBM installation path to your local python modules path.
I am a complete novice to the python world and have recently been asked to migrate a legacy application that runs on Python 2.4.15, SOAPpy Module & fpconst.
While installing SOAPpy 0.12.4 on the machine, I get an error saying that its unable to locate fpconst eventhough it has been installed on the server.
PFB the steps followed
Installed Python 2.4.15
Installed setuptools-0.6c11.win32-py2.4.exe
Installed wstools-0.3
installed fpconst-0.7.2
import fpconst
fpconst.version
'0.7.2'
Tried to install SOAPpy 0.12.4 but receiving an error saying
Installed d:\python2.4\lib\site-packages\soappy-0.12.4-py2.4.egg
Processing dependencies for SOAPpy==0.12.4
Searching for fpconst
Reading _http://pypi.python.org/simple/fpconst/
Download error: (11001, 'getaddrinfo failed') -- Some packages may not be found!
Couldn't find index page for 'fpconst' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading _http://pypi.python.org/simple/
Download error: (11001, 'getaddrinfo failed') -- Some packages may not be found!
PFB the complete installation log :
D:\Temp\SOAPpy
trial\SOAPpy-0.12.4>python setup.py
build running build running build_py
creating build creating build\lib
creating build\lib\SOAPpy copying
src\SOAPpy\Client.py ->
build\lib\SOAPpy copying
src\SOAPpy\Config.py ->
build\lib\SOAPpy copying
src\SOAPpy\Errors.py ->
build\lib\SOAPpy copying
src\SOAPpy\GSIServer.py ->
build\lib\SOAPpy copying
src\SOAPpy\NS.py -> build\lib\SOAPpy
copying src\SOAPpy\Parser.py ->
build\lib\SOAPpy copying
src\SOAPpy\Server.py ->
build\lib\SOAPpy copying
src\SOAPpy\SOAP.py -> build\lib\SOAPpy
copying src\SOAPpy\SOAPBuilder.py ->
build\lib\SOAPpy copying
src\SOAPpy\Types.py ->
build\lib\SOAPpy copying
src\SOAPpy\URLopener.py ->
build\lib\SOAPpy copying
src\SOAPpy\Utilities.py ->
build\lib\SOAPpy copying
src\SOAPpy\version.py ->
build\lib\SOAPpy copying
src\SOAPpy\WSDL.py -> build\lib\SOAPpy
copying src\SOAPpy__init__.py ->
build\lib\SOAPpy running egg_info
writing requirements to
src\SOAPpy.egg-info\requires.txt
writing src\SOAPpy.egg-info\PKG-INFO
writing top-level names to
src\SOAPpy.egg-info\top_level.txt
writing dependency_links to
src\SOAPpy.egg-info\dependency_links.txt
reading manifest file
'src\SOAPpy.egg-info\SOURCES.txt'
writing manifest file
'src\SOAPpy.egg-info\SOURCES.txt'
D:\Temp\SOAPpy
trial\SOAPpy-0.12.4>python setup.py
install running install running
bdist_egg running egg_info writing
requirements to
src\SOAPpy.egg-info\requires.txt
writing src\SOAPpy.egg-info\PKG-INFO
writing top-level names to
src\SOAPpy.egg-info\top_level.txt
writing dependency_links to
src\SOAPpy.egg-info\dependency_links.txt
reading manifest file
'src\SOAPpy.egg-info\SOURCES.txt'
writing manifest file
'src\SOAPpy.egg-info\SOURCES.txt'
installing library code to
build\bdist.win32\egg running
install_lib running build_py creating
build\bdist.win32 creating
build\bdist.win32\egg creating
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\Client.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\Config.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\Errors.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\GSIServer.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\NS.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\Parser.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\Server.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\SOAP.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\SOAPBuilder.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\Types.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\URLopener.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\Utilities.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\version.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy\WSDL.py ->
build\bdist.win32\egg\SOAPpy copying
build\lib\SOAPpy__init__.py ->
build\bdist.win32\egg\SOAPpy
byte-compiling
build\bdist.win32\egg\SOAPpy\Client.py
to Client.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\Config.py
to Config.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\Errors.py
to Errors.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\GSIServer.py
to GSIServer.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\NS.py to
NS.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\Parser.py
to Parser.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\Server.py
to Server.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\SOAP.py
to SOAP.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\SOAPBuilder.py
to SOAPBuilder.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\Types.py
to Types.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\URLopener.py
to URLopener.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\Utilities.py
to Utilities.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\version.py
to version.pyc byte-compiling
build\bdist.win32\egg\SOAPpy\WSDL.py
to WSDL.pyc byte-compiling
build\bdist.win32\egg\SOAPpy__init__.py
to init.pyc creating
build\bdist.win32\egg\EGG-INFO copying
src\SOAPpy.egg-info\PKG-INFO ->
build\bdist.win32\egg\EGG-INFO copying
src\SOAPpy.egg-info\SOURCES.txt ->
build\bdist.win32\egg\EGG-INFO copying
src\SOAPpy.egg-info\dependency_links.txt
-> build\bdist.win32\egg\EGG-IN FO copying
src\SOAPpy.egg-info\requires.txt ->
build\bdist.win32\egg\EGG-INFO copying
src\SOAPpy.egg-info\top_level.txt ->
build\bdist.win32\egg\EGG-INFO
zip_safe flag not set; analyzing
archive contents... creating dist
creating
'dist\SOAPpy-0.12.4-py2.4.egg' and
adding 'build\bdist.win32\egg' to it
removing 'build\bdist.win32\egg' (and
everything under it) Processing
SOAPpy-0.12.4-py2.4.egg Copying
SOAPpy-0.12.4-py2.4.egg to
d:\python2.4\lib\site-packages Adding
SOAPpy 0.12.4 to easy-install.pth file
Installed
d:\python2.4\lib\site-packages\soappy-0.12.4-py2.4.egg
Processing dependencies for
SOAPpy==0.12.4 Searching for fpconst
Reading
http://pypi.python.org/simple/fpconst/
Download error: (11001, 'getaddrinfo
failed') -- Some packages may not be
found!
Couldn't find index page for 'fpconst'
(maybe misspelled?) Scanning index of
all packages (this may take a while)
Reading http://pypi.python.org/simple/
Download error: (11001, 'getaddrinfo
failed') -- Some packages may not be
found!
No local packages or download links
found for fpconst Best match: None
Traceback (most recent call last):
File "setup.py", line 68, in ?
install_requires=[ File "D:\Python2.4\lib\distutils\core.py",
line 149, in setup
dist.run_commands() File "D:\Python2.4\lib\distutils\dist.py",
line 946, in run_commands
self.run_command(cmd) File "D:\Python2.4\lib\distutils\dist.py",
line 966, in run_command
cmd_obj.run() File "D:\Python2.4\Lib\site-packages\setuptools\command\install.py",
line 76, in run
self.do_egg_install() File "D:\Python2.4\Lib\site-packages\setuptools\command\install.py",
line 104, in do_egg_install
cmd.run() File "D:\Python2.4\Lib\site-packages\setuptools\command\easy_install.py",
line 211, in run
self.easy_install(spec, not self.no_deps) File
"D:\Python2.4\Lib\site-packages\setuptools\command\easy_install.py",
line 427, in easy_install
return self.install_item(None, spec, tmpdir, deps, True) File
"D:\Python2.4\Lib\site-packages\setuptools\command\easy_install.py",
line 478, in install_item
self.process_distribution(spec, dist, deps) File
"D:\Python2.4\Lib\site-packages\setuptools\command\easy_install.py",
line 518, in process_distribution
distros = WorkingSet([]).resolve( File
"D:\Python2.4\Lib\site-packages\pkg_resources.py",
line 563, in resolve
dist = best[req.key] = env.best_match(req, self, installer)
File
"D:\Python2.4\Lib\site-packages\pkg_resources.py",
line 799, in best_matc h
return self.obtain(req, installer) # try and download/install File "D:\Python2.4\Lib\site-packages\pkg_resources.py",
line 811, in obtain
return installer(requirement) File
"D:\Python2.4\Lib\site-packages\setuptools\command\easy_install.py",
line 434, in easy_install
self.local_index File "D:\Python2.4\Lib\site-packages\setuptools\package_index.py",
line 475, i n fetch_distribution
return dist.clone(location=self.download(dist.location,
tmpdir)) AttributeError: 'NoneType'
object has no attribute 'clone'
Error: No local packages or download links found ..
Go here -> decompress the file -> open a cmd and cd dir to SOAPpy files -> type python setup.py install to run it.
Then run IDE to check it, by import SOAPpy.