May-15-2017, 10:34 PM
hi i have a great problem I insalled python3.5 and deleted python3.4 and installed pygobject3.18.2 on python3.5 64 bit but after installation, when I import gi module, python give no module named error! please help me.
Quote:when I import gi module, python give no module named errorAre you sure you are using the python3.5 interpreter when you get this error? If you are using an IDE, verify that the interpreter is changed to the new one.
Quote:metulburr@ubuntu:~$ sudo apt-cache search pygobjectand go through their install process?
python-gi-dev - development headers for GObject Python bindings
python-glade2 - GTK+ bindings: Glade support
python-gobject-2-dev - development headers for the static GObject Python bindings
python-gtk2 - Python bindings for the GTK+ widget set
python-gtk2-dbg - Python bindings for the GTK+ widget set (debug extension)
python-gtk2-dev - GTK+ bindings: devel files
python-gtk2-doc - Python bindings for the GTK+ widget set - documentation
python-gtkspellcheck - spellchecking library written in Python for Gtk based on Enchant
python-gtkspellcheck-doc - Python GTK Spellcheck common documentation
python3-gtkspellcheck - spellchecking library written in Python for Gtk based on Enchant
Quote:hi i have a great problem I insalled python3.5 and deleted python3.4Why would you do this? Is there some feature you wanted to use in python3.5.x?
>>> import gi Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Program Files\Python35\lib\site-packages\gi\__init__.py", line 42, i <module> from . import _gi ImportError: Module use of python34.dll conflicts with this version of Python.please help me.
(May-16-2017, 09:04 PM)harun2525 Wrote: [ -> ]ImportError: Module use of python34.dll conflicts with this version of Python.Is Python3.5 in your PATH?
pacman
command build full environment. C:\msys32\mingw32\bin
gtk_test.py
in that folder#gtk_test.py import gi gi.require_version("Gtk", "3.0") from gi.repository import Gtk window = Gtk.Window(title="Hello World") window.show() window.connect("delete-event", Gtk.main_quit) Gtk.main()Now i can choose to run with 3.5 or 2.7 both work(they are build from scratch).
(May-19-2017, 08:56 AM)harun2525 Wrote: [ -> ]I can't install python3.5 to msys2You don't install python3.5,it's get built.
Quote:If you develop in Python 3:
pacman -S mingw-w64-x86_64-python3-gobject
pacman
and build this yourself(Visual Studio) can be nightmare.