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

help the reimport problem #184

Merged
merged 2 commits into from
Nov 28, 2020
Merged

help the reimport problem #184

merged 2 commits into from
Nov 28, 2020

Conversation

loriab
Copy link
Contributor

@loriab loriab commented Nov 27, 2020

Description

Motivation and Context

If you run the parse file function twice with the same import pcmsolver, it gives a keyword already defined error with getkw. This causes trouble with psiapi and even worse with running a multiple pcm job with qcschema b/c the pcm input gets reparsed. @robertodr worked on this some. I may have opined that reload is never the answer. Nonetheless, the proposed changes do help. Has this already been tried and found troublesome?

How Has This Been Tested?

Screenshots (if appropriate):

Todos

  • Developer Interest
  • Feature1
  • User-Facing for Release Notes
  • Feature2

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Questions

  • Question1

Status

  • Ready to go
  • Cherry-pick to latest release branch

@loriab
Copy link
Contributor Author

loriab commented Nov 27, 2020

CI error is unrelated, I think:

  File "/home/travis/.local/lib/python3.5/site-packages/virtualenv/__init__.py", line 3, in <module>
    from .run import cli_run, session_via_cli
  File "/home/travis/.local/lib/python3.5/site-packages/virtualenv/run/__init__.py", line 12, in <module>
    from .plugin.activators import ActivationSelector
  File "/home/travis/.local/lib/python3.5/site-packages/virtualenv/run/plugin/activators.py", line 6, in <module>
    from .base import ComponentBuilder
  File "/home/travis/.local/lib/python3.5/site-packages/virtualenv/run/plugin/base.py", line 9, in <module>
    from importlib_metadata import entry_points
  File "/home/travis/.local/lib/python3.5/site-packages/importlib_metadata/__init__.py", line 43, in <module>
    class PackageNotFoundError(ModuleNotFoundError):
NameError: name 'ModuleNotFoundError' is not defined

In local testing back on v1.2.1, I also get the following warnings, which you may well have already addressed in the meantime.

/home/psilocaluser/toolchainconda/envs/py38/lib//python3.8/site-packages/pcmsolver/pyparsing.py:798
/home/psilocaluser/toolchainconda/envs/py38/lib//python3.8/site-packages/pcmsolver/pyparsing.py:798
  /home/psilocaluser/toolchainconda/envs/py38/lib//python3.8/site-packages/pcmsolver/pyparsing.py:798: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
    collections.MutableMapping.register(ParseResults)

/home/psilocaluser/toolchainconda/envs/py38/lib//python3.8/site-packages/pcmsolver/pyparsing.py:2389
/home/psilocaluser/toolchainconda/envs/py38/lib//python3.8/site-packages/pcmsolver/pyparsing.py:2389
  /home/psilocaluser/toolchainconda/envs/py38/lib//python3.8/site-packages/pcmsolver/pyparsing.py:2389: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.9 it will stop working
    elif isinstance(exprs, collections.Sequence):

@robertodr
Copy link
Member

CI is in a sorry state. The changes look good, I'll switch to GitHub actions to get meaningful feedback from CI again. The warnings look familiar: I have accumulated patches here and there, but never merged them :'(

@loriab
Copy link
Contributor Author

loriab commented Nov 27, 2020

CI is in a sorry state. The changes look good, I'll switch to GitHub actions to get meaningful feedback from CI again. The warnings look familiar: I have accumulated patches here and there, but never merged them :'(

np, I have limping Travis-CI repos, too. I'm thinking pb11 is a good model for all arch + compiled + GHA CI, if it isn't already on your radar.

@robertodr
Copy link
Member

I have this template: https://github.com/MRChemSoft/mrchem/blob/master/.github/workflows/build-test.yml

Copy link
Member

@robertodr robertodr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@codecov
Copy link

codecov bot commented Nov 28, 2020

Codecov Report

Merging #184 (a231544) into master (bd4f67a) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #184   +/-   ##
=======================================
  Coverage   74.09%   74.09%           
=======================================
  Files         243      243           
  Lines       17144    17144           
=======================================
  Hits        12703    12703           
  Misses       4441     4441           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update bd4f67a...a231544. Read the comment docs.

@robertodr robertodr merged commit 33ebed4 into PCMSolver:master Nov 28, 2020
@robertodr robertodr deleted the patch-1 branch November 28, 2020 16:06
@robertodr
Copy link
Member

I need to synchronize some changes in the Fortran interface before making a new release.

robertodr added a commit that referenced this pull request Nov 29, 2020
Co-authored-by: Roberto Di Remigio <robertodr@users.noreply.github.com>
loriab added a commit to loriab/psi4 that referenced this pull request Dec 20, 2020
@loriab loriab mentioned this pull request Dec 22, 2020
3 tasks
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

Successfully merging this pull request may close these issues.

2 participants