pyroll-project / pyroll-freiberg-flow-stress

Plugin for PyRoll providing Freiberg flow stress approach and material database.
https://pyroll.readthedocs.io
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Problem with import of module #2

Closed ToFFmashines closed 9 months ago

ToFFmashines commented 1 year ago

Hi,

I got this message (see below) at import of pyroll.basic module (import pyroll.basic as pr). Installation of PyRoll I made by pip install pyroll

The version of modules are pyroll 1.0.5.post1 pyroll-basic 1.0.1 pyroll-freiberg_flow_stress 1.1.1

Can you please tell me where the error is?

Best regards, Tomas Kubina Head of Roll Pass Design Department Liberty Ostrava, Czech Republic

P.S.: We can communicate directly by e-mail tomas.kubina @ libertysteelgroup.com

Traceback (most recent call last): File "C:\Users\n029399\Python-Portable-3.9.6\apps\rolling\input.py", line 1, in import pyroll.basic as pr File "C:\Users\n029399\Python-Portable-3.9.6\apps\lib\site-packages\pyroll\basic.py", line 7, in import pyroll.freiberg_flow_stress as freiberg_flow_stress File "C:\Users\n029399\Python-Portable-3.9.6\apps\lib\site-packages\pyroll\freiberg_flow_stress__init__.py", line 3, in from . import hookspecs File "C:\Users\n029399\Python-Portable-3.9.6\apps\lib\site-packages\pyroll\freiberg_flow_stress\hookspecs.py", line 4, in @RollPass.Profile.hookspec AttributeError: type object 'Profile' has no attribute 'hookspec'

ChRen95 commented 1 year ago

Hi Tomas, Sorry we currently have zero to no internet at the University so I didn't see your Issue. To me this sounds like a version conflict. Please check if pyroll-core version 2.0 or higher is installed. If so please uninstall this version and reinstall pyroll-basic or pyroll whatever you are using. This should resolve your issue.