ni / ni/niflexlogger-automation-python

Automation in PyCharm

Open
#39 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
12
Forks
6
Avg merge
1d 13h
Merged PRs (30d)
8

Description

When trying to run any of the examples you have supplied such as Test Sequencer.
I have encountered an issue with the importlib.
I was doing a little googling and discovered that importlib became a package from the standard library and I don't need to install it separately

I was trying to get by doing an:
python3 -c "import importlib"

I have also encountered a numpy module issue,

I'm trying to build a Automatic sequence generator for a common test CRIO Configuration. I need to build by setting Common Channel Naming Conventions so that a Flexlogger Plugin I'm building can perform some custom calculations and trends as a repeatable test platform with minor operator configuration changes.

As the developers, I wanted to thank you but also ask you what is your development environment like are you operating from command line with python and pip or are you working inside an IDE like PyCharm like I am?

I would like to duplicate your working environment or try and get your current code operation from within PyCharm.
NOTE I have less than 8months working in Python. so I will apologize in advance for my limitations.

My Environment is as follows:
PyCharm 2023.1.2 Community Edition
Runtime 17.0.6+10-b829.9
Python 3.10.4
pip 23.3.2

Error Encountered:
_Collecting importlib
Using cached importlib-1.0.4.zip (7.1 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'error'

error: subprocess-exited-with-error

python setup.py egg_info did not run successfully.
exit code: 1

[1 lines of output]
ERROR: Can not execute setup.py since setuptools is not available in the build environment.
[end of output]

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

Encountered error while generating package metadata._

And

C:\Users\Admin\PycharmProjects\FlexloggerAutomatedTestSetup\venv\Scripts\python.exe "C:\Users\Admin\PycharmProjects\FlexloggerAutomatedTestSetup\examples\Test Sequencer\thermal chamber with hardware\sequencer_thermal_chamber_hardware.py"
Traceback (most recent call last):
File "C:\Users\Admin\PycharmProjects\FlexloggerAutomatedTestSetup\examples\Test Sequencer\thermal chamber with hardware\sequencer_thermal_chamber_hardware.py", line 5, in
import numpy as np
ModuleNotFoundError: No module named 'numpy'

Process finished with exit code 1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report names examples/Test Sequencer/thermal chamber with hardware/sequencer_thermal_chamber_hardware.py and shows missing importlib and numpy errors in a PyCharm virtual environment. Start by reproducing the example with the listed Python and pip versions; the issue does not define a code change or acceptance condition, so clarify whether the goal is dependency instructions, environment support, or an example fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
numpy, python
Domain
developer-experience, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.