Skip to content

Problem in importing tixi3wrapper #249

@99ciroc

Description

@99ciroc

Hello everyone, I am experiencing a problem in loading tixi3 in my conda virtual environment. In particular, this is the error that i get, does anyone know how to solve this? I followed the procedure reported on Github for installation (conda install dlr-sc::tixi3):

from tixi3 import tixi3wrapper

File "C:\Users\CuozzoC\AppData\Local\anaconda3\envs\my_project_env\Lib\site-packages\tixi3\tixi3wrapper.py", line 173, in
class Tixi3(object):
Traceback (most recent call last):
File "C:\Users\CuozzoC\AppData\Local\anaconda3\envs\my_project_env\Lib\site-packages\tixi3\tixi3wrapper.py", line 183, in Tixi3
lib = ctypes.cdll.LoadLibrary(name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\CuozzoC\AppData\Local\anaconda3\envs\my_project_env\Lib\ctypes_init_.py", line 454, in LoadLibrary
return self.dlltype(name)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\CuozzoC\AppData\Local\anaconda3\envs\my_project_env\Lib\ctypes_init
.py", line 366, in init
if '/' in name or '\' in name:
^^^^^^^^^^^
TypeError: argument of type 'NoneType' is not iterable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Users\CuozzoC\Desktop\Exaelia\CPACS_TAW\read_cpacs.py", line 7, in
from tixi3 import tixi3wrapper
File "C:\Users\CuozzoC\AppData\Local\anaconda3\envs\my_project_env\Lib\site-packages\tixi3\tixi3wrapper.py", line 173, in
class Tixi3(object):
File "C:\Users\CuozzoC\AppData\Local\anaconda3\envs\my_project_env\Lib\site-packages\tixi3\tixi3wrapper.py", line 189, in Tixi3
raise Exception("Could not load the tixi3 library. Please check if:\n" +
Exception: Could not load the tixi3 library. Please check if:

  1. The PATH (Windows) / LD_LIBRARY_PATH (Linux) environment variable points to the library
  2. The architecture of the library matches the architecture of python (a 32 bit python needs a 32 bit shared library)

I have checked that the PATH environment variable points to the library but I am still getting the error. I don't know if this can be useful, but when i run only "import tixi3" instead of "from tixi3 import tixi3wrapper" it works alright

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions