Coder Social home page Coder Social logo

Comments (5)

jellespijker avatar jellespijker commented on June 3, 2024

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

from conan-ultimaker-index.

yhuangece7 avatar yhuangece7 commented on June 3, 2024

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!

from conan-ultimaker-index.

jellespijker avatar jellespijker commented on June 3, 2024

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

from conan-ultimaker-index.

yhuangece7 avatar yhuangece7 commented on June 3, 2024

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!

from conan-ultimaker-index.

yhuangece7 avatar yhuangece7 commented on June 3, 2024

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?

from conan-ultimaker-index.

Related Issues (2)

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.