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

Cannot connect to https://conan.ultimaker.com/ #7

Open
yhuangece7 opened this issue Aug 11, 2023 · 5 comments
Open

Cannot connect to https://conan.ultimaker.com/ #7

yhuangece7 opened this issue Aug 11, 2023 · 5 comments

Comments

@yhuangece7
Copy link

Hi all,
I am trying to use conanfile.py to install the dependencies, but when I type in the command conan install . I found the issue like this:

ERROR: Error loading conanfile at '<my local directory>\Uranium-main\conanfile.py': HTTPSConnectionPool(host='conan.ultimaker.com', port=443): Max retries exceeded with url: /v1/ping (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000015E4350EC20>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))

Unable to connect to ultimaker=https://conan.ultimaker.com
1. Make sure the remote is reachable or,
2. Disable it by using conan remote disable,
Then try again.

I tried to open https://conan.ultimaker.com/ in my broswer and cannot connect it either. Am not sure if this is a known issue or an issue that happened recently. Should I wait for the recovery of the connection to the link, or should I try something different?

Thank you!

@jellespijker
Copy link
Member

Please follow the instructions on our wiki: https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source

@yhuangece7
Copy link
Author

Hi @jellespijker ,
Thank you so much for providing the instructions. I have followed on it step by step but got one problem in step3. I tried to report the issue in https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source but did not find a proper category. Therefore, I have to switch back to here and ask for your advice.

  • My platform:
    Windows 10, and I used powershell inside of the x64 Native Command Tools Prompt
  • Context:
    I have followed the steps 1 and 2 in https://github.com/Ultimaker/Cura/wiki/Running-Cura-from-Source without any problems.
  • Issue description:
    when I run step3, in my powershell, after typing in conan install . --build=missing --update -o cura:devtools=True -g VirtualPythonEnv, it installed several pakcages but eventually stopped here:
uranium/latest@ultimaker/testing: Not found in local cache, looking in remotes...
uranium/latest@ultimaker/testing: Trying with 'conan-center'...
ERROR: Unable to find 'uranium/latest@ultimaker/testing' in remotes

image
I tried to comment out self.requires("curaengine/(latest)@ultimaker/testing") in conanfile.py inside the Cura folder, and then after I re-run the command, the issue happened at self.requires("uranium/(latest)@ultimaker/testing"). Therefore, I assume something is wrong related to "ultimaker/testing", can you teach me what should I do?
Thank you!

@jellespijker
Copy link
Member

these are indications that you don't have the correct remotes installed, did you follow step 1?

I'm also not sure what you mean by categories

@yhuangece7
Copy link
Author

Hi @jellespijker ,
Thank you so much for your help! I have tried again from the beginning of step1, and had made some progress in step3. However, this time, the program was stopped in this step:

FileExistsError: [WinError 183] Cannot create a file when that file already exists: 'C:\\.conan\\a0bdb4\\1\\build\\Release'
ERROR: pyarcus/5.2.2: Error in generate() method, line 94
        sip.build()
while calling 'build', line 33
        self._conanfile.run(cmd, cwd = self._conanfile.source_folder)
        ConanException: Error 1 while executing "sip-build"

I tried manually delete the Release folder at this path (C:\.conan\a0bdb4\1\build\Release), then re-run the command in step 3:
conan install . --build=missing --update -o cura:devtools=True -g VirtualPythonEnv
but the same issues persist. I am running powershell from Windows 10 x64 native command prompt, and I also tried to use "run as administor" but it did not help.

I can confirm all the requirements below are met. But I did not did anything specifically for "the system dependencies can be found on the PATH".

Windows 10 or higher
Visual Studio with MSVC 2022 or higher
Python 3.10.4 or higher
venv (Python)
sip (Python) 6.5.1
CMake 3.23 or higher
Ninja 1.10 or higher
Conan >=1.54 <=1.56.0 || >=1.58.0 <2.0.0

Would you advise what can I do to solve this issue? Thank you!

@yhuangece7
Copy link
Author

Hi @jellespijker,
Regarding the previous error ([WinError 183] Cannot create a file when that file already exists: 'C:\.conan\a0bdb4\1\build\Release'), I found one way to bypass it , this is what I did:

  1. I went to in the venv folder (\my_cura_venv\Lib\site-packages\sipbuild and opened project.py
  2. in line 604, change os.mkdir(self.build_dir) toos.makedirs(self.build_dir, exist_ok=True)

By doing this, the error will not show up.
Howver, after bypassing the error above, when I ran the command in step3, I encountered another issue:

----Running------
> "sip-build"
-----------------
These bindings will be built: pyArcus.
Generating the pyArcus bindings...
Generating the pyArcus .pyi file...
The project has been built.
pyarcus/5.2.2: Aggregating env generators
pyarcus/5.2.2: Calling build()
pyarcus/5.2.2:
pyarcus/5.2.2: ERROR: Package '46f4cc8d5d301cf7f04473c21ba4cacf2020349f' build failed
pyarcus/5.2.2: WARN: Build folder C:\.conan\a0bdb4e\1\build\Release
ERROR: pyarcus/5.2.2: Error in build() method, line 103
        cmake = CMake(self)
        ConanException: CMakePresets.json was not found in C:\.conan\a0bdb4e\1\build\Release\generators folder. Check that you are using CMakeToolchain as generator to ensure its correct initialization.

the issue is fundamentally related to the missing file "CMakePresets.json", I tried to create one and placed in the generator folder, but when I ran the command in step3, I can identify that the file is firstly deleted then the same error (this file is not found) showed up again. I tried different methods but still got the problem. Is there anything else i can try?

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

2 participants