ukBaz / BLE_GATT

Python package for using BlueZ D-Bus API to create a Client
MIT License
29 stars 5 forks source link

error install vext.gi #12

Closed SatriyoJati closed 1 year ago

SatriyoJati commented 1 year ago

python3 version : 3.9.2 Operating System: Raspbian GNU/Linux 11 (bullseye) Kernel: Linux 5.15.84-v7l+ Architecture: arm

I am not using virtual environment to instsall BLE_GATT, I got error an when installing using pip3 :

 Building wheels for collected packages: vext.gi
  Building wheel for vext.gi (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      /home/pi/.local/lib/python3.9/site-packages/setuptools/__init__.py:85: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated. Requirements should be satisfied by a PEP 517 installer. If you are using pip, you can try `pip install --use-pep517`.
        dist.fetch_build_eggs(dist.setup_requires)
      running bdist_wheel
      running build
      /home/pi/.local/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(
      installing to build/bdist.linux-armv7l/wheel
      running install
      vext.gi Install
      Not installing PTH file to real prefix
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/tmp/pip-install-37vfvsuz/vext-gi_80a1ad7675094391bb96c8ca0557d558/setup.py", line 62, in <module>
          setup(
        File "/home/pi/.local/lib/python3.9/site-packages/setuptools/__init__.py", line 108, in setup
          return distutils.core.setup(**attrs)
        File "/home/pi/.local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
          return run_commands(dist)
        File "/home/pi/.local/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
          dist.run_commands()
        File "/home/pi/.local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
          self.run_command(cmd)
        File "/home/pi/.local/lib/python3.9/site-packages/setuptools/dist.py", line 1221, in run_command
          super().run_command(command)
        File "/home/pi/.local/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
          cmd_obj.run()
        File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 275, in run
          self.egg2dist(self.egginfo_dir, distinfo_dir)
        File "/usr/lib/python3/dist-packages/wheel/bdist_wheel.py", line 372, in egg2dist
          raise ValueError(err)
      ValueError: Egg metadata expected at build/bdist.linux-armv7l/wheel/vext.gi-0.7.4-py3.9.egg-info but not found
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for vext.gi
  Running setup.py clean for vext.gi
Failed to build vext.gi
ERROR: Could not build wheels for vext.gi, which is required to install pyproject.toml-based projects

how to install the library without virtual environment?

ukBaz commented 1 year ago

You haven't shown early enough in your install what commands you are using. I'm assuming that you have done:

$ python3 -m venv venv_ble
$ . venv_ble/bin/activate
$ pip3 install BLE_GATT

And that is when you are seeing the error?

Try upgrading your version of pip by using:

$ pip3 install pip --upgrade

If that doesn't work then please show what commands you are using to create the Python virtual environment and pip install commands.

ukBaz commented 1 year ago

Closed due to lack of activity. Please update the issue if there is still an issue