question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] `conda-forge` breaking

See original GitHub issue

FYI @mkitti @ngam

Weirdly the conda-forge tests are breaking again, even after I updated the conda-forge build to have a more recent julia depot: https://github.com/MilesCranmer/PySR/actions/runs/3396141209/jobs/5646873573

The errors are as follows. It seems like PyCall.jl has not been successfully built or something? The line which raises this error is here, meaning that info.is_pycall_built() is false.

Failed check_estimators_dtypes with:
    Traceback (most recent call last):
      File "/home/runner/work/PySR/PySR/test/test.py", line 652, in test_scikit_learn_compatibility
        check(model)
      File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/sklearn/utils/_testing.py", line 320, in wrapper
        return fn(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^
      File "/usr/share/miniconda3/envs/test/lib/python3.11/site-packages/sklearn/utils/estimator_checks.py", line 1726, in check_estimators_dtypes
        estimator.fit(X_train, y)
      File "/home/runner/work/PySR/PySR/pysr/sr.py", line 1784, in fit
        self._run(X, y, mutated_params, weights=weights, seed=seed)
      File "/home/runner/work/PySR/PySR/pysr/sr.py", line [14](https://github.com/MilesCranmer/PySR/actions/runs/3396141209/jobs/5646873573#step:6:15)78, in _run
        Main = init_julia(self.julia_project)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/home/runner/work/PySR/PySR/pysr/julia_helpers.py", line [16](https://github.com/MilesCranmer/PySR/actions/runs/3396141209/jobs/5646873573#step:6:17)8, in init_julia
        raise ImportError(_import_error())
    ImportError: 
        Required dependencies are not installed or built.  Run the following code in the Python REPL:
    
            >>> import pysr
            >>> pysr.install()

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
MilesCranmercommented, Nov 5, 2022

Awesome. That was it! Thanks @mkitti for figuring that out! The conda-forge tests now actually run the one installed (via #221), and pass.

0reactions
MilesCranmercommented, Nov 4, 2022

I should move the test to be inside pysr so I can simply call it like pysr.test.testall().

Read more comments on GitHub >

github_iconTop Results From Across the Web

[BUG] conda version breaking #201 - MilesCranmer/PySR
The new version fixes an issue related to automatic updating of Julia packages. The conda-forge jobs which test conda install -c conda-forge ......
Read more >
Maintaining packages - Conda-Forge
Locate the paths to broken files on anaconda.org, by searching for the conda-forge package and switching to the files tab. · Fork conda-forge/admin-requests...
Read more >
Stuck at Solving Environment on Anaconda - Stack Overflow
I put conda-forge first, then package-specific channels like pytorch , then put defaults last. From the docs it seems that this causes conda...
Read more >
Conda install broken? - Matminer
Hello, I have just been met with the following error across all of my ... (main36) C:\Users\mm049>conda install -c conda-forge matminer
Read more >
Update to tbb (2021.1.1, conda-forge) breaks bowtie2 ...
I found the cause of this. The TBB and TBB-devel conda-forge packages have their run_exports set such that anything compiled against them can...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found