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

Installation 1.3.7 within pyjoulescope_ui failed #6

Closed
satirebird opened this issue May 10, 2023 · 2 comments
Closed

Installation 1.3.7 within pyjoulescope_ui failed #6

satirebird opened this issue May 10, 2023 · 2 comments

Comments

@satirebird
Copy link

Installing the driver fails when installed with:

git clone https://github.com/jetperch/pyjoulescope_ui.git
cd pyjoulescope_ui
python3.10 -m venv .venv
source .venv/bin/activate
pip install -U -r requirements.txt

Reported Error:

Collecting pyjoulescope_driver<2.0.0,>=1.3.7
  Downloading pyjoulescope_driver-1.3.7.tar.gz (2.7 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 2.7/2.7 MB 12.2 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [15 lines of output]
      Traceback (most recent call last):
        File "/home/sven/install/joulescope/pyjoulescope_ui2/.venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/sven/install/joulescope/pyjoulescope_ui2/.venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
        File "/home/sven/install/joulescope/pyjoulescope_ui2/.venv/lib/python3.10/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
        File "/tmp/pip-build-env-jouiabvd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
        File "/tmp/pip-build-env-jouiabvd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-jouiabvd/overlay/lib/python3.10/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 34, in <module>
      ModuleNotFoundError: No module named 'pyjoulescope_driver'
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.

System: Ubuntu 22.04

@mliberty1
Copy link
Member

mliberty1 commented May 10, 2023

Hi @satirebird and thanks for reporting this issue. I confirm that python3 -m pip install pyjoulescope_driver gives the same error with a clean venv on Ubuntu 22.04 LTS. That error is entirely unhelpful, so I will have to investigate. Python packaging recently obsoleted the python setup.py method, so I suspect that this is related.

In the meantime, here is a process to build and install from source:

python3 -m venv ~/venv/tmp
. ~/venv/tmp/bin/activate
pip3 install Cython numpy requests setuptools wheel
cd {path/to}/joulescope_driver
python3 setup.py bdist_wheel
pip3 install dist/pyjoulescope_driver*

Same as this issue.

mliberty1 added a commit that referenced this issue May 17, 2023
@mliberty1
Copy link
Member

Fixed in 1.3.9.

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