Giter Club home page Giter Club logo

Comments (28)

Userpc1010 avatar Userpc1010 commented on September 26, 2024 1

Yes, I changed the host name to “Admin”, now I deleted the anaconda, it also works without it.

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

Image:
image

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

You're right, you can work around it by running the Python files, but I should get the .exe fixed. Can you translate the Russian lines to English?

Note that I've had others launch the .exe (they didn't even have Python installed) and it did work for them.

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

There are not dynamic libraries ssl.py and pyi_rht_certifi.py.

DLL load failed: file not found.

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

By the way, a great project! But there are doubts that the autopilot, after testing in the simulator, will be able to fly, because the response time of the servos and their gear ratio to the rudder in WarTunder cannot be simulated. In addition, BNO 055 cannot always correctly calculate orientation, unlike virtual sensors in the game.

I am also doing a similar autopilot project but till not able to successful fly tests. I testing the fly stabilization algorithm in the kerbal space program game whith kOS mod but these settings are not suitable. I hope you succeed the first time.

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

Yeah, I've been able to do some successful Arduino autopilot simulations with War Thunder for my personal Arduino RC research plane using Thunder Viewer. I'm guessing you came here from my FliteTest forum thread?

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

I'll take a look and see if I can get ssl.py and pyi_rht_certifi.py explicitly included in the .exe. Do you have Python installed and know how to use it?

Also, what are you developing an autopilot for?

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

Yes, from a forum or youtube channel.

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

No, Python is not installed, this may be a problem, usually I use only C / C ++ but I think I can figure it out.

Autopilot developing, just for fun.

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

I updated the latest release's zip file. I tried to manually add ssl.py, but I could not figure out what the whole pyi_rht_certifi.py thing is about. I don't even have that file on my computer. Maybe it's a Windows 7 issue?

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

Perhaps the problem is in the system, it is already a lot of time 1:30 in Moscow, tomorrow I will try to find and add these files. I also installed IDEL Anaconda 3 and now download sources as well.

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

After launch run.bat:

And I modified setup.bat:

  1. pip install paho-mqtt
  2. pip install pySerialTransfer
  3. pip install WarThunder
  4. pip install ntplib
  5. pip install imagehash
  6. pip install Pillow
  7. pip install pyserial
  8. pip install PyQt5
  9. pip install requests
    PAUSE

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

After launch setup with anaconda pip.exe (with python37 pip.exe finally is fine):

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

Seems that your Python/pip install is either incomplete and/or broken. The printouts are saying pip can't install any new packages because of an SSL error due to the SSL module not being available on your machine. Are you sure you installed Anaconda and pip correctly?

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

I used the Anaconda3-2020.02-Windows-x86_64 auto-installer.
As I already write, if use Python pip.exe, everything works fine in setup.bat.

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

Ok, error with SSL module in anaconda is fixed need copy:

"C:\ProgramData\Anaconda3\Library\bin\libcrypto-1_1-x64.dll" to "C:\ProgramData\Anaconda3\DLLs\libcrypto-1_1-x64.dll"

and

"C:\ProgramData\Anaconda3\Library\bin\libssl-1_1-x64.dll" to "C:\ProgramData\Anaconda3\DLLs\libssl-1_1-x64.dll"

But the error with the socket remained:

After launch run.bat:

And I modified setup.bat:

1. pip install paho-mqtt

2. pip install pySerialTransfer

3. pip install WarThunder

4. pip install ntplib

5. pip install imagehash

6. pip install Pillow

7. pip install pyserial

8. pip install PyQt5

9. pip install requests
   PAUSE

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

Can you open up Spyder.exe (included in Anaconda) and enter the following in the IPython workspace:

import socket    
hostname = socket.gethostname()    
IPAddr = socket.gethostbyname(hostname)    
print("Your Computer Name is:" + hostname)    
print("Your Computer IP Address is:" + IPAddr)  

Let me know what it says as an output.

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

Result:

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

What does it say when you run:

import socket
hostname = socket.gethostname()
print("Your Computer Name is: " + hostname)

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

runfile('C:/Users/Admin/.spyder-py3/temp.py', wdir='C:/Users/Admin/.spyder-py3')
Your Computer Name is: Admin-ПК
Fine

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024
import socket    
 hostname = socket.gethostname()    
 #IPAddr = socket.gethostbyname(hostname.strip() )  
 print (socket.getaddrinfo(IP, 9092))
 print("Your Computer Name is:" + hostname)    
 #print("Your Computer IP Address is:" + IPAddr)

[(<AddressFamily.AF_INET: 2>, 0, 0, '', (IP, 9092))]
Your Computer Name is:Admin-ПК

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

The socket package might be having a difficult time with special characters like '-' and 'П'. I can't help too much with that, though.

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

What you're probably better off writing a program yourself that grabs War Thunder data and sends it to your Arduino. You can use the source code of the WarThunder Python package to get an idea on how to do it.

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

If change the host name is there a chance?

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

Only testing can tell

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

There are results:

from thunder_viewer.

Userpc1010 avatar Userpc1010 commented on September 26, 2024

I think can try to run without anaconda

from thunder_viewer.

PowerBroker2 avatar PowerBroker2 commented on September 26, 2024

How did you get it to work? Change the host name?

from thunder_viewer.

Related Issues (6)

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.