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

What components are needed to run this code on a new computer #103

Open
hualuoyu opened this issue Dec 23, 2024 · 13 comments
Open

What components are needed to run this code on a new computer #103

hualuoyu opened this issue Dec 23, 2024 · 13 comments
Assignees

Comments

@hualuoyu
Copy link

Dear developer,
When I download the code in one new computer, follow the readme.md to execute the code, the code can not run, will suddenly abort, as shown in the photo:
QQ20241223-100646
Depending on the configuration.json file, OpenGL may be required to run this code, but does it need any other components? Please help me.

@Angar0Os Angar0Os self-assigned this Dec 23, 2024
@Angar0Os
Copy link
Collaborator

Hello @hualuoyu ,

I performed a fresh installation of the project from scratch to understand where your issue might be coming from.
Like you, I followed the README and successfully completed the installation.
I have this configuration.json file, which I am attaching as a screenshot for you.

I have several questions for you:

  • Which version of Python are you using?
  • Did you encounter any issues during the installation of the requirements?
  • Do you have the "assets-compiled" folder as shown in the screenshot below after the compilation?

Thank you for your feedback.

image
image

@Angar0Os Angar0Os pinned this issue Dec 24, 2024
@Angar0Os Angar0Os unpinned this issue Dec 24, 2024
@zjz5250
Copy link

zjz5250 commented Dec 26, 2024

Hello @hualuoyu ,

I performed a fresh installation of the project from scratch to understand where your issue might be coming from. Like you, I followed the README and successfully completed the installation. I have this configuration.json file, which I am attaching as a screenshot for you.

I have several questions for you:

  • Which version of Python are you using?
  • Did you encounter any issues during the installation of the requirements?
  • Do you have the "assets-compiled" folder as shown in the screenshot below after the compilation?

Thank you for your feedback.

image image
========================================================================
Hi, I try to run the project,but encounter some problems as follows:
(1)I encountered the following problems when installing the project under Windows 11
the code version is v1.3.1 released,and using python3.9.13,harfang-3.2.5-py3-none-win_amd64.whl。
After I complete the installation,I execute the command “ python main.py” in the source folder。but encounter the error:
“ImportError: DLL load failed while importing harfang”
Am I missing some steps?
(2)I encountered the following problems when installing projects under ubuntu
the code version is v1.3.1 released,and using python3.9.13,harfang-3.2.5-cp32-abi3-linux_x86_64.whl。
After I complete the installation,I execute the command “ python main.py” in the source folder。but encounter the error:“No module named _sqlite3”

@zjz5250
Copy link

zjz5250 commented Dec 26, 2024

@Angar0Os
Hi, I am very interested in this project, thank you for your work and sharing.
According to the readme document, after downloading the official release versionv 1.3.1, I can directly execute the start.bat file,right?but when I execute the star.bat,the problem occurred: “ImportError: DLL load failed while importing harfang”

@Angar0Os
Copy link
Collaborator

Hello,

It seems that you are missing some DLLs for the project.

  • Have you installed the project requirements using the 0-install-requirements.bat file?
  • Did you encounter any errors?

If so, try the following:

- Upgrade pip with the following command: python.exe -m pip install --upgrade pip

If that did not work:

- Upgrade your Python version to python=3.10.0
- Upgrade pip using the same command as earlier
- Install the requirements
- Run start.bat

If you did not encounter any issues, check that python.exe is included in your environment variables.
It seems that the issue is the same on Linux. Let me know if the problem persists.

@zjz5250
Copy link

zjz5250 commented Dec 26, 2024

Thank you for your reply.
I use the code is official released v1.3.1,and there has no 0-install-requirements.bat file.
As you suggested, should use the code downloaded form repository, is it?
I will try it again.
thanks very much

@Angar0Os
Copy link
Collaborator

Yes, you should use the code from the repository.
We will update the release to fix this issue.
I will keep you informed in this thread when the release is available.

@zjz5250
Copy link

zjz5250 commented Dec 27, 2024

This time,I install the project as follows, but the problem occured again。
(1)I use the code download from the repository
(2)The python version is 3.9.13
(3)I installed the project requirements using the 0-install-requirements.bat file without errors。
when I execute “python main.py”,the problem occurred: “ImportError: DLL load failed while importing harfang”
And,I will try it with python3.10.

@zjz5250
Copy link

zjz5250 commented Dec 27, 2024

python310
It still do not work。
that's strange

@zjz5250
Copy link

zjz5250 commented Dec 27, 2024

Maybe,it is because my win11 has some problems。
when I execute import harfang using python3.10 in another pc,it is ok.
I will completely install the project in the new pc.
then I will feedback the result

@zjz5250
Copy link

zjz5250 commented Dec 27, 2024

I did it.
use python3.10,the code downloaded from the repository,and install the project requirements using the 0-install-requirements.bat file。The project can run finally!
Thank you very much!

@zjz5250
Copy link

zjz5250 commented Dec 27, 2024

wow, ubuntu20.04 can also be success!
(1)python3.9,
(2) The code is downloaded from the repository
(3) complete the installation as follows:
cd souce
python -m pip install -r source/requirements.txt
python -m pip install -r Agent/requirements.txt

@zjz5250
Copy link

zjz5250 commented Dec 27, 2024

network mode
Why is there no ip and port number in network mode in ubuntu20.04, while the ip and port number can be seen in the top left corner in win11

@zjz5250
Copy link

zjz5250 commented Dec 27, 2024

ip port
It is the IP and port in win11

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

3 participants