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

Automation in PyCharm #39

Open
strykereye2 opened this issue Feb 2, 2024 · 4 comments
Open

Automation in PyCharm #39

strykereye2 opened this issue Feb 2, 2024 · 4 comments

Comments

@strykereye2
Copy link

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

@NIbbuchanan
Copy link

NIbbuchanan commented Jun 6, 2024

For some reason our automated notification process isn't working for git opened issues, so I just noticed this today. Let us know if this is still a problem of if you were able to figure out the issue. Thanks and sorry for the long delay (our normal support channels are more reliable/timely than the git notifications...sorry about that!)

@strykereye2
Copy link
Author

strykereye2 commented Jul 25, 2024 via email

@NIbbuchanan
Copy link

Is this still an issue for you? We had someone who wasn't too familiar with PyCharm/python try it out using the documented steps. They were able to get it to work, and they provided some more details specific to PyCharm in the Getting started README:
https://niflexlogger-automation.readthedocs.io/en/latest/getting_started.html#installing-the-flexlogger-automation-python-module-in-pycharm

Let us know if you still have any issues. Thanks for letting us know about this and following up to make sure we updated the documentation.
Brad

@strykereye2
Copy link
Author

strykereye2 commented Jul 25, 2024 via email

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