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

3.7.0 Initial import fails - dateparser throws syntax invalid alert. #65

Closed
HectorGit opened this issue Jul 6, 2021 · 2 comments
Closed

Comments

@HectorGit
Copy link

Hi ! Thanks for making this package.

I've installed hubspot-api-client via pip
Using Python 3.7.0

I've added the line :

from hubspot import HubSpot

And I'm receiving this error. I'm unsure what the problem with dateutil is.

Traceback (most recent call last):
File "C:\Users\Hector\Documents\ergonomyx\ergonomyx-ecommerce\ergonomyx.py", line 15, in
from app import app
File "C:\Users\Hector\Documents\ergonomyx\ergonomyx-ecommerce\app_init_.py", line 310, in
from app import routes, models, errors, admin_center, ajax_handlers, assets, login_register, tax_helpers, gtag_helpers
File "C:\Users\Hector\Documents\ergonomyx\ergonomyx-ecommerce\app\routes.py", line 38, in
from hubspot import HubSpot
File "c:\users\hector\documents\ergonomyx\ergonomyx-ecommerce\venv\lib\site-packages\hubspot_init_.py", line 1, in
from .client import Client
File "c:\users\hector\documents\ergonomyx\ergonomyx-ecommerce\venv\lib\site-packages\hubspot\client.py", line 2, in
from .discovery.auth.discovery import Discovery as AuthDiscovery
File "c:\users\hector\documents\ergonomyx\ergonomyx-ecommerce\venv\lib\site-packages\hubspot\discovery\auth\discovery.py", line 1, in
from .oauth.discovery import Discovery as OAuthDiscovery
File "c:\users\hector\documents\ergonomyx\ergonomyx-ecommerce\venv\lib\site-packages\hubspot\discovery\auth\oauth\discovery.py", line 1, in
import hubspot.auth.oauth as api_client
File "c:\users\hector\documents\ergonomyx\ergonomyx-ecommerce\venv\lib\site-packages\hubspot\auth\oauth_init_.py", line 20, in
from hubspot.auth.oauth.api.default_api import DefaultApi
File "c:\users\hector\documents\ergonomyx\ergonomyx-ecommerce\venv\lib\site-packages\hubspot\auth\oauth\api_init_.py", line 6, in
from hubspot.auth.oauth.api.default_api import DefaultApi
File "c:\users\hector\documents\ergonomyx\ergonomyx-ecommerce\venv\lib\site-packages\hubspot\auth\oauth\api\default_api.py", line 20, in
from hubspot.auth.oauth.api_client import ApiClient
File "c:\users\hector\documents\ergonomyx\ergonomyx-ecommerce\venv\lib\site-packages\hubspot\auth\oauth\api_client.py", line 15, in
from dateutil.parser import parse
File "c:\users\hector\documents\ergonomyx\ergonomyx-ecommerce\venv\lib\site-packages\dateutil\parser.py", line 158
l.append("%s=%s" % (attr, value))

@HectorGit
Copy link
Author

Hi I found a solution !

  • pip3 uninstall python-dateutil

(I use pip3 because I'm inside a python3 virtual environment)

luckily, we were no longer using this in our application , but for some reason it causes trouble.

Hopefully this will help others that run into this issue.

@HectorGit
Copy link
Author

Oh yeah ! And remember to remove it from any import statements, as well as the requirements.txt

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

1 participant