Giter Site home page Giter Site logo

Comments (7)

HENDRIX-ZT2 avatar HENDRIX-ZT2 commented on May 29, 2024

Probably haven't installed the python dependencies. Run via command prompt or powershell to see the error.

from cobra-tools.

stargatedalek avatar stargatedalek commented on May 29, 2024

I opened it in powershell and this came up.

PS C:\Users*> "E:\Games\Game Utilities\JWE Mods\cobra-tools\cobra-tools\ovl_tool.bat"
E:\Games\Game Utilities\JWE Mods\cobra-tools\cobra-tools\ovl_tool.bat
PS C:\Users*
>

I moved it to C drive and managed to get an error, so something happening might be drive ID dependent (which could likely be powershell, I don't know much about it).

C:\Users****\Desktop\cobra-tools\ovl_tool.bat

C:\Users*>python ovl_tool_gui.py
python: can't open file 'ovl_tool_gui.py': [Errno 2] No such file or directory
PS C:\Users*
>

from cobra-tools.

HENDRIX-ZT2 avatar HENDRIX-ZT2 commented on May 29, 2024

If you type python ovl_tool_gui.py the cmd has to be in the folder that contains ovl_tool_gui.py (ie. cobra-tools). You can shift-right click in the cobra-tools folder to open a powershell there.

from cobra-tools.

stargatedalek avatar stargatedalek commented on May 29, 2024

Thanks for the shift-right click trick.

PS E:\Games\Game Utilities\JWE Mods\cobra-tools\cobra-tools> python ovl_tool_gui.py
Traceback (most recent call last):
File "ovl_tool_gui.py", line 4, in
from PyQt5 import QtWidgets, QtGui, QtCore
ModuleNotFoundError: No module named 'PyQt5'
PS E:\Games\Game Utilities\JWE Mods\cobra-tools\cobra-tools>

I'm still not quite certain what to do from here. I need a python module named "PyQt5" I presume, but there seems to be dozens of python related modules or add-ons with that name.

edit

I've figured this part out, they can be installed "automatically" though pip (I was trying to find files with that title and download them manually through the PyPi website).

After adding PyQt5 and pyffi I now get this error.

python ovl_tool_gui.py
Traceback (most recent call last):
File "C:\Users****\AppData\Local\Programs\Python\Python37\lib\site-packages\pyffi\object_models\xml_init_.py", line 418, in startElement
tag = self.tags[name]
KeyError: 'token'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users****\AppData\Local\Programs\Python\Python37\lib\site-packages\pyffi\object_models\xml_init_.py", line 421, in startElement
tag = self.tags_niftools[name]
KeyError: 'token'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "ovl_tool_gui.py", line 6, in
from pyffi_ext.formats.ovl import OvlFormat
File "E:\Games\Game Utilities\JWE Mods\cobra-tools\cobra-tools\pyffi_ext\formats\ovl_init_.py", line 48, in
from pyffi_ext.formats.ms2 import Ms2Format
File "E:\Games\Game Utilities\JWE Mods\cobra-tools\cobra-tools\pyffi_ext\formats\ms2_init_.py", line 56, in
class Ms2Format(pyffi.object_models.xml.FileFormat):
File "C:\Users*\AppData\Local\Programs\Python\Python37\lib\site-packages\pyffi\object_models\xml_init_.py", line 106, in init
parser.parse(xml_file)
File "C:\Users*
\AppData\Local\Programs\Python\Python37\lib\xml\sax\expatreader.py", line 111, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\Users*\AppData\Local\Programs\Python\Python37\lib\xml\sax\xmlreader.py", line 125, in parse
self.feed(buffer)
File "C:\Users*
\AppData\Local\Programs\Python\Python37\lib\xml\sax\expatreader.py", line 217, in feed
self.parser.Parse(data, isFinal)
File "c:\a\18\s\modules\pyexpat.c", line 417, in StartElement
File "C:\Users*\AppData\Local\Programs\Python\Python37\lib\xml\sax\expatreader.py", line 333, in start_element
self._cont_handler.startElement(name, AttributesImpl(attrs))
File "C:\Users*
\AppData\Local\Programs\Python\Python37\lib\site-packages\pyffi\object_models\xml_init
.py", line 423, in startElement
raise XmlError("error unknown element '%s'" % name)
pyffi.object_models.xml.XmlError: error unknown element 'token'

from cobra-tools.

HENDRIX-ZT2 avatar HENDRIX-ZT2 commented on May 29, 2024

Run a cmd with admin rights and install the following python modules using the given pip commands:

  • pyffi 2.2.4.dev3 (run: pip install PyFFI==2.2.4.dev3)
  • pyqt5 (run: pip install pyqt5)
  • imageio (run: pip install imageio)

from cobra-tools.

HENDRIX-ZT2 avatar HENDRIX-ZT2 commented on May 29, 2024

Update: you don't have pyffi 2.2.4.dev3 installed but some earlier version of pyffi. Must be dev3 so run: pip install PyFFI==2.2.4.dev3

from cobra-tools.

stargatedalek avatar stargatedalek commented on May 29, 2024

That got it working! Thanks so much for the help.

from cobra-tools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.